jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.53. |
| 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 6 | # Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11 | as_expr=expr |
| 12 | else |
| 13 | as_expr=false |
| 14 | fi |
| 15 | |
| 16 | |
| 17 | ## --------------------- ## |
| 18 | ## M4sh Initialization. ## |
| 19 | ## --------------------- ## |
| 20 | |
| 21 | # Be Bourne compatible |
| 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23 | emulate sh |
| 24 | NULLCMD=: |
| 25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 26 | set -o posix |
| 27 | fi |
| 28 | |
| 29 | # NLS nuisances. |
| 30 | # Support unset when possible. |
| 31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 32 | as_unset=unset |
| 33 | else |
| 34 | as_unset=false |
| 35 | fi |
| 36 | |
| 37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 38 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 39 | { LANG=C; export LANG; } |
| 40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 42 | { LC_ALL=C; export LC_ALL; } |
| 43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 45 | { LC_TIME=C; export LC_TIME; } |
| 46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 48 | { LC_CTYPE=C; export LC_CTYPE; } |
| 49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 51 | { LANGUAGE=C; export LANGUAGE; } |
| 52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 54 | { LC_COLLATE=C; export LC_COLLATE; } |
| 55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 57 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 60 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 61 | |
| 62 | |
| 63 | # Name of the executable. |
| 64 | as_me=`(basename "$0") 2>/dev/null || |
| 65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 66 | X"$0" : 'X\(//\)$' \| \ |
| 67 | X"$0" : 'X\(/\)$' \| \ |
| 68 | . : '\(.\)' 2>/dev/null || |
| 69 | echo X/"$0" | |
| 70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 73 | s/.*/./; q'` |
| 74 | |
| 75 | # PATH needs CR, and LINENO needs CR and PATH. |
| 76 | # Avoid depending upon Character Ranges. |
| 77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 80 | as_cr_digits='0123456789' |
| 81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 82 | |
| 83 | # The user is always right. |
| 84 | if test "${PATH_SEPARATOR+set}" != set; then |
| 85 | echo "#! /bin/sh" >conftest.sh |
| 86 | echo "exit 0" >>conftest.sh |
| 87 | chmod +x conftest.sh |
| 88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 89 | PATH_SEPARATOR=';' |
| 90 | else |
| 91 | PATH_SEPARATOR=: |
| 92 | fi |
| 93 | rm -f conftest.sh |
| 94 | fi |
| 95 | |
| 96 | |
| 97 | as_lineno_1=$LINENO |
| 98 | as_lineno_2=$LINENO |
| 99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 102 | # Find who we are. Look in the path if we contain no path at all |
| 103 | # relative or not. |
| 104 | case $0 in |
| 105 | *[\\/]* ) as_myself=$0 ;; |
| 106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 107 | for as_dir in $PATH |
| 108 | do |
| 109 | IFS=$as_save_IFS |
| 110 | test -z "$as_dir" && as_dir=. |
| 111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 112 | done |
| 113 | |
| 114 | ;; |
| 115 | esac |
| 116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 117 | # in which case we are not to be found in the path. |
| 118 | if test "x$as_myself" = x; then |
| 119 | as_myself=$0 |
| 120 | fi |
| 121 | if test ! -f "$as_myself"; then |
| 122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 123 | { (exit 1); exit 1; }; } |
| 124 | fi |
| 125 | case $CONFIG_SHELL in |
| 126 | '') |
| 127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 129 | do |
| 130 | IFS=$as_save_IFS |
| 131 | test -z "$as_dir" && as_dir=. |
| 132 | for as_base in sh bash ksh sh5; do |
| 133 | case $as_dir in |
| 134 | /*) |
| 135 | if ("$as_dir/$as_base" -c ' |
| 136 | as_lineno_1=$LINENO |
| 137 | as_lineno_2=$LINENO |
| 138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 141 | CONFIG_SHELL=$as_dir/$as_base |
| 142 | export CONFIG_SHELL |
| 143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 144 | fi;; |
| 145 | esac |
| 146 | done |
| 147 | done |
| 148 | ;; |
| 149 | esac |
| 150 | |
| 151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 152 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 153 | # line-number line before each line; the second 'sed' does the real |
| 154 | # work. The second script uses 'N' to pair each line-number line |
| 155 | # with the numbered line, and appends trailing '-' during |
| 156 | # substitution so that $LINENO is not a special case at line end. |
| 157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 159 | sed '=' <$as_myself | |
| 160 | sed ' |
| 161 | N |
| 162 | s,$,-, |
| 163 | : loop |
| 164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 165 | t loop |
| 166 | s,-$,, |
| 167 | s,^['$as_cr_digits']*\n,, |
| 168 | ' >$as_me.lineno && |
| 169 | chmod +x $as_me.lineno || |
| 170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 171 | { (exit 1); exit 1; }; } |
| 172 | |
| 173 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 174 | # (the dirname of $[0] is not the place where we might find the |
| 175 | # original and so on. Autoconf is especially sensible to this). |
| 176 | . ./$as_me.lineno |
| 177 | # Exit status is that of the last command. |
| 178 | exit |
| 179 | } |
| 180 | |
| 181 | |
| 182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 183 | *c*,-n*) ECHO_N= ECHO_C=' |
| 184 | ' ECHO_T=' ' ;; |
| 185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 187 | esac |
| 188 | |
| 189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 190 | as_expr=expr |
| 191 | else |
| 192 | as_expr=false |
| 193 | fi |
| 194 | |
| 195 | rm -f conf$$ conf$$.exe conf$$.file |
| 196 | echo >conf$$.file |
| 197 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 198 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 200 | if test -f conf$$.exe; then |
| 201 | # Don't use ln at all; we don't have any links |
| 202 | as_ln_s='cp -p' |
| 203 | else |
| 204 | as_ln_s='ln -s' |
| 205 | fi |
| 206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 207 | as_ln_s=ln |
| 208 | else |
| 209 | as_ln_s='cp -p' |
| 210 | fi |
| 211 | rm -f conf$$ conf$$.exe conf$$.file |
| 212 | |
| 213 | as_executable_p="test -f" |
| 214 | |
| 215 | # Sed expression to map a string onto a valid CPP name. |
| 216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 217 | |
| 218 | # Sed expression to map a string onto a valid variable name. |
| 219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 220 | |
| 221 | |
| 222 | # IFS |
| 223 | # We need space, tab and new line, in precisely that order. |
| 224 | as_nl=' |
| 225 | ' |
| 226 | IFS=" $as_nl" |
| 227 | |
| 228 | # CDPATH. |
| 229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 230 | |
| 231 | |
| 232 | # Name of the host. |
| 233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 234 | # so uname gets run too. |
| 235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 236 | |
| 237 | exec 6>&1 |
| 238 | |
| 239 | # |
| 240 | # Initializations. |
| 241 | # |
| 242 | ac_default_prefix=/usr/local |
| 243 | cross_compiling=no |
| 244 | subdirs= |
| 245 | MFLAGS= |
| 246 | MAKEFLAGS= |
| 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | # Maximum number of lines to put in a shell here document. |
| 250 | # This variable seems obsolete. It should probably be removed, and |
| 251 | # only ac_max_sed_lines should be used. |
| 252 | : ${ac_max_here_lines=38} |
| 253 | |
| 254 | # Identity of this package. |
| 255 | PACKAGE_NAME= |
| 256 | PACKAGE_TARNAME= |
| 257 | PACKAGE_VERSION= |
| 258 | PACKAGE_STRING= |
| 259 | PACKAGE_BUGREPORT= |
| 260 | |
| 261 | ac_unique_file="lib/zebra.h" |
| 262 | # Factoring default headers for most tests. |
| 263 | ac_includes_default="\ |
| 264 | #include <stdio.h> |
| 265 | #if HAVE_SYS_TYPES_H |
| 266 | # include <sys/types.h> |
| 267 | #endif |
| 268 | #if HAVE_SYS_STAT_H |
| 269 | # include <sys/stat.h> |
| 270 | #endif |
| 271 | #if STDC_HEADERS |
| 272 | # include <stdlib.h> |
| 273 | # include <stddef.h> |
| 274 | #else |
| 275 | # if HAVE_STDLIB_H |
| 276 | # include <stdlib.h> |
| 277 | # endif |
| 278 | #endif |
| 279 | #if HAVE_STRING_H |
| 280 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 281 | # include <memory.h> |
| 282 | # endif |
| 283 | # include <string.h> |
| 284 | #endif |
| 285 | #if HAVE_STRINGS_H |
| 286 | # include <strings.h> |
| 287 | #endif |
| 288 | #if HAVE_INTTYPES_H |
| 289 | # include <inttypes.h> |
| 290 | #else |
| 291 | # if HAVE_STDINT_H |
| 292 | # include <stdint.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_UNISTD_H |
| 296 | # include <unistd.h> |
| 297 | #endif" |
| 298 | |
| 299 | |
| 300 | # Initialize some variables set by options. |
| 301 | ac_init_help= |
| 302 | ac_init_version=false |
| 303 | # The variables have the same names as the options, with |
| 304 | # dashes changed to underlines. |
| 305 | cache_file=/dev/null |
| 306 | exec_prefix=NONE |
| 307 | no_create= |
| 308 | no_recursion= |
| 309 | prefix=NONE |
| 310 | program_prefix=NONE |
| 311 | program_suffix=NONE |
| 312 | program_transform_name=s,x,x, |
| 313 | silent= |
| 314 | site= |
| 315 | srcdir= |
| 316 | verbose= |
| 317 | x_includes=NONE |
| 318 | x_libraries=NONE |
| 319 | |
| 320 | # Installation directory options. |
| 321 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 322 | # and all the variables that are supposed to be based on exec_prefix |
| 323 | # by default will actually change. |
| 324 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 325 | bindir='${exec_prefix}/bin' |
| 326 | sbindir='${exec_prefix}/sbin' |
| 327 | libexecdir='${exec_prefix}/libexec' |
| 328 | datadir='${prefix}/share' |
| 329 | sysconfdir='${prefix}/etc' |
| 330 | sharedstatedir='${prefix}/com' |
| 331 | localstatedir='${prefix}/var' |
| 332 | libdir='${exec_prefix}/lib' |
| 333 | includedir='${prefix}/include' |
| 334 | oldincludedir='/usr/include' |
| 335 | infodir='${prefix}/info' |
| 336 | mandir='${prefix}/man' |
| 337 | |
| 338 | ac_prev= |
| 339 | for ac_option |
| 340 | do |
| 341 | # If the previous option needs an argument, assign it. |
| 342 | if test -n "$ac_prev"; then |
| 343 | eval "$ac_prev=\$ac_option" |
| 344 | ac_prev= |
| 345 | continue |
| 346 | fi |
| 347 | |
| 348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 349 | |
| 350 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 351 | |
| 352 | case $ac_option in |
| 353 | |
| 354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 355 | ac_prev=bindir ;; |
| 356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 357 | bindir=$ac_optarg ;; |
| 358 | |
| 359 | -build | --build | --buil | --bui | --bu) |
| 360 | ac_prev=build_alias ;; |
| 361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 362 | build_alias=$ac_optarg ;; |
| 363 | |
| 364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 366 | ac_prev=cache_file ;; |
| 367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 369 | cache_file=$ac_optarg ;; |
| 370 | |
| 371 | --config-cache | -C) |
| 372 | cache_file=config.cache ;; |
| 373 | |
| 374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 375 | ac_prev=datadir ;; |
| 376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 377 | | --da=*) |
| 378 | datadir=$ac_optarg ;; |
| 379 | |
| 380 | -disable-* | --disable-*) |
| 381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 382 | # Reject names that are not valid shell variable names. |
| 383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 385 | { (exit 1); exit 1; }; } |
| 386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 387 | eval "enable_$ac_feature=no" ;; |
| 388 | |
| 389 | -enable-* | --enable-*) |
| 390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 391 | # Reject names that are not valid shell variable names. |
| 392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 394 | { (exit 1); exit 1; }; } |
| 395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 396 | case $ac_option in |
| 397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 398 | *) ac_optarg=yes ;; |
| 399 | esac |
| 400 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 401 | |
| 402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 404 | | --exec | --exe | --ex) |
| 405 | ac_prev=exec_prefix ;; |
| 406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 408 | | --exec=* | --exe=* | --ex=*) |
| 409 | exec_prefix=$ac_optarg ;; |
| 410 | |
| 411 | -gas | --gas | --ga | --g) |
| 412 | # Obsolete; use --with-gas. |
| 413 | with_gas=yes ;; |
| 414 | |
| 415 | -help | --help | --hel | --he | -h) |
| 416 | ac_init_help=long ;; |
| 417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 418 | ac_init_help=recursive ;; |
| 419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 420 | ac_init_help=short ;; |
| 421 | |
| 422 | -host | --host | --hos | --ho) |
| 423 | ac_prev=host_alias ;; |
| 424 | -host=* | --host=* | --hos=* | --ho=*) |
| 425 | host_alias=$ac_optarg ;; |
| 426 | |
| 427 | -includedir | --includedir | --includedi | --included | --include \ |
| 428 | | --includ | --inclu | --incl | --inc) |
| 429 | ac_prev=includedir ;; |
| 430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 431 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 432 | includedir=$ac_optarg ;; |
| 433 | |
| 434 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 435 | ac_prev=infodir ;; |
| 436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 437 | infodir=$ac_optarg ;; |
| 438 | |
| 439 | -libdir | --libdir | --libdi | --libd) |
| 440 | ac_prev=libdir ;; |
| 441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 442 | libdir=$ac_optarg ;; |
| 443 | |
| 444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 445 | | --libexe | --libex | --libe) |
| 446 | ac_prev=libexecdir ;; |
| 447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 448 | | --libexe=* | --libex=* | --libe=*) |
| 449 | libexecdir=$ac_optarg ;; |
| 450 | |
| 451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 452 | | --localstate | --localstat | --localsta | --localst \ |
| 453 | | --locals | --local | --loca | --loc | --lo) |
| 454 | ac_prev=localstatedir ;; |
| 455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 458 | localstatedir=$ac_optarg ;; |
| 459 | |
| 460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 461 | ac_prev=mandir ;; |
| 462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 463 | mandir=$ac_optarg ;; |
| 464 | |
| 465 | -nfp | --nfp | --nf) |
| 466 | # Obsolete; use --without-fp. |
| 467 | with_fp=no ;; |
| 468 | |
| 469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 470 | | --no-cr | --no-c | -n) |
| 471 | no_create=yes ;; |
| 472 | |
| 473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 475 | no_recursion=yes ;; |
| 476 | |
| 477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 479 | | --oldin | --oldi | --old | --ol | --o) |
| 480 | ac_prev=oldincludedir ;; |
| 481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 484 | oldincludedir=$ac_optarg ;; |
| 485 | |
| 486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 487 | ac_prev=prefix ;; |
| 488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 489 | prefix=$ac_optarg ;; |
| 490 | |
| 491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 492 | | --program-pre | --program-pr | --program-p) |
| 493 | ac_prev=program_prefix ;; |
| 494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 496 | program_prefix=$ac_optarg ;; |
| 497 | |
| 498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 499 | | --program-suf | --program-su | --program-s) |
| 500 | ac_prev=program_suffix ;; |
| 501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 503 | program_suffix=$ac_optarg ;; |
| 504 | |
| 505 | -program-transform-name | --program-transform-name \ |
| 506 | | --program-transform-nam | --program-transform-na \ |
| 507 | | --program-transform-n | --program-transform- \ |
| 508 | | --program-transform | --program-transfor \ |
| 509 | | --program-transfo | --program-transf \ |
| 510 | | --program-trans | --program-tran \ |
| 511 | | --progr-tra | --program-tr | --program-t) |
| 512 | ac_prev=program_transform_name ;; |
| 513 | -program-transform-name=* | --program-transform-name=* \ |
| 514 | | --program-transform-nam=* | --program-transform-na=* \ |
| 515 | | --program-transform-n=* | --program-transform-=* \ |
| 516 | | --program-transform=* | --program-transfor=* \ |
| 517 | | --program-transfo=* | --program-transf=* \ |
| 518 | | --program-trans=* | --program-tran=* \ |
| 519 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 520 | program_transform_name=$ac_optarg ;; |
| 521 | |
| 522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 523 | | -silent | --silent | --silen | --sile | --sil) |
| 524 | silent=yes ;; |
| 525 | |
| 526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 527 | ac_prev=sbindir ;; |
| 528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 529 | | --sbi=* | --sb=*) |
| 530 | sbindir=$ac_optarg ;; |
| 531 | |
| 532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 534 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 535 | | --sha | --sh) |
| 536 | ac_prev=sharedstatedir ;; |
| 537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 540 | | --sha=* | --sh=*) |
| 541 | sharedstatedir=$ac_optarg ;; |
| 542 | |
| 543 | -site | --site | --sit) |
| 544 | ac_prev=site ;; |
| 545 | -site=* | --site=* | --sit=*) |
| 546 | site=$ac_optarg ;; |
| 547 | |
| 548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 549 | ac_prev=srcdir ;; |
| 550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 551 | srcdir=$ac_optarg ;; |
| 552 | |
| 553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 554 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 555 | ac_prev=sysconfdir ;; |
| 556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 558 | sysconfdir=$ac_optarg ;; |
| 559 | |
| 560 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 561 | ac_prev=target_alias ;; |
| 562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 563 | target_alias=$ac_optarg ;; |
| 564 | |
| 565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 566 | verbose=yes ;; |
| 567 | |
| 568 | -version | --version | --versio | --versi | --vers | -V) |
| 569 | ac_init_version=: ;; |
| 570 | |
| 571 | -with-* | --with-*) |
| 572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 573 | # Reject names that are not valid shell variable names. |
| 574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 576 | { (exit 1); exit 1; }; } |
| 577 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 580 | *) ac_optarg=yes ;; |
| 581 | esac |
| 582 | eval "with_$ac_package='$ac_optarg'" ;; |
| 583 | |
| 584 | -without-* | --without-*) |
| 585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 586 | # Reject names that are not valid shell variable names. |
| 587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 589 | { (exit 1); exit 1; }; } |
| 590 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 591 | eval "with_$ac_package=no" ;; |
| 592 | |
| 593 | --x) |
| 594 | # Obsolete; use --with-x. |
| 595 | with_x=yes ;; |
| 596 | |
| 597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 598 | | --x-incl | --x-inc | --x-in | --x-i) |
| 599 | ac_prev=x_includes ;; |
| 600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 602 | x_includes=$ac_optarg ;; |
| 603 | |
| 604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 606 | ac_prev=x_libraries ;; |
| 607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 609 | x_libraries=$ac_optarg ;; |
| 610 | |
| 611 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 612 | Try \`$0 --help' for more information." >&2 |
| 613 | { (exit 1); exit 1; }; } |
| 614 | ;; |
| 615 | |
| 616 | *=*) |
| 617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 618 | # Reject names that are not valid shell variable names. |
| 619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 621 | { (exit 1); exit 1; }; } |
| 622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 623 | eval "$ac_envvar='$ac_optarg'" |
| 624 | export $ac_envvar ;; |
| 625 | |
| 626 | *) |
| 627 | # FIXME: should be removed in autoconf 3.0. |
| 628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 632 | ;; |
| 633 | |
| 634 | esac |
| 635 | done |
| 636 | |
| 637 | if test -n "$ac_prev"; then |
| 638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 639 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 640 | { (exit 1); exit 1; }; } |
| 641 | fi |
| 642 | |
| 643 | # Be sure to have absolute paths. |
| 644 | for ac_var in exec_prefix prefix |
| 645 | do |
| 646 | eval ac_val=$`echo $ac_var` |
| 647 | case $ac_val in |
| 648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 650 | { (exit 1); exit 1; }; };; |
| 651 | esac |
| 652 | done |
| 653 | |
| 654 | # Be sure to have absolute paths. |
| 655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 656 | localstatedir libdir includedir oldincludedir infodir mandir |
| 657 | do |
| 658 | eval ac_val=$`echo $ac_var` |
| 659 | case $ac_val in |
| 660 | [\\/$]* | ?:[\\/]* ) ;; |
| 661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 662 | { (exit 1); exit 1; }; };; |
| 663 | esac |
| 664 | done |
| 665 | |
| 666 | # There might be people who depend on the old broken behavior: `$host' |
| 667 | # used to hold the argument of --host etc. |
| 668 | # FIXME: To remove some day. |
| 669 | build=$build_alias |
| 670 | host=$host_alias |
| 671 | target=$target_alias |
| 672 | |
| 673 | # FIXME: To remove some day. |
| 674 | if test "x$host_alias" != x; then |
| 675 | if test "x$build_alias" = x; then |
| 676 | cross_compiling=maybe |
| 677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 678 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 679 | elif test "x$build_alias" != "x$host_alias"; then |
| 680 | cross_compiling=yes |
| 681 | fi |
| 682 | fi |
| 683 | |
| 684 | ac_tool_prefix= |
| 685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 686 | |
| 687 | test "$silent" = yes && exec 6>/dev/null |
| 688 | |
| 689 | |
| 690 | # Find the source files, if location was not specified. |
| 691 | if test -z "$srcdir"; then |
| 692 | ac_srcdir_defaulted=yes |
| 693 | # Try the directory containing this script, then its parent. |
| 694 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 696 | X"$0" : 'X\(//\)[^/]' \| \ |
| 697 | X"$0" : 'X\(//\)$' \| \ |
| 698 | X"$0" : 'X\(/\)' \| \ |
| 699 | . : '\(.\)' 2>/dev/null || |
| 700 | echo X"$0" | |
| 701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 704 | /^X\(\/\).*/{ s//\1/; q; } |
| 705 | s/.*/./; q'` |
| 706 | srcdir=$ac_confdir |
| 707 | if test ! -r $srcdir/$ac_unique_file; then |
| 708 | srcdir=.. |
| 709 | fi |
| 710 | else |
| 711 | ac_srcdir_defaulted=no |
| 712 | fi |
| 713 | if test ! -r $srcdir/$ac_unique_file; then |
| 714 | if test "$ac_srcdir_defaulted" = yes; then |
| 715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 716 | { (exit 1); exit 1; }; } |
| 717 | else |
| 718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 719 | { (exit 1); exit 1; }; } |
| 720 | fi |
| 721 | fi |
| 722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 723 | ac_env_build_alias_set=${build_alias+set} |
| 724 | ac_env_build_alias_value=$build_alias |
| 725 | ac_cv_env_build_alias_set=${build_alias+set} |
| 726 | ac_cv_env_build_alias_value=$build_alias |
| 727 | ac_env_host_alias_set=${host_alias+set} |
| 728 | ac_env_host_alias_value=$host_alias |
| 729 | ac_cv_env_host_alias_set=${host_alias+set} |
| 730 | ac_cv_env_host_alias_value=$host_alias |
| 731 | ac_env_target_alias_set=${target_alias+set} |
| 732 | ac_env_target_alias_value=$target_alias |
| 733 | ac_cv_env_target_alias_set=${target_alias+set} |
| 734 | ac_cv_env_target_alias_value=$target_alias |
| 735 | ac_env_CC_set=${CC+set} |
| 736 | ac_env_CC_value=$CC |
| 737 | ac_cv_env_CC_set=${CC+set} |
| 738 | ac_cv_env_CC_value=$CC |
| 739 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 740 | ac_env_CFLAGS_value=$CFLAGS |
| 741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 742 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 743 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 744 | ac_env_LDFLAGS_value=$LDFLAGS |
| 745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 746 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 748 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 751 | ac_env_CPP_set=${CPP+set} |
| 752 | ac_env_CPP_value=$CPP |
| 753 | ac_cv_env_CPP_set=${CPP+set} |
| 754 | ac_cv_env_CPP_value=$CPP |
| 755 | |
| 756 | # |
| 757 | # Report the --help message. |
| 758 | # |
| 759 | if test "$ac_init_help" = "long"; then |
| 760 | # Omit some internal or obsolete options to make the list less imposing. |
| 761 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 762 | cat <<_ACEOF |
| 763 | \`configure' configures this package to adapt to many kinds of systems. |
| 764 | |
| 765 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 766 | |
| 767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 768 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 769 | |
| 770 | Defaults for the options are specified in brackets. |
| 771 | |
| 772 | Configuration: |
| 773 | -h, --help display this help and exit |
| 774 | --help=short display options specific to this package |
| 775 | --help=recursive display the short help of all the included packages |
| 776 | -V, --version display version information and exit |
| 777 | -q, --quiet, --silent do not print \`checking...' messages |
| 778 | --cache-file=FILE cache test results in FILE [disabled] |
| 779 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 780 | -n, --no-create do not create output files |
| 781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 782 | |
| 783 | _ACEOF |
| 784 | |
| 785 | cat <<_ACEOF |
| 786 | Installation directories: |
| 787 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 788 | [$ac_default_prefix] |
| 789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 790 | [PREFIX] |
| 791 | |
| 792 | By default, \`make install' will install all the files in |
| 793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 795 | for instance \`--prefix=\$HOME'. |
| 796 | |
| 797 | For better control, use the options below. |
| 798 | |
| 799 | Fine tuning of the installation directories: |
| 800 | --bindir=DIR user executables [EPREFIX/bin] |
| 801 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 802 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 807 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 808 | --includedir=DIR C header files [PREFIX/include] |
| 809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 810 | --infodir=DIR info documentation [PREFIX/info] |
| 811 | --mandir=DIR man documentation [PREFIX/man] |
| 812 | _ACEOF |
| 813 | |
| 814 | cat <<\_ACEOF |
| 815 | |
| 816 | Program names: |
| 817 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 818 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 819 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 820 | |
| 821 | System types: |
| 822 | --build=BUILD configure for building on BUILD [guessed] |
| 823 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 824 | _ACEOF |
| 825 | fi |
| 826 | |
| 827 | if test -n "$ac_init_help"; then |
| 828 | |
| 829 | cat <<\_ACEOF |
| 830 | |
| 831 | Optional Features: |
| 832 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 833 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 834 | --disable-dependency-tracking Speeds up one-time builds |
| 835 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 836 | --enable-vtysh, Make integrated VTY version of zebra |
| 837 | --disable-ipv6 turn off IPv6 related features and daemons |
| 838 | --disable-zebra do not build zebra daemon |
| 839 | --disable-bgpd do not build bgpd |
| 840 | --disable-ripd do not build ripd |
| 841 | --disable-ripngd do not build ripngd |
| 842 | --disable-ospfd do not build ospfd |
| 843 | --disable-ospf6d do not build ospf6d |
| 844 | --disable-isisd do not build isisd |
| 845 | --disable-bgp-announce, turn off BGP route announcement |
| 846 | --enable-netlink force to use Linux netlink interface |
| 847 | --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X |
| 848 | --enable-snmp enable SNMP support |
| 849 | --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon |
| 850 | --enable-nssa enable OSPF NSSA option |
| 851 | --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370) |
| 852 | --enable-ospf-te enable Traffic Engineering Extension to OSPF |
| 853 | --enable-multipath=ARG enable multipath function, ARG must be digit |
| 854 | |
| 855 | Optional Packages: |
| 856 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 857 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 858 | --with-cflags Set CFLAGS for use in compilation. |
| 859 | --with-libpam use libpam for PAM support in vtysh |
| 860 | |
| 861 | Some influential environment variables: |
| 862 | CC C compiler command |
| 863 | CFLAGS C compiler flags |
| 864 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 865 | nonstandard directory <lib dir> |
| 866 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 867 | headers in a nonstandard directory <include dir> |
| 868 | CPP C preprocessor |
| 869 | |
| 870 | Use these variables to override the choices made by `configure' or to help |
| 871 | it to find libraries and programs with nonstandard names/locations. |
| 872 | |
| 873 | _ACEOF |
| 874 | fi |
| 875 | |
| 876 | if test "$ac_init_help" = "recursive"; then |
| 877 | # If there are subdirs, report their specific --help. |
| 878 | ac_popdir=`pwd` |
| 879 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 880 | test -d $ac_dir || continue |
| 881 | ac_builddir=. |
| 882 | |
| 883 | if test "$ac_dir" != .; then |
| 884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 885 | # A "../" for each directory in $ac_dir_suffix. |
| 886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 887 | else |
| 888 | ac_dir_suffix= ac_top_builddir= |
| 889 | fi |
| 890 | |
| 891 | case $srcdir in |
| 892 | .) # No --srcdir option. We are building in place. |
| 893 | ac_srcdir=. |
| 894 | if test -z "$ac_top_builddir"; then |
| 895 | ac_top_srcdir=. |
| 896 | else |
| 897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 898 | fi ;; |
| 899 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 900 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 901 | ac_top_srcdir=$srcdir ;; |
| 902 | *) # Relative path. |
| 903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 905 | esac |
| 906 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 907 | # absolute. |
| 908 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 909 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 910 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 911 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 912 | |
| 913 | cd $ac_dir |
| 914 | # Check for guested configure; otherwise get Cygnus style configure. |
| 915 | if test -f $ac_srcdir/configure.gnu; then |
| 916 | echo |
| 917 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 918 | elif test -f $ac_srcdir/configure; then |
| 919 | echo |
| 920 | $SHELL $ac_srcdir/configure --help=recursive |
| 921 | elif test -f $ac_srcdir/configure.ac || |
| 922 | test -f $ac_srcdir/configure.in; then |
| 923 | echo |
| 924 | $ac_configure --help |
| 925 | else |
| 926 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 927 | fi |
| 928 | cd $ac_popdir |
| 929 | done |
| 930 | fi |
| 931 | |
| 932 | test -n "$ac_init_help" && exit 0 |
| 933 | if $ac_init_version; then |
| 934 | cat <<\_ACEOF |
| 935 | |
| 936 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 937 | Free Software Foundation, Inc. |
| 938 | This configure script is free software; the Free Software Foundation |
| 939 | gives unlimited permission to copy, distribute and modify it. |
| 940 | _ACEOF |
| 941 | exit 0 |
| 942 | fi |
| 943 | exec 5>config.log |
| 944 | cat >&5 <<_ACEOF |
| 945 | This file contains any messages produced by compilers while |
| 946 | running configure, to aid debugging if configure makes a mistake. |
| 947 | |
| 948 | It was created by $as_me, which was |
| 949 | generated by GNU Autoconf 2.53. Invocation command line was |
| 950 | |
| 951 | $ $0 $@ |
| 952 | |
| 953 | _ACEOF |
| 954 | { |
| 955 | cat <<_ASUNAME |
| 956 | ## --------- ## |
| 957 | ## Platform. ## |
| 958 | ## --------- ## |
| 959 | |
| 960 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 961 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 962 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 963 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 964 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 965 | |
| 966 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 967 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 968 | |
| 969 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 970 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 971 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 972 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 973 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 974 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 975 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 976 | |
| 977 | _ASUNAME |
| 978 | |
| 979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 980 | for as_dir in $PATH |
| 981 | do |
| 982 | IFS=$as_save_IFS |
| 983 | test -z "$as_dir" && as_dir=. |
| 984 | echo "PATH: $as_dir" |
| 985 | done |
| 986 | |
| 987 | } >&5 |
| 988 | |
| 989 | cat >&5 <<_ACEOF |
| 990 | |
| 991 | |
| 992 | ## ----------- ## |
| 993 | ## Core tests. ## |
| 994 | ## ----------- ## |
| 995 | |
| 996 | _ACEOF |
| 997 | |
| 998 | |
| 999 | # Keep a trace of the command line. |
| 1000 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1001 | # Also quote any args containing shell meta-characters. |
| 1002 | ac_configure_args= |
| 1003 | ac_sep= |
| 1004 | for ac_arg |
| 1005 | do |
| 1006 | case $ac_arg in |
| 1007 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1008 | | --no-cr | --no-c | -n ) continue ;; |
| 1009 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1010 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1011 | continue ;; |
| 1012 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1013 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1014 | esac |
| 1015 | case " $ac_configure_args " in |
| 1016 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1017 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1018 | ac_sep=" " ;; |
| 1019 | esac |
| 1020 | # Get rid of the leading space. |
| 1021 | done |
| 1022 | |
| 1023 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1024 | # config.log. We remove comments because anyway the quotes in there |
| 1025 | # would cause problems or look ugly. |
| 1026 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1027 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1028 | trap 'exit_status=$? |
| 1029 | # Save into config.log some information that might help in debugging. |
| 1030 | { |
| 1031 | echo |
| 1032 | cat <<\_ASBOX |
| 1033 | ## ---------------- ## |
| 1034 | ## Cache variables. ## |
| 1035 | ## ---------------- ## |
| 1036 | _ASBOX |
| 1037 | echo |
| 1038 | # The following way of writing the cache mishandles newlines in values, |
| 1039 | { |
| 1040 | (set) 2>&1 | |
| 1041 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1042 | *ac_space=\ *) |
| 1043 | sed -n \ |
| 1044 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1045 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1046 | ;; |
| 1047 | *) |
| 1048 | sed -n \ |
| 1049 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1050 | ;; |
| 1051 | esac; |
| 1052 | } |
| 1053 | echo |
| 1054 | if test -s confdefs.h; then |
| 1055 | cat <<\_ASBOX |
| 1056 | ## ----------- ## |
| 1057 | ## confdefs.h. ## |
| 1058 | ## ----------- ## |
| 1059 | _ASBOX |
| 1060 | echo |
| 1061 | sed "/^$/d" confdefs.h |
| 1062 | echo |
| 1063 | fi |
| 1064 | test "$ac_signal" != 0 && |
| 1065 | echo "$as_me: caught signal $ac_signal" |
| 1066 | echo "$as_me: exit $exit_status" |
| 1067 | } >&5 |
| 1068 | rm -f core core.* *.core && |
| 1069 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1070 | exit $exit_status |
| 1071 | ' 0 |
| 1072 | for ac_signal in 1 2 13 15; do |
| 1073 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1074 | done |
| 1075 | ac_signal=0 |
| 1076 | |
| 1077 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1078 | rm -rf conftest* confdefs.h |
| 1079 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1080 | echo >confdefs.h |
| 1081 | |
| 1082 | # Predefined preprocessor variables. |
| 1083 | |
| 1084 | cat >>confdefs.h <<_ACEOF |
| 1085 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1086 | _ACEOF |
| 1087 | |
| 1088 | |
| 1089 | cat >>confdefs.h <<_ACEOF |
| 1090 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1091 | _ACEOF |
| 1092 | |
| 1093 | |
| 1094 | cat >>confdefs.h <<_ACEOF |
| 1095 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1096 | _ACEOF |
| 1097 | |
| 1098 | |
| 1099 | cat >>confdefs.h <<_ACEOF |
| 1100 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1101 | _ACEOF |
| 1102 | |
| 1103 | |
| 1104 | cat >>confdefs.h <<_ACEOF |
| 1105 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1106 | _ACEOF |
| 1107 | |
| 1108 | |
| 1109 | # Let the site file select an alternate cache file if it wants to. |
| 1110 | # Prefer explicitly selected file to automatically selected ones. |
| 1111 | if test -z "$CONFIG_SITE"; then |
| 1112 | if test "x$prefix" != xNONE; then |
| 1113 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1114 | else |
| 1115 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1116 | fi |
| 1117 | fi |
| 1118 | for ac_site_file in $CONFIG_SITE; do |
| 1119 | if test -r "$ac_site_file"; then |
| 1120 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1121 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1122 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1123 | . "$ac_site_file" |
| 1124 | fi |
| 1125 | done |
| 1126 | |
| 1127 | if test -r "$cache_file"; then |
| 1128 | # Some versions of bash will fail to source /dev/null (special |
| 1129 | # files actually), so we avoid doing that. |
| 1130 | if test -f "$cache_file"; then |
| 1131 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1132 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1133 | case $cache_file in |
| 1134 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1135 | *) . ./$cache_file;; |
| 1136 | esac |
| 1137 | fi |
| 1138 | else |
| 1139 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1140 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1141 | >$cache_file |
| 1142 | fi |
| 1143 | |
| 1144 | # Check that the precious variables saved in the cache have kept the same |
| 1145 | # value. |
| 1146 | ac_cache_corrupted=false |
| 1147 | for ac_var in `(set) 2>&1 | |
| 1148 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1149 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1150 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1151 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1152 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1153 | case $ac_old_set,$ac_new_set in |
| 1154 | set,) |
| 1155 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1156 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1157 | ac_cache_corrupted=: ;; |
| 1158 | ,set) |
| 1159 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1160 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1161 | ac_cache_corrupted=: ;; |
| 1162 | ,);; |
| 1163 | *) |
| 1164 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1165 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1166 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1167 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1168 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1169 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1170 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1171 | ac_cache_corrupted=: |
| 1172 | fi;; |
| 1173 | esac |
| 1174 | # Pass precious variables to config.status. |
| 1175 | if test "$ac_new_set" = set; then |
| 1176 | case $ac_new_val in |
| 1177 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1178 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1179 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1180 | esac |
| 1181 | case " $ac_configure_args " in |
| 1182 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1183 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1184 | esac |
| 1185 | fi |
| 1186 | done |
| 1187 | if $ac_cache_corrupted; then |
| 1188 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1189 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1190 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1191 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1192 | { (exit 1); exit 1; }; } |
| 1193 | fi |
| 1194 | |
| 1195 | ac_ext=c |
| 1196 | ac_cpp='$CPP $CPPFLAGS' |
| 1197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | am__api_version="1.6" |
| 1219 | ac_aux_dir= |
| 1220 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1221 | if test -f $ac_dir/install-sh; then |
| 1222 | ac_aux_dir=$ac_dir |
| 1223 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1224 | break |
| 1225 | elif test -f $ac_dir/install.sh; then |
| 1226 | ac_aux_dir=$ac_dir |
| 1227 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1228 | break |
| 1229 | elif test -f $ac_dir/shtool; then |
| 1230 | ac_aux_dir=$ac_dir |
| 1231 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1232 | break |
| 1233 | fi |
| 1234 | done |
| 1235 | if test -z "$ac_aux_dir"; then |
| 1236 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1237 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1238 | { (exit 1); exit 1; }; } |
| 1239 | fi |
| 1240 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1241 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1242 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1243 | |
| 1244 | # Find a good install program. We prefer a C program (faster), |
| 1245 | # so one script is as good as another. But avoid the broken or |
| 1246 | # incompatible versions: |
| 1247 | # SysV /etc/install, /usr/sbin/install |
| 1248 | # SunOS /usr/etc/install |
| 1249 | # IRIX /sbin/install |
| 1250 | # AIX /bin/install |
| 1251 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1252 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1253 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1254 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1255 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1256 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1257 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1258 | if test -z "$INSTALL"; then |
| 1259 | if test "${ac_cv_path_install+set}" = set; then |
| 1260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1261 | else |
| 1262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1263 | for as_dir in $PATH |
| 1264 | do |
| 1265 | IFS=$as_save_IFS |
| 1266 | test -z "$as_dir" && as_dir=. |
| 1267 | # Account for people who put trailing slashes in PATH elements. |
| 1268 | case $as_dir/ in |
| 1269 | ./ | .// | /cC/* | \ |
| 1270 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1271 | /usr/ucb/* ) ;; |
| 1272 | *) |
| 1273 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1274 | # Don't use installbsd from OSF since it installs stuff as root |
| 1275 | # by default. |
| 1276 | for ac_prog in ginstall scoinst install; do |
| 1277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1278 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1279 | if test $ac_prog = install && |
| 1280 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1281 | # AIX install. It has an incompatible calling convention. |
| 1282 | : |
| 1283 | elif test $ac_prog = install && |
| 1284 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1285 | # program-specific install script used by HP pwplus--don't use. |
| 1286 | : |
| 1287 | else |
| 1288 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1289 | break 3 |
| 1290 | fi |
| 1291 | fi |
| 1292 | done |
| 1293 | done |
| 1294 | ;; |
| 1295 | esac |
| 1296 | done |
| 1297 | |
| 1298 | |
| 1299 | fi |
| 1300 | if test "${ac_cv_path_install+set}" = set; then |
| 1301 | INSTALL=$ac_cv_path_install |
| 1302 | else |
| 1303 | # As a last resort, use the slow shell script. We don't cache a |
| 1304 | # path for INSTALL within a source directory, because that will |
| 1305 | # break other packages using the cache if that directory is |
| 1306 | # removed, or if the path is relative. |
| 1307 | INSTALL=$ac_install_sh |
| 1308 | fi |
| 1309 | fi |
| 1310 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1311 | echo "${ECHO_T}$INSTALL" >&6 |
| 1312 | |
| 1313 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1314 | # It thinks the first close brace ends the variable substitution. |
| 1315 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1316 | |
| 1317 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1318 | |
| 1319 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1320 | |
| 1321 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1322 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1323 | # Just in case |
| 1324 | sleep 1 |
| 1325 | echo timestamp > conftest.file |
| 1326 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1327 | # arguments. Must try -L first in case configure is actually a |
| 1328 | # symlink; some systems play weird games with the mod time of symlinks |
| 1329 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1330 | # directory). |
| 1331 | if ( |
| 1332 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1333 | if test "$*" = "X"; then |
| 1334 | # -L didn't work. |
| 1335 | set X `ls -t $srcdir/configure conftest.file` |
| 1336 | fi |
| 1337 | rm -f conftest.file |
| 1338 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1339 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1340 | |
| 1341 | # If neither matched, then we have a broken ls. This can happen |
| 1342 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1343 | # broken ls alias from the environment. This has actually |
| 1344 | # happened. Such a system could not be considered "sane". |
| 1345 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1346 | alias in your environment" >&5 |
| 1347 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1348 | alias in your environment" >&2;} |
| 1349 | { (exit 1); exit 1; }; } |
| 1350 | fi |
| 1351 | |
| 1352 | test "$2" = conftest.file |
| 1353 | ) |
| 1354 | then |
| 1355 | # Ok. |
| 1356 | : |
| 1357 | else |
| 1358 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1359 | Check your system clock" >&5 |
| 1360 | echo "$as_me: error: newly created file is older than distributed files! |
| 1361 | Check your system clock" >&2;} |
| 1362 | { (exit 1); exit 1; }; } |
| 1363 | fi |
| 1364 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1365 | echo "${ECHO_T}yes" >&6 |
| 1366 | test "$program_prefix" != NONE && |
| 1367 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1368 | # Use a double $ so make ignores it. |
| 1369 | test "$program_suffix" != NONE && |
| 1370 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1371 | # Double any \ or $. echo might interpret backslashes. |
| 1372 | # By default was `s,x,x', remove it if useless. |
| 1373 | cat <<\_ACEOF >conftest.sed |
| 1374 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1375 | _ACEOF |
| 1376 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1377 | rm conftest.sed |
| 1378 | |
| 1379 | |
| 1380 | # expand $ac_aux_dir to an absolute path |
| 1381 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1382 | |
| 1383 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1384 | # Use eval to expand $SHELL |
| 1385 | if eval "$MISSING --run true"; then |
| 1386 | am_missing_run="$MISSING --run " |
| 1387 | else |
| 1388 | am_missing_run= |
| 1389 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1390 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1391 | fi |
| 1392 | |
| 1393 | for ac_prog in gawk mawk nawk awk |
| 1394 | do |
| 1395 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1396 | set dummy $ac_prog; ac_word=$2 |
| 1397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1399 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1401 | else |
| 1402 | if test -n "$AWK"; then |
| 1403 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1404 | else |
| 1405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1406 | for as_dir in $PATH |
| 1407 | do |
| 1408 | IFS=$as_save_IFS |
| 1409 | test -z "$as_dir" && as_dir=. |
| 1410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1412 | ac_cv_prog_AWK="$ac_prog" |
| 1413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1414 | break 2 |
| 1415 | fi |
| 1416 | done |
| 1417 | done |
| 1418 | |
| 1419 | fi |
| 1420 | fi |
| 1421 | AWK=$ac_cv_prog_AWK |
| 1422 | if test -n "$AWK"; then |
| 1423 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1424 | echo "${ECHO_T}$AWK" >&6 |
| 1425 | else |
| 1426 | echo "$as_me:$LINENO: result: no" >&5 |
| 1427 | echo "${ECHO_T}no" >&6 |
| 1428 | fi |
| 1429 | |
| 1430 | test -n "$AWK" && break |
| 1431 | done |
| 1432 | |
| 1433 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1434 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1435 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1436 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1438 | else |
| 1439 | cat >conftest.make <<\_ACEOF |
| 1440 | all: |
| 1441 | @echo 'ac_maketemp="${MAKE}"' |
| 1442 | _ACEOF |
| 1443 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1444 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1445 | if test -n "$ac_maketemp"; then |
| 1446 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1447 | else |
| 1448 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1449 | fi |
| 1450 | rm -f conftest.make |
| 1451 | fi |
| 1452 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1453 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1454 | echo "${ECHO_T}yes" >&6 |
| 1455 | SET_MAKE= |
| 1456 | else |
| 1457 | echo "$as_me:$LINENO: result: no" >&5 |
| 1458 | echo "${ECHO_T}no" >&6 |
| 1459 | SET_MAKE="MAKE=${MAKE-make}" |
| 1460 | fi |
| 1461 | |
| 1462 | # test to see if srcdir already configured |
| 1463 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1464 | test -f $srcdir/config.status; then |
| 1465 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1466 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1467 | { (exit 1); exit 1; }; } |
| 1468 | fi |
| 1469 | |
| 1470 | # Define the identity of the package. |
| 1471 | PACKAGE=zebra |
| 1472 | VERSION=0.93 |
| 1473 | |
| 1474 | |
| 1475 | cat >>confdefs.h <<_ACEOF |
| 1476 | #define PACKAGE "$PACKAGE" |
| 1477 | _ACEOF |
| 1478 | |
| 1479 | |
| 1480 | cat >>confdefs.h <<_ACEOF |
| 1481 | #define VERSION "$VERSION" |
| 1482 | _ACEOF |
| 1483 | |
| 1484 | # Some tools Automake needs. |
| 1485 | |
| 1486 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1487 | |
| 1488 | |
| 1489 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1490 | |
| 1491 | |
| 1492 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1493 | |
| 1494 | |
| 1495 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1496 | |
| 1497 | |
| 1498 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1499 | |
| 1500 | |
| 1501 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1502 | |
| 1503 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1504 | |
| 1505 | # Installed binaries are usually stripped using `strip' when the user |
| 1506 | # run `make install-strip'. However `strip' might not be the right |
| 1507 | # tool to use in cross-compilation environments, therefore Automake |
| 1508 | # will honor the `STRIP' environment variable to overrule this program. |
| 1509 | if test "$cross_compiling" != no; then |
| 1510 | if test -n "$ac_tool_prefix"; then |
| 1511 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1512 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1515 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1517 | else |
| 1518 | if test -n "$STRIP"; then |
| 1519 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1520 | else |
| 1521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1522 | for as_dir in $PATH |
| 1523 | do |
| 1524 | IFS=$as_save_IFS |
| 1525 | test -z "$as_dir" && as_dir=. |
| 1526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1528 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1530 | break 2 |
| 1531 | fi |
| 1532 | done |
| 1533 | done |
| 1534 | |
| 1535 | fi |
| 1536 | fi |
| 1537 | STRIP=$ac_cv_prog_STRIP |
| 1538 | if test -n "$STRIP"; then |
| 1539 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1540 | echo "${ECHO_T}$STRIP" >&6 |
| 1541 | else |
| 1542 | echo "$as_me:$LINENO: result: no" >&5 |
| 1543 | echo "${ECHO_T}no" >&6 |
| 1544 | fi |
| 1545 | |
| 1546 | fi |
| 1547 | if test -z "$ac_cv_prog_STRIP"; then |
| 1548 | ac_ct_STRIP=$STRIP |
| 1549 | # Extract the first word of "strip", so it can be a program name with args. |
| 1550 | set dummy strip; ac_word=$2 |
| 1551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1553 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1555 | else |
| 1556 | if test -n "$ac_ct_STRIP"; then |
| 1557 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1558 | else |
| 1559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1560 | for as_dir in $PATH |
| 1561 | do |
| 1562 | IFS=$as_save_IFS |
| 1563 | test -z "$as_dir" && as_dir=. |
| 1564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1565 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1566 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1568 | break 2 |
| 1569 | fi |
| 1570 | done |
| 1571 | done |
| 1572 | |
| 1573 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1574 | fi |
| 1575 | fi |
| 1576 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1577 | if test -n "$ac_ct_STRIP"; then |
| 1578 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1579 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1580 | else |
| 1581 | echo "$as_me:$LINENO: result: no" >&5 |
| 1582 | echo "${ECHO_T}no" >&6 |
| 1583 | fi |
| 1584 | |
| 1585 | STRIP=$ac_ct_STRIP |
| 1586 | else |
| 1587 | STRIP="$ac_cv_prog_STRIP" |
| 1588 | fi |
| 1589 | |
| 1590 | fi |
| 1591 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1592 | |
| 1593 | # We need awk for the "check" target. The system "awk" is bad on |
| 1594 | # some platforms. |
| 1595 | |
| 1596 | |
| 1597 | |
| 1598 | # Add the stamp file to the list of files AC keeps track of, |
| 1599 | # along with our hook. |
| 1600 | ac_config_headers="$ac_config_headers config.h" |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | # Make sure we can run config.sub. |
| 1606 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1607 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1608 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1609 | { (exit 1); exit 1; }; } |
| 1610 | |
| 1611 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1612 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1613 | if test "${ac_cv_build+set}" = set; then |
| 1614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1615 | else |
| 1616 | ac_cv_build_alias=$build_alias |
| 1617 | test -z "$ac_cv_build_alias" && |
| 1618 | ac_cv_build_alias=`$ac_config_guess` |
| 1619 | test -z "$ac_cv_build_alias" && |
| 1620 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1621 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1622 | { (exit 1); exit 1; }; } |
| 1623 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1624 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1625 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1626 | { (exit 1); exit 1; }; } |
| 1627 | |
| 1628 | fi |
| 1629 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1630 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1631 | build=$ac_cv_build |
| 1632 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1633 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1634 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1635 | |
| 1636 | |
| 1637 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1638 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1639 | if test "${ac_cv_host+set}" = set; then |
| 1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1641 | else |
| 1642 | ac_cv_host_alias=$host_alias |
| 1643 | test -z "$ac_cv_host_alias" && |
| 1644 | ac_cv_host_alias=$ac_cv_build_alias |
| 1645 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1646 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1647 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1648 | { (exit 1); exit 1; }; } |
| 1649 | |
| 1650 | fi |
| 1651 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1652 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1653 | host=$ac_cv_host |
| 1654 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1655 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1656 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | # Check whether --with-cflags or --without-cflags was given. |
| 1662 | if test "${with_cflags+set}" = set; then |
| 1663 | withval="$with_cflags" |
| 1664 | |
| 1665 | fi; |
| 1666 | if test "x$with_cflags" != "x" ; then |
| 1667 | CFLAGS="$with_cflags" ; cflags_specified=yes ; |
| 1668 | elif test -n "$CFLAGS" ; then |
| 1669 | cflags_specified=yes ; |
| 1670 | fi |
| 1671 | |
| 1672 | ac_ext=c |
| 1673 | ac_cpp='$CPP $CPPFLAGS' |
| 1674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1677 | if test -n "$ac_tool_prefix"; then |
| 1678 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1679 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1682 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1684 | else |
| 1685 | if test -n "$CC"; then |
| 1686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1687 | else |
| 1688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1689 | for as_dir in $PATH |
| 1690 | do |
| 1691 | IFS=$as_save_IFS |
| 1692 | test -z "$as_dir" && as_dir=. |
| 1693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1695 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1697 | break 2 |
| 1698 | fi |
| 1699 | done |
| 1700 | done |
| 1701 | |
| 1702 | fi |
| 1703 | fi |
| 1704 | CC=$ac_cv_prog_CC |
| 1705 | if test -n "$CC"; then |
| 1706 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1707 | echo "${ECHO_T}$CC" >&6 |
| 1708 | else |
| 1709 | echo "$as_me:$LINENO: result: no" >&5 |
| 1710 | echo "${ECHO_T}no" >&6 |
| 1711 | fi |
| 1712 | |
| 1713 | fi |
| 1714 | if test -z "$ac_cv_prog_CC"; then |
| 1715 | ac_ct_CC=$CC |
| 1716 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1717 | set dummy gcc; ac_word=$2 |
| 1718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1720 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1722 | else |
| 1723 | if test -n "$ac_ct_CC"; then |
| 1724 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1725 | else |
| 1726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1727 | for as_dir in $PATH |
| 1728 | do |
| 1729 | IFS=$as_save_IFS |
| 1730 | test -z "$as_dir" && as_dir=. |
| 1731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1733 | ac_cv_prog_ac_ct_CC="gcc" |
| 1734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1735 | break 2 |
| 1736 | fi |
| 1737 | done |
| 1738 | done |
| 1739 | |
| 1740 | fi |
| 1741 | fi |
| 1742 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1743 | if test -n "$ac_ct_CC"; then |
| 1744 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1745 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1746 | else |
| 1747 | echo "$as_me:$LINENO: result: no" >&5 |
| 1748 | echo "${ECHO_T}no" >&6 |
| 1749 | fi |
| 1750 | |
| 1751 | CC=$ac_ct_CC |
| 1752 | else |
| 1753 | CC="$ac_cv_prog_CC" |
| 1754 | fi |
| 1755 | |
| 1756 | if test -z "$CC"; then |
| 1757 | if test -n "$ac_tool_prefix"; then |
| 1758 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1759 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1762 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1764 | else |
| 1765 | if test -n "$CC"; then |
| 1766 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1767 | else |
| 1768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1769 | for as_dir in $PATH |
| 1770 | do |
| 1771 | IFS=$as_save_IFS |
| 1772 | test -z "$as_dir" && as_dir=. |
| 1773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1775 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1777 | break 2 |
| 1778 | fi |
| 1779 | done |
| 1780 | done |
| 1781 | |
| 1782 | fi |
| 1783 | fi |
| 1784 | CC=$ac_cv_prog_CC |
| 1785 | if test -n "$CC"; then |
| 1786 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1787 | echo "${ECHO_T}$CC" >&6 |
| 1788 | else |
| 1789 | echo "$as_me:$LINENO: result: no" >&5 |
| 1790 | echo "${ECHO_T}no" >&6 |
| 1791 | fi |
| 1792 | |
| 1793 | fi |
| 1794 | if test -z "$ac_cv_prog_CC"; then |
| 1795 | ac_ct_CC=$CC |
| 1796 | # Extract the first word of "cc", so it can be a program name with args. |
| 1797 | set dummy cc; ac_word=$2 |
| 1798 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1800 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1802 | else |
| 1803 | if test -n "$ac_ct_CC"; then |
| 1804 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1805 | else |
| 1806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1807 | for as_dir in $PATH |
| 1808 | do |
| 1809 | IFS=$as_save_IFS |
| 1810 | test -z "$as_dir" && as_dir=. |
| 1811 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1813 | ac_cv_prog_ac_ct_CC="cc" |
| 1814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1815 | break 2 |
| 1816 | fi |
| 1817 | done |
| 1818 | done |
| 1819 | |
| 1820 | fi |
| 1821 | fi |
| 1822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1823 | if test -n "$ac_ct_CC"; then |
| 1824 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1825 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1826 | else |
| 1827 | echo "$as_me:$LINENO: result: no" >&5 |
| 1828 | echo "${ECHO_T}no" >&6 |
| 1829 | fi |
| 1830 | |
| 1831 | CC=$ac_ct_CC |
| 1832 | else |
| 1833 | CC="$ac_cv_prog_CC" |
| 1834 | fi |
| 1835 | |
| 1836 | fi |
| 1837 | if test -z "$CC"; then |
| 1838 | # Extract the first word of "cc", so it can be a program name with args. |
| 1839 | set dummy cc; ac_word=$2 |
| 1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1842 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1844 | else |
| 1845 | if test -n "$CC"; then |
| 1846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1847 | else |
| 1848 | ac_prog_rejected=no |
| 1849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1850 | for as_dir in $PATH |
| 1851 | do |
| 1852 | IFS=$as_save_IFS |
| 1853 | test -z "$as_dir" && as_dir=. |
| 1854 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1856 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1857 | ac_prog_rejected=yes |
| 1858 | continue |
| 1859 | fi |
| 1860 | ac_cv_prog_CC="cc" |
| 1861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1862 | break 2 |
| 1863 | fi |
| 1864 | done |
| 1865 | done |
| 1866 | |
| 1867 | if test $ac_prog_rejected = yes; then |
| 1868 | # We found a bogon in the path, so make sure we never use it. |
| 1869 | set dummy $ac_cv_prog_CC |
| 1870 | shift |
| 1871 | if test $# != 0; then |
| 1872 | # We chose a different compiler from the bogus one. |
| 1873 | # However, it has the same basename, so the bogon will be chosen |
| 1874 | # first if we set CC to just the basename; use the full file name. |
| 1875 | shift |
| 1876 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1877 | shift |
| 1878 | ac_cv_prog_CC="$@" |
| 1879 | fi |
| 1880 | fi |
| 1881 | fi |
| 1882 | fi |
| 1883 | CC=$ac_cv_prog_CC |
| 1884 | if test -n "$CC"; then |
| 1885 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1886 | echo "${ECHO_T}$CC" >&6 |
| 1887 | else |
| 1888 | echo "$as_me:$LINENO: result: no" >&5 |
| 1889 | echo "${ECHO_T}no" >&6 |
| 1890 | fi |
| 1891 | |
| 1892 | fi |
| 1893 | if test -z "$CC"; then |
| 1894 | if test -n "$ac_tool_prefix"; then |
| 1895 | for ac_prog in cl |
| 1896 | do |
| 1897 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1898 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1899 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1901 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1903 | else |
| 1904 | if test -n "$CC"; then |
| 1905 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1906 | else |
| 1907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1908 | for as_dir in $PATH |
| 1909 | do |
| 1910 | IFS=$as_save_IFS |
| 1911 | test -z "$as_dir" && as_dir=. |
| 1912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1913 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1914 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1916 | break 2 |
| 1917 | fi |
| 1918 | done |
| 1919 | done |
| 1920 | |
| 1921 | fi |
| 1922 | fi |
| 1923 | CC=$ac_cv_prog_CC |
| 1924 | if test -n "$CC"; then |
| 1925 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1926 | echo "${ECHO_T}$CC" >&6 |
| 1927 | else |
| 1928 | echo "$as_me:$LINENO: result: no" >&5 |
| 1929 | echo "${ECHO_T}no" >&6 |
| 1930 | fi |
| 1931 | |
| 1932 | test -n "$CC" && break |
| 1933 | done |
| 1934 | fi |
| 1935 | if test -z "$CC"; then |
| 1936 | ac_ct_CC=$CC |
| 1937 | for ac_prog in cl |
| 1938 | do |
| 1939 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1940 | set dummy $ac_prog; ac_word=$2 |
| 1941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1943 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1945 | else |
| 1946 | if test -n "$ac_ct_CC"; then |
| 1947 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1948 | else |
| 1949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1950 | for as_dir in $PATH |
| 1951 | do |
| 1952 | IFS=$as_save_IFS |
| 1953 | test -z "$as_dir" && as_dir=. |
| 1954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1956 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1958 | break 2 |
| 1959 | fi |
| 1960 | done |
| 1961 | done |
| 1962 | |
| 1963 | fi |
| 1964 | fi |
| 1965 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1966 | if test -n "$ac_ct_CC"; then |
| 1967 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1968 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1969 | else |
| 1970 | echo "$as_me:$LINENO: result: no" >&5 |
| 1971 | echo "${ECHO_T}no" >&6 |
| 1972 | fi |
| 1973 | |
| 1974 | test -n "$ac_ct_CC" && break |
| 1975 | done |
| 1976 | |
| 1977 | CC=$ac_ct_CC |
| 1978 | fi |
| 1979 | |
| 1980 | fi |
| 1981 | |
| 1982 | |
| 1983 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1984 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1985 | { (exit 1); exit 1; }; } |
| 1986 | |
| 1987 | # Provide some information about the compiler. |
| 1988 | echo "$as_me:$LINENO:" \ |
| 1989 | "checking for C compiler version" >&5 |
| 1990 | ac_compiler=`set X $ac_compile; echo $2` |
| 1991 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1992 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1993 | ac_status=$? |
| 1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1995 | (exit $ac_status); } |
| 1996 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1997 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1998 | ac_status=$? |
| 1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2000 | (exit $ac_status); } |
| 2001 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2002 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2003 | ac_status=$? |
| 2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2005 | (exit $ac_status); } |
| 2006 | |
| 2007 | cat >conftest.$ac_ext <<_ACEOF |
| 2008 | #line $LINENO "configure" |
| 2009 | #include "confdefs.h" |
| 2010 | |
| 2011 | #ifdef F77_DUMMY_MAIN |
| 2012 | # ifdef __cplusplus |
| 2013 | extern "C" |
| 2014 | # endif |
| 2015 | int F77_DUMMY_MAIN() { return 1; } |
| 2016 | #endif |
| 2017 | int |
| 2018 | main () |
| 2019 | { |
| 2020 | |
| 2021 | ; |
| 2022 | return 0; |
| 2023 | } |
| 2024 | _ACEOF |
| 2025 | ac_clean_files_save=$ac_clean_files |
| 2026 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2027 | # Try to create an executable without -o first, disregard a.out. |
| 2028 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2029 | # of exeext. |
| 2030 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2031 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2032 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2033 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2034 | (eval $ac_link_default) 2>&5 |
| 2035 | ac_status=$? |
| 2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2037 | (exit $ac_status); }; then |
| 2038 | # Find the output, starting from the most likely. This scheme is |
| 2039 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2040 | # resort. |
| 2041 | |
| 2042 | # Be careful to initialize this variable, since it used to be cached. |
| 2043 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2044 | ac_cv_exeext= |
| 2045 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2046 | ls a.out conftest 2>/dev/null; |
| 2047 | ls a.* conftest.* 2>/dev/null`; do |
| 2048 | case $ac_file in |
| 2049 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2050 | a.out ) # We found the default executable, but exeext='' is most |
| 2051 | # certainly right. |
| 2052 | break;; |
| 2053 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2054 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2055 | export ac_cv_exeext |
| 2056 | break;; |
| 2057 | * ) break;; |
| 2058 | esac |
| 2059 | done |
| 2060 | else |
| 2061 | echo "$as_me: failed program was:" >&5 |
| 2062 | cat conftest.$ac_ext >&5 |
| 2063 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2064 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2065 | { (exit 77); exit 77; }; } |
| 2066 | fi |
| 2067 | |
| 2068 | ac_exeext=$ac_cv_exeext |
| 2069 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2070 | echo "${ECHO_T}$ac_file" >&6 |
| 2071 | |
| 2072 | # Check the compiler produces executables we can run. If not, either |
| 2073 | # the compiler is broken, or we cross compile. |
| 2074 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2075 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2076 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2077 | # If not cross compiling, check that we can run a simple program. |
| 2078 | if test "$cross_compiling" != yes; then |
| 2079 | if { ac_try='./$ac_file' |
| 2080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2081 | (eval $ac_try) 2>&5 |
| 2082 | ac_status=$? |
| 2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2084 | (exit $ac_status); }; }; then |
| 2085 | cross_compiling=no |
| 2086 | else |
| 2087 | if test "$cross_compiling" = maybe; then |
| 2088 | cross_compiling=yes |
| 2089 | else |
| 2090 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2091 | If you meant to cross compile, use \`--host'." >&5 |
| 2092 | echo "$as_me: error: cannot run C compiled programs. |
| 2093 | If you meant to cross compile, use \`--host'." >&2;} |
| 2094 | { (exit 1); exit 1; }; } |
| 2095 | fi |
| 2096 | fi |
| 2097 | fi |
| 2098 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2099 | echo "${ECHO_T}yes" >&6 |
| 2100 | |
| 2101 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2102 | ac_clean_files=$ac_clean_files_save |
| 2103 | # Check the compiler produces executables we can run. If not, either |
| 2104 | # the compiler is broken, or we cross compile. |
| 2105 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2106 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2107 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2108 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2109 | |
| 2110 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2111 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2113 | (eval $ac_link) 2>&5 |
| 2114 | ac_status=$? |
| 2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2116 | (exit $ac_status); }; then |
| 2117 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2118 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2119 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2120 | # `rm'. |
| 2121 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2122 | case $ac_file in |
| 2123 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2124 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2125 | export ac_cv_exeext |
| 2126 | break;; |
| 2127 | * ) break;; |
| 2128 | esac |
| 2129 | done |
| 2130 | else |
| 2131 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2132 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2133 | { (exit 1); exit 1; }; } |
| 2134 | fi |
| 2135 | |
| 2136 | rm -f conftest$ac_cv_exeext |
| 2137 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2138 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2139 | |
| 2140 | rm -f conftest.$ac_ext |
| 2141 | EXEEXT=$ac_cv_exeext |
| 2142 | ac_exeext=$EXEEXT |
| 2143 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2144 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2145 | if test "${ac_cv_objext+set}" = set; then |
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2147 | else |
| 2148 | cat >conftest.$ac_ext <<_ACEOF |
| 2149 | #line $LINENO "configure" |
| 2150 | #include "confdefs.h" |
| 2151 | |
| 2152 | #ifdef F77_DUMMY_MAIN |
| 2153 | # ifdef __cplusplus |
| 2154 | extern "C" |
| 2155 | # endif |
| 2156 | int F77_DUMMY_MAIN() { return 1; } |
| 2157 | #endif |
| 2158 | int |
| 2159 | main () |
| 2160 | { |
| 2161 | |
| 2162 | ; |
| 2163 | return 0; |
| 2164 | } |
| 2165 | _ACEOF |
| 2166 | rm -f conftest.o conftest.obj |
| 2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2168 | (eval $ac_compile) 2>&5 |
| 2169 | ac_status=$? |
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2171 | (exit $ac_status); }; then |
| 2172 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2173 | case $ac_file in |
| 2174 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2175 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2176 | break;; |
| 2177 | esac |
| 2178 | done |
| 2179 | else |
| 2180 | echo "$as_me: failed program was:" >&5 |
| 2181 | cat conftest.$ac_ext >&5 |
| 2182 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2183 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2184 | { (exit 1); exit 1; }; } |
| 2185 | fi |
| 2186 | |
| 2187 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2188 | fi |
| 2189 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2190 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2191 | OBJEXT=$ac_cv_objext |
| 2192 | ac_objext=$OBJEXT |
| 2193 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2194 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2195 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2197 | else |
| 2198 | cat >conftest.$ac_ext <<_ACEOF |
| 2199 | #line $LINENO "configure" |
| 2200 | #include "confdefs.h" |
| 2201 | |
| 2202 | #ifdef F77_DUMMY_MAIN |
| 2203 | # ifdef __cplusplus |
| 2204 | extern "C" |
| 2205 | # endif |
| 2206 | int F77_DUMMY_MAIN() { return 1; } |
| 2207 | #endif |
| 2208 | int |
| 2209 | main () |
| 2210 | { |
| 2211 | #ifndef __GNUC__ |
| 2212 | choke me |
| 2213 | #endif |
| 2214 | |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.$ac_objext |
| 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>&5 |
| 2222 | ac_status=$? |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); } && |
| 2225 | { ac_try='test -s conftest.$ac_objext' |
| 2226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2227 | (eval $ac_try) 2>&5 |
| 2228 | ac_status=$? |
| 2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2230 | (exit $ac_status); }; }; then |
| 2231 | ac_compiler_gnu=yes |
| 2232 | else |
| 2233 | echo "$as_me: failed program was:" >&5 |
| 2234 | cat conftest.$ac_ext >&5 |
| 2235 | ac_compiler_gnu=no |
| 2236 | fi |
| 2237 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2238 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2239 | |
| 2240 | fi |
| 2241 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2242 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2243 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2244 | ac_test_CFLAGS=${CFLAGS+set} |
| 2245 | ac_save_CFLAGS=$CFLAGS |
| 2246 | CFLAGS="-g" |
| 2247 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2248 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2249 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2251 | else |
| 2252 | cat >conftest.$ac_ext <<_ACEOF |
| 2253 | #line $LINENO "configure" |
| 2254 | #include "confdefs.h" |
| 2255 | |
| 2256 | #ifdef F77_DUMMY_MAIN |
| 2257 | # ifdef __cplusplus |
| 2258 | extern "C" |
| 2259 | # endif |
| 2260 | int F77_DUMMY_MAIN() { return 1; } |
| 2261 | #endif |
| 2262 | int |
| 2263 | main () |
| 2264 | { |
| 2265 | |
| 2266 | ; |
| 2267 | return 0; |
| 2268 | } |
| 2269 | _ACEOF |
| 2270 | rm -f conftest.$ac_objext |
| 2271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2272 | (eval $ac_compile) 2>&5 |
| 2273 | ac_status=$? |
| 2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2275 | (exit $ac_status); } && |
| 2276 | { ac_try='test -s conftest.$ac_objext' |
| 2277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2278 | (eval $ac_try) 2>&5 |
| 2279 | ac_status=$? |
| 2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2281 | (exit $ac_status); }; }; then |
| 2282 | ac_cv_prog_cc_g=yes |
| 2283 | else |
| 2284 | echo "$as_me: failed program was:" >&5 |
| 2285 | cat conftest.$ac_ext >&5 |
| 2286 | ac_cv_prog_cc_g=no |
| 2287 | fi |
| 2288 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2289 | fi |
| 2290 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2291 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2292 | if test "$ac_test_CFLAGS" = set; then |
| 2293 | CFLAGS=$ac_save_CFLAGS |
| 2294 | elif test $ac_cv_prog_cc_g = yes; then |
| 2295 | if test "$GCC" = yes; then |
| 2296 | CFLAGS="-g -O2" |
| 2297 | else |
| 2298 | CFLAGS="-g" |
| 2299 | fi |
| 2300 | else |
| 2301 | if test "$GCC" = yes; then |
| 2302 | CFLAGS="-O2" |
| 2303 | else |
| 2304 | CFLAGS= |
| 2305 | fi |
| 2306 | fi |
| 2307 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2308 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2309 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2310 | # the declaration of exit, since it's the most demanding environment. |
| 2311 | cat >conftest.$ac_ext <<_ACEOF |
| 2312 | #ifndef __cplusplus |
| 2313 | choke me |
| 2314 | #endif |
| 2315 | _ACEOF |
| 2316 | rm -f conftest.$ac_objext |
| 2317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2318 | (eval $ac_compile) 2>&5 |
| 2319 | ac_status=$? |
| 2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2321 | (exit $ac_status); } && |
| 2322 | { ac_try='test -s conftest.$ac_objext' |
| 2323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2324 | (eval $ac_try) 2>&5 |
| 2325 | ac_status=$? |
| 2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2327 | (exit $ac_status); }; }; then |
| 2328 | for ac_declaration in \ |
| 2329 | ''\ |
| 2330 | '#include <stdlib.h>' \ |
| 2331 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2332 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2333 | 'extern "C" void exit (int) throw ();' \ |
| 2334 | 'extern "C" void exit (int);' \ |
| 2335 | 'void exit (int);' |
| 2336 | do |
| 2337 | cat >conftest.$ac_ext <<_ACEOF |
| 2338 | #line $LINENO "configure" |
| 2339 | #include "confdefs.h" |
| 2340 | #include <stdlib.h> |
| 2341 | $ac_declaration |
| 2342 | #ifdef F77_DUMMY_MAIN |
| 2343 | # ifdef __cplusplus |
| 2344 | extern "C" |
| 2345 | # endif |
| 2346 | int F77_DUMMY_MAIN() { return 1; } |
| 2347 | #endif |
| 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | exit (42); |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | rm -f conftest.$ac_objext |
| 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2358 | (eval $ac_compile) 2>&5 |
| 2359 | ac_status=$? |
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2361 | (exit $ac_status); } && |
| 2362 | { ac_try='test -s conftest.$ac_objext' |
| 2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2364 | (eval $ac_try) 2>&5 |
| 2365 | ac_status=$? |
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2367 | (exit $ac_status); }; }; then |
| 2368 | : |
| 2369 | else |
| 2370 | echo "$as_me: failed program was:" >&5 |
| 2371 | cat conftest.$ac_ext >&5 |
| 2372 | continue |
| 2373 | fi |
| 2374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2375 | cat >conftest.$ac_ext <<_ACEOF |
| 2376 | #line $LINENO "configure" |
| 2377 | #include "confdefs.h" |
| 2378 | $ac_declaration |
| 2379 | #ifdef F77_DUMMY_MAIN |
| 2380 | # ifdef __cplusplus |
| 2381 | extern "C" |
| 2382 | # endif |
| 2383 | int F77_DUMMY_MAIN() { return 1; } |
| 2384 | #endif |
| 2385 | int |
| 2386 | main () |
| 2387 | { |
| 2388 | exit (42); |
| 2389 | ; |
| 2390 | return 0; |
| 2391 | } |
| 2392 | _ACEOF |
| 2393 | rm -f conftest.$ac_objext |
| 2394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2395 | (eval $ac_compile) 2>&5 |
| 2396 | ac_status=$? |
| 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); } && |
| 2399 | { ac_try='test -s conftest.$ac_objext' |
| 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2401 | (eval $ac_try) 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; }; then |
| 2405 | break |
| 2406 | else |
| 2407 | echo "$as_me: failed program was:" >&5 |
| 2408 | cat conftest.$ac_ext >&5 |
| 2409 | fi |
| 2410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2411 | done |
| 2412 | rm -f conftest* |
| 2413 | if test -n "$ac_declaration"; then |
| 2414 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2415 | echo $ac_declaration >>confdefs.h |
| 2416 | echo '#endif' >>confdefs.h |
| 2417 | fi |
| 2418 | |
| 2419 | else |
| 2420 | echo "$as_me: failed program was:" >&5 |
| 2421 | cat conftest.$ac_ext >&5 |
| 2422 | fi |
| 2423 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2424 | ac_ext=c |
| 2425 | ac_cpp='$CPP $CPPFLAGS' |
| 2426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2429 | rm -f .deps 2>/dev/null |
| 2430 | mkdir .deps 2>/dev/null |
| 2431 | if test -d .deps; then |
| 2432 | DEPDIR=.deps |
| 2433 | else |
| 2434 | # MS-DOS does not allow filenames that begin with a dot. |
| 2435 | DEPDIR=_deps |
| 2436 | fi |
| 2437 | rmdir .deps 2>/dev/null |
| 2438 | |
| 2439 | |
| 2440 | ac_config_commands="$ac_config_commands depfiles" |
| 2441 | |
| 2442 | |
| 2443 | am_make=${MAKE-make} |
| 2444 | cat > confinc << 'END' |
| 2445 | doit: |
| 2446 | @echo done |
| 2447 | END |
| 2448 | # If we don't find an include directive, just comment out the code. |
| 2449 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2450 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2451 | am__include="#" |
| 2452 | am__quote= |
| 2453 | _am_result=none |
| 2454 | # First try GNU make style include. |
| 2455 | echo "include confinc" > confmf |
| 2456 | # We grep out `Entering directory' and `Leaving directory' |
| 2457 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2458 | # In particular we don't look at `^make:' because GNU make might |
| 2459 | # be invoked under some other name (usually "gmake"), in which |
| 2460 | # case it prints its new name instead of `make'. |
| 2461 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 2462 | am__include=include |
| 2463 | am__quote= |
| 2464 | _am_result=GNU |
| 2465 | fi |
| 2466 | # Now try BSD make style include. |
| 2467 | if test "$am__include" = "#"; then |
| 2468 | echo '.include "confinc"' > confmf |
| 2469 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2470 | am__include=.include |
| 2471 | am__quote="\"" |
| 2472 | _am_result=BSD |
| 2473 | fi |
| 2474 | fi |
| 2475 | |
| 2476 | |
| 2477 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2478 | echo "${ECHO_T}$_am_result" >&6 |
| 2479 | rm -f confinc confmf |
| 2480 | |
| 2481 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2482 | if test "${enable_dependency_tracking+set}" = set; then |
| 2483 | enableval="$enable_dependency_tracking" |
| 2484 | |
| 2485 | fi; |
| 2486 | if test "x$enable_dependency_tracking" != xno; then |
| 2487 | am_depcomp="$ac_aux_dir/depcomp" |
| 2488 | AMDEPBACKSLASH='\' |
| 2489 | fi |
| 2490 | |
| 2491 | |
| 2492 | if test "x$enable_dependency_tracking" != xno; then |
| 2493 | AMDEP_TRUE= |
| 2494 | AMDEP_FALSE='#' |
| 2495 | else |
| 2496 | AMDEP_TRUE='#' |
| 2497 | AMDEP_FALSE= |
| 2498 | fi |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
| 2503 | depcc="$CC" am_compiler_list= |
| 2504 | |
| 2505 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2506 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2507 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2509 | else |
| 2510 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2511 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2512 | # making bogus files that we don't know about and never remove. For |
| 2513 | # instance it was reported that on HP-UX the gcc test will end up |
| 2514 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2515 | # in D'. |
| 2516 | mkdir conftest.dir |
| 2517 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2518 | # using a relative directory. |
| 2519 | cp "$am_depcomp" conftest.dir |
| 2520 | cd conftest.dir |
| 2521 | |
| 2522 | am_cv_CC_dependencies_compiler_type=none |
| 2523 | if test "$am_compiler_list" = ""; then |
| 2524 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2525 | fi |
| 2526 | for depmode in $am_compiler_list; do |
| 2527 | # We need to recreate these files for each test, as the compiler may |
| 2528 | # overwrite some of them when testing with obscure command lines. |
| 2529 | # This happens at least with the AIX C compiler. |
| 2530 | echo '#include "conftest.h"' > conftest.c |
| 2531 | echo 'int i;' > conftest.h |
| 2532 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2533 | |
| 2534 | case $depmode in |
| 2535 | nosideeffect) |
| 2536 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2537 | # only be used when explicitly requested |
| 2538 | if test "x$enable_dependency_tracking" = xyes; then |
| 2539 | continue |
| 2540 | else |
| 2541 | break |
| 2542 | fi |
| 2543 | ;; |
| 2544 | none) break ;; |
| 2545 | esac |
| 2546 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2547 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2548 | # handle `-M -o', and we need to detect this. |
| 2549 | if depmode=$depmode \ |
| 2550 | source=conftest.c object=conftest.o \ |
| 2551 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2552 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2553 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2554 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2555 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2556 | break |
| 2557 | fi |
| 2558 | done |
| 2559 | |
| 2560 | cd .. |
| 2561 | rm -rf conftest.dir |
| 2562 | else |
| 2563 | am_cv_CC_dependencies_compiler_type=none |
| 2564 | fi |
| 2565 | |
| 2566 | fi |
| 2567 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2568 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2569 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2570 | |
| 2571 | |
| 2572 | |
| 2573 | if test "x$cflags_specified" = "x" ; then |
| 2574 | CFLAGS="$CFLAGS -Wall" |
| 2575 | fi |
| 2576 | |
| 2577 | ac_ext=c |
| 2578 | ac_cpp='$CPP $CPPFLAGS' |
| 2579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2582 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2583 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2584 | # On Suns, sometimes $CPP names a directory. |
| 2585 | if test -n "$CPP" && test -d "$CPP"; then |
| 2586 | CPP= |
| 2587 | fi |
| 2588 | if test -z "$CPP"; then |
| 2589 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2591 | else |
| 2592 | # Double quotes because CPP needs to be expanded |
| 2593 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2594 | do |
| 2595 | ac_preproc_ok=false |
| 2596 | for ac_c_preproc_warn_flag in '' yes |
| 2597 | do |
| 2598 | # Use a header file that comes with gcc, so configuring glibc |
| 2599 | # with a fresh cross-compiler works. |
| 2600 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2601 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2602 | cat >conftest.$ac_ext <<_ACEOF |
| 2603 | #line $LINENO "configure" |
| 2604 | #include "confdefs.h" |
| 2605 | #include <assert.h> |
| 2606 | Syntax error |
| 2607 | _ACEOF |
| 2608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2610 | ac_status=$? |
| 2611 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2612 | rm -f conftest.er1 |
| 2613 | cat conftest.err >&5 |
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } >/dev/null; then |
| 2616 | if test -s conftest.err; then |
| 2617 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2618 | else |
| 2619 | ac_cpp_err= |
| 2620 | fi |
| 2621 | else |
| 2622 | ac_cpp_err=yes |
| 2623 | fi |
| 2624 | if test -z "$ac_cpp_err"; then |
| 2625 | : |
| 2626 | else |
| 2627 | echo "$as_me: failed program was:" >&5 |
| 2628 | cat conftest.$ac_ext >&5 |
| 2629 | # Broken: fails on valid input. |
| 2630 | continue |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_ext |
| 2633 | |
| 2634 | # OK, works on sane cases. Now check whether non-existent headers |
| 2635 | # can be detected and how. |
| 2636 | cat >conftest.$ac_ext <<_ACEOF |
| 2637 | #line $LINENO "configure" |
| 2638 | #include "confdefs.h" |
| 2639 | #include <ac_nonexistent.h> |
| 2640 | _ACEOF |
| 2641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2643 | ac_status=$? |
| 2644 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2645 | rm -f conftest.er1 |
| 2646 | cat conftest.err >&5 |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2648 | (exit $ac_status); } >/dev/null; then |
| 2649 | if test -s conftest.err; then |
| 2650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2651 | else |
| 2652 | ac_cpp_err= |
| 2653 | fi |
| 2654 | else |
| 2655 | ac_cpp_err=yes |
| 2656 | fi |
| 2657 | if test -z "$ac_cpp_err"; then |
| 2658 | # Broken: success on invalid input. |
| 2659 | continue |
| 2660 | else |
| 2661 | echo "$as_me: failed program was:" >&5 |
| 2662 | cat conftest.$ac_ext >&5 |
| 2663 | # Passes both tests. |
| 2664 | ac_preproc_ok=: |
| 2665 | break |
| 2666 | fi |
| 2667 | rm -f conftest.err conftest.$ac_ext |
| 2668 | |
| 2669 | done |
| 2670 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2671 | rm -f conftest.err conftest.$ac_ext |
| 2672 | if $ac_preproc_ok; then |
| 2673 | break |
| 2674 | fi |
| 2675 | |
| 2676 | done |
| 2677 | ac_cv_prog_CPP=$CPP |
| 2678 | |
| 2679 | fi |
| 2680 | CPP=$ac_cv_prog_CPP |
| 2681 | else |
| 2682 | ac_cv_prog_CPP=$CPP |
| 2683 | fi |
| 2684 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2685 | echo "${ECHO_T}$CPP" >&6 |
| 2686 | ac_preproc_ok=false |
| 2687 | for ac_c_preproc_warn_flag in '' yes |
| 2688 | do |
| 2689 | # Use a header file that comes with gcc, so configuring glibc |
| 2690 | # with a fresh cross-compiler works. |
| 2691 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2692 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2693 | cat >conftest.$ac_ext <<_ACEOF |
| 2694 | #line $LINENO "configure" |
| 2695 | #include "confdefs.h" |
| 2696 | #include <assert.h> |
| 2697 | Syntax error |
| 2698 | _ACEOF |
| 2699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2701 | ac_status=$? |
| 2702 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2703 | rm -f conftest.er1 |
| 2704 | cat conftest.err >&5 |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2706 | (exit $ac_status); } >/dev/null; then |
| 2707 | if test -s conftest.err; then |
| 2708 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2709 | else |
| 2710 | ac_cpp_err= |
| 2711 | fi |
| 2712 | else |
| 2713 | ac_cpp_err=yes |
| 2714 | fi |
| 2715 | if test -z "$ac_cpp_err"; then |
| 2716 | : |
| 2717 | else |
| 2718 | echo "$as_me: failed program was:" >&5 |
| 2719 | cat conftest.$ac_ext >&5 |
| 2720 | # Broken: fails on valid input. |
| 2721 | continue |
| 2722 | fi |
| 2723 | rm -f conftest.err conftest.$ac_ext |
| 2724 | |
| 2725 | # OK, works on sane cases. Now check whether non-existent headers |
| 2726 | # can be detected and how. |
| 2727 | cat >conftest.$ac_ext <<_ACEOF |
| 2728 | #line $LINENO "configure" |
| 2729 | #include "confdefs.h" |
| 2730 | #include <ac_nonexistent.h> |
| 2731 | _ACEOF |
| 2732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2734 | ac_status=$? |
| 2735 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2736 | rm -f conftest.er1 |
| 2737 | cat conftest.err >&5 |
| 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); } >/dev/null; then |
| 2740 | if test -s conftest.err; then |
| 2741 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2742 | else |
| 2743 | ac_cpp_err= |
| 2744 | fi |
| 2745 | else |
| 2746 | ac_cpp_err=yes |
| 2747 | fi |
| 2748 | if test -z "$ac_cpp_err"; then |
| 2749 | # Broken: success on invalid input. |
| 2750 | continue |
| 2751 | else |
| 2752 | echo "$as_me: failed program was:" >&5 |
| 2753 | cat conftest.$ac_ext >&5 |
| 2754 | # Passes both tests. |
| 2755 | ac_preproc_ok=: |
| 2756 | break |
| 2757 | fi |
| 2758 | rm -f conftest.err conftest.$ac_ext |
| 2759 | |
| 2760 | done |
| 2761 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2762 | rm -f conftest.err conftest.$ac_ext |
| 2763 | if $ac_preproc_ok; then |
| 2764 | : |
| 2765 | else |
| 2766 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2767 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2768 | { (exit 1); exit 1; }; } |
| 2769 | fi |
| 2770 | |
| 2771 | ac_ext=c |
| 2772 | ac_cpp='$CPP $CPPFLAGS' |
| 2773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2776 | |
| 2777 | # Find a good install program. We prefer a C program (faster), |
| 2778 | # so one script is as good as another. But avoid the broken or |
| 2779 | # incompatible versions: |
| 2780 | # SysV /etc/install, /usr/sbin/install |
| 2781 | # SunOS /usr/etc/install |
| 2782 | # IRIX /sbin/install |
| 2783 | # AIX /bin/install |
| 2784 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2785 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2786 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2787 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2788 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2789 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2790 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2791 | if test -z "$INSTALL"; then |
| 2792 | if test "${ac_cv_path_install+set}" = set; then |
| 2793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2794 | else |
| 2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2796 | for as_dir in $PATH |
| 2797 | do |
| 2798 | IFS=$as_save_IFS |
| 2799 | test -z "$as_dir" && as_dir=. |
| 2800 | # Account for people who put trailing slashes in PATH elements. |
| 2801 | case $as_dir/ in |
| 2802 | ./ | .// | /cC/* | \ |
| 2803 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2804 | /usr/ucb/* ) ;; |
| 2805 | *) |
| 2806 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2807 | # Don't use installbsd from OSF since it installs stuff as root |
| 2808 | # by default. |
| 2809 | for ac_prog in ginstall scoinst install; do |
| 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2811 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2812 | if test $ac_prog = install && |
| 2813 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2814 | # AIX install. It has an incompatible calling convention. |
| 2815 | : |
| 2816 | elif test $ac_prog = install && |
| 2817 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2818 | # program-specific install script used by HP pwplus--don't use. |
| 2819 | : |
| 2820 | else |
| 2821 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2822 | break 3 |
| 2823 | fi |
| 2824 | fi |
| 2825 | done |
| 2826 | done |
| 2827 | ;; |
| 2828 | esac |
| 2829 | done |
| 2830 | |
| 2831 | |
| 2832 | fi |
| 2833 | if test "${ac_cv_path_install+set}" = set; then |
| 2834 | INSTALL=$ac_cv_path_install |
| 2835 | else |
| 2836 | # As a last resort, use the slow shell script. We don't cache a |
| 2837 | # path for INSTALL within a source directory, because that will |
| 2838 | # break other packages using the cache if that directory is |
| 2839 | # removed, or if the path is relative. |
| 2840 | INSTALL=$ac_install_sh |
| 2841 | fi |
| 2842 | fi |
| 2843 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2844 | echo "${ECHO_T}$INSTALL" >&6 |
| 2845 | |
| 2846 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2847 | # It thinks the first close brace ends the variable substitution. |
| 2848 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2849 | |
| 2850 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2851 | |
| 2852 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2853 | |
| 2854 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2855 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 2856 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2857 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2859 | else |
| 2860 | cat >conftest.make <<\_ACEOF |
| 2861 | all: |
| 2862 | @echo 'ac_maketemp="${MAKE}"' |
| 2863 | _ACEOF |
| 2864 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2865 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2866 | if test -n "$ac_maketemp"; then |
| 2867 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2868 | else |
| 2869 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2870 | fi |
| 2871 | rm -f conftest.make |
| 2872 | fi |
| 2873 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2874 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2875 | echo "${ECHO_T}yes" >&6 |
| 2876 | SET_MAKE= |
| 2877 | else |
| 2878 | echo "$as_me:$LINENO: result: no" >&5 |
| 2879 | echo "${ECHO_T}no" >&6 |
| 2880 | SET_MAKE="MAKE=${MAKE-make}" |
| 2881 | fi |
| 2882 | |
| 2883 | if test -n "$ac_tool_prefix"; then |
| 2884 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 2885 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 2886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2888 | if test "${ac_cv_prog_AR+set}" = set; then |
| 2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2890 | else |
| 2891 | if test -n "$AR"; then |
| 2892 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 2893 | else |
| 2894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2895 | for as_dir in $PATH |
| 2896 | do |
| 2897 | IFS=$as_save_IFS |
| 2898 | test -z "$as_dir" && as_dir=. |
| 2899 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2901 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 2902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2903 | break 2 |
| 2904 | fi |
| 2905 | done |
| 2906 | done |
| 2907 | |
| 2908 | fi |
| 2909 | fi |
| 2910 | AR=$ac_cv_prog_AR |
| 2911 | if test -n "$AR"; then |
| 2912 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 2913 | echo "${ECHO_T}$AR" >&6 |
| 2914 | else |
| 2915 | echo "$as_me:$LINENO: result: no" >&5 |
| 2916 | echo "${ECHO_T}no" >&6 |
| 2917 | fi |
| 2918 | |
| 2919 | fi |
| 2920 | if test -z "$ac_cv_prog_AR"; then |
| 2921 | ac_ct_AR=$AR |
| 2922 | # Extract the first word of "ar", so it can be a program name with args. |
| 2923 | set dummy ar; ac_word=$2 |
| 2924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2926 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 2927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2928 | else |
| 2929 | if test -n "$ac_ct_AR"; then |
| 2930 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 2931 | else |
| 2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2933 | for as_dir in $PATH |
| 2934 | do |
| 2935 | IFS=$as_save_IFS |
| 2936 | test -z "$as_dir" && as_dir=. |
| 2937 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2939 | ac_cv_prog_ac_ct_AR="ar" |
| 2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2941 | break 2 |
| 2942 | fi |
| 2943 | done |
| 2944 | done |
| 2945 | |
| 2946 | fi |
| 2947 | fi |
| 2948 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 2949 | if test -n "$ac_ct_AR"; then |
| 2950 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 2951 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 2952 | else |
| 2953 | echo "$as_me:$LINENO: result: no" >&5 |
| 2954 | echo "${ECHO_T}no" >&6 |
| 2955 | fi |
| 2956 | |
| 2957 | AR=$ac_ct_AR |
| 2958 | else |
| 2959 | AR="$ac_cv_prog_AR" |
| 2960 | fi |
| 2961 | |
| 2962 | if test -n "$ac_tool_prefix"; then |
| 2963 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2964 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2967 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2969 | else |
| 2970 | if test -n "$RANLIB"; then |
| 2971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2972 | else |
| 2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2974 | for as_dir in $PATH |
| 2975 | do |
| 2976 | IFS=$as_save_IFS |
| 2977 | test -z "$as_dir" && as_dir=. |
| 2978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2980 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2982 | break 2 |
| 2983 | fi |
| 2984 | done |
| 2985 | done |
| 2986 | |
| 2987 | fi |
| 2988 | fi |
| 2989 | RANLIB=$ac_cv_prog_RANLIB |
| 2990 | if test -n "$RANLIB"; then |
| 2991 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2992 | echo "${ECHO_T}$RANLIB" >&6 |
| 2993 | else |
| 2994 | echo "$as_me:$LINENO: result: no" >&5 |
| 2995 | echo "${ECHO_T}no" >&6 |
| 2996 | fi |
| 2997 | |
| 2998 | fi |
| 2999 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3000 | ac_ct_RANLIB=$RANLIB |
| 3001 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3002 | set dummy ranlib; ac_word=$2 |
| 3003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3005 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3007 | else |
| 3008 | if test -n "$ac_ct_RANLIB"; then |
| 3009 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3010 | else |
| 3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3012 | for as_dir in $PATH |
| 3013 | do |
| 3014 | IFS=$as_save_IFS |
| 3015 | test -z "$as_dir" && as_dir=. |
| 3016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3018 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3020 | break 2 |
| 3021 | fi |
| 3022 | done |
| 3023 | done |
| 3024 | |
| 3025 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3026 | fi |
| 3027 | fi |
| 3028 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3029 | if test -n "$ac_ct_RANLIB"; then |
| 3030 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3031 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3032 | else |
| 3033 | echo "$as_me:$LINENO: result: no" >&5 |
| 3034 | echo "${ECHO_T}no" >&6 |
| 3035 | fi |
| 3036 | |
| 3037 | RANLIB=$ac_ct_RANLIB |
| 3038 | else |
| 3039 | RANLIB="$ac_cv_prog_RANLIB" |
| 3040 | fi |
| 3041 | |
| 3042 | |
| 3043 | |
| 3044 | |
| 3045 | |
| 3046 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3047 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3048 | cat >conftest.$ac_ext <<_ACEOF |
| 3049 | #line $LINENO "configure" |
| 3050 | #include "confdefs.h" |
| 3051 | #ifdef _AIX |
| 3052 | yes |
| 3053 | #endif |
| 3054 | |
| 3055 | _ACEOF |
| 3056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3057 | egrep "yes" >/dev/null 2>&1; then |
| 3058 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3059 | echo "${ECHO_T}yes" >&6 |
| 3060 | cat >>confdefs.h <<\_ACEOF |
| 3061 | #define _ALL_SOURCE 1 |
| 3062 | _ACEOF |
| 3063 | |
| 3064 | else |
| 3065 | echo "$as_me:$LINENO: result: no" >&5 |
| 3066 | echo "${ECHO_T}no" >&6 |
| 3067 | fi |
| 3068 | rm -f conftest* |
| 3069 | |
| 3070 | |
| 3071 | |
| 3072 | # Check whether --enable-vtysh or --disable-vtysh was given. |
| 3073 | if test "${enable_vtysh+set}" = set; then |
| 3074 | enableval="$enable_vtysh" |
| 3075 | |
| 3076 | fi; |
| 3077 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 3078 | if test "${enable_ipv6+set}" = set; then |
| 3079 | enableval="$enable_ipv6" |
| 3080 | |
| 3081 | fi; |
| 3082 | # Check whether --enable-zebra or --disable-zebra was given. |
| 3083 | if test "${enable_zebra+set}" = set; then |
| 3084 | enableval="$enable_zebra" |
| 3085 | |
| 3086 | fi; |
| 3087 | # Check whether --enable-bgpd or --disable-bgpd was given. |
| 3088 | if test "${enable_bgpd+set}" = set; then |
| 3089 | enableval="$enable_bgpd" |
| 3090 | |
| 3091 | fi; |
| 3092 | # Check whether --enable-ripd or --disable-ripd was given. |
| 3093 | if test "${enable_ripd+set}" = set; then |
| 3094 | enableval="$enable_ripd" |
| 3095 | |
| 3096 | fi; |
| 3097 | # Check whether --enable-ripngd or --disable-ripngd was given. |
| 3098 | if test "${enable_ripngd+set}" = set; then |
| 3099 | enableval="$enable_ripngd" |
| 3100 | |
| 3101 | fi; |
| 3102 | # Check whether --enable-ospfd or --disable-ospfd was given. |
| 3103 | if test "${enable_ospfd+set}" = set; then |
| 3104 | enableval="$enable_ospfd" |
| 3105 | |
| 3106 | fi; |
| 3107 | # Check whether --enable-ospf6d or --disable-ospf6d was given. |
| 3108 | if test "${enable_ospf6d+set}" = set; then |
| 3109 | enableval="$enable_ospf6d" |
| 3110 | |
| 3111 | fi; |
| 3112 | # Check whether --enable-isisd or --disable-isisd was given. |
| 3113 | if test "${enable_isisd+set}" = set; then |
| 3114 | enableval="$enable_isisd" |
| 3115 | |
| 3116 | fi; |
| 3117 | # Check whether --enable-bgp-announce or --disable-bgp-announce was given. |
| 3118 | if test "${enable_bgp_announce+set}" = set; then |
| 3119 | enableval="$enable_bgp_announce" |
| 3120 | |
| 3121 | fi; |
| 3122 | # Check whether --enable-netlink or --disable-netlink was given. |
| 3123 | if test "${enable_netlink+set}" = set; then |
| 3124 | enableval="$enable_netlink" |
| 3125 | |
| 3126 | fi; |
| 3127 | # Check whether --enable-broken-aliases or --disable-broken-aliases was given. |
| 3128 | if test "${enable_broken_aliases+set}" = set; then |
| 3129 | enableval="$enable_broken_aliases" |
| 3130 | |
| 3131 | fi; |
| 3132 | # Check whether --enable-snmp or --disable-snmp was given. |
| 3133 | if test "${enable_snmp+set}" = set; then |
| 3134 | enableval="$enable_snmp" |
| 3135 | |
| 3136 | fi; |
| 3137 | |
| 3138 | # Check whether --with-libpam or --without-libpam was given. |
| 3139 | if test "${with_libpam+set}" = set; then |
| 3140 | withval="$with_libpam" |
| 3141 | |
| 3142 | fi; |
| 3143 | # Check whether --enable-tcpsock or --disable-tcpsock was given. |
| 3144 | if test "${enable_tcpsock+set}" = set; then |
| 3145 | enableval="$enable_tcpsock" |
| 3146 | |
| 3147 | fi; |
| 3148 | # Check whether --enable-nssa or --disable-nssa was given. |
| 3149 | if test "${enable_nssa+set}" = set; then |
| 3150 | enableval="$enable_nssa" |
| 3151 | |
| 3152 | fi; |
| 3153 | # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given. |
| 3154 | if test "${enable_opaque_lsa+set}" = set; then |
| 3155 | enableval="$enable_opaque_lsa" |
| 3156 | |
| 3157 | fi; |
| 3158 | # Check whether --enable-ospf-te or --disable-ospf-te was given. |
| 3159 | if test "${enable_ospf_te+set}" = set; then |
| 3160 | enableval="$enable_ospf_te" |
| 3161 | |
| 3162 | fi; |
| 3163 | # Check whether --enable-multipath or --disable-multipath was given. |
| 3164 | if test "${enable_multipath+set}" = set; then |
| 3165 | enableval="$enable_multipath" |
| 3166 | |
| 3167 | fi; |
| 3168 | |
| 3169 | |
| 3170 | if test "${enable_broken_aliases}" = "yes"; then |
| 3171 | if test "${enable_netlink}" = "yes" |
| 3172 | then |
| 3173 | echo "Sorry, you can't use netlink with broken aliases" |
| 3174 | exit 1 |
| 3175 | fi |
| 3176 | cat >>confdefs.h <<\_ACEOF |
| 3177 | #define HAVE_BROKEN_ALIASES 1 |
| 3178 | _ACEOF |
| 3179 | |
| 3180 | enable_netlink=no |
| 3181 | fi |
| 3182 | |
| 3183 | if test "${enable_tcp_zebra}" = "yes"; then |
| 3184 | cat >>confdefs.h <<\_ACEOF |
| 3185 | #define HAVE_TCP_ZEBRA 1 |
| 3186 | _ACEOF |
| 3187 | |
| 3188 | fi |
| 3189 | |
| 3190 | if test "${enable_nssa}" = "yes"; then |
| 3191 | cat >>confdefs.h <<\_ACEOF |
| 3192 | #define HAVE_NSSA 1 |
| 3193 | _ACEOF |
| 3194 | |
| 3195 | fi |
| 3196 | |
| 3197 | if test "${enable_opaque_lsa}" = "yes"; then |
| 3198 | cat >>confdefs.h <<\_ACEOF |
| 3199 | #define HAVE_OPAQUE_LSA 1 |
| 3200 | _ACEOF |
| 3201 | |
| 3202 | fi |
| 3203 | |
| 3204 | if test "${enable_ospf_te}" = "yes"; then |
| 3205 | cat >>confdefs.h <<\_ACEOF |
| 3206 | #define HAVE_OPAQUE_LSA 1 |
| 3207 | _ACEOF |
| 3208 | |
| 3209 | cat >>confdefs.h <<\_ACEOF |
| 3210 | #define HAVE_OSPF_TE 1 |
| 3211 | _ACEOF |
| 3212 | |
| 3213 | fi |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | MULTIPATH_NUM=1 |
| 3218 | |
| 3219 | case "${enable_multipath}" in |
| 3220 | [0-9]|[1-9][0-9]) |
| 3221 | MULTIPATH_NUM="${enable_multipath}" |
| 3222 | ;; |
| 3223 | "") |
| 3224 | ;; |
| 3225 | *) |
| 3226 | echo "Please specify digit to --enable-multipath ARG." |
| 3227 | exit 1 |
| 3228 | ;; |
| 3229 | esac |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | |
| 3234 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3235 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3236 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3238 | else |
| 3239 | cat >conftest.$ac_ext <<_ACEOF |
| 3240 | #line $LINENO "configure" |
| 3241 | #include "confdefs.h" |
| 3242 | #include <stdlib.h> |
| 3243 | #include <stdarg.h> |
| 3244 | #include <string.h> |
| 3245 | #include <float.h> |
| 3246 | |
| 3247 | _ACEOF |
| 3248 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3249 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3250 | ac_status=$? |
| 3251 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3252 | rm -f conftest.er1 |
| 3253 | cat conftest.err >&5 |
| 3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); } >/dev/null; then |
| 3256 | if test -s conftest.err; then |
| 3257 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3258 | else |
| 3259 | ac_cpp_err= |
| 3260 | fi |
| 3261 | else |
| 3262 | ac_cpp_err=yes |
| 3263 | fi |
| 3264 | if test -z "$ac_cpp_err"; then |
| 3265 | ac_cv_header_stdc=yes |
| 3266 | else |
| 3267 | echo "$as_me: failed program was:" >&5 |
| 3268 | cat conftest.$ac_ext >&5 |
| 3269 | ac_cv_header_stdc=no |
| 3270 | fi |
| 3271 | rm -f conftest.err conftest.$ac_ext |
| 3272 | |
| 3273 | if test $ac_cv_header_stdc = yes; then |
| 3274 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3275 | cat >conftest.$ac_ext <<_ACEOF |
| 3276 | #line $LINENO "configure" |
| 3277 | #include "confdefs.h" |
| 3278 | #include <string.h> |
| 3279 | |
| 3280 | _ACEOF |
| 3281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3282 | egrep "memchr" >/dev/null 2>&1; then |
| 3283 | : |
| 3284 | else |
| 3285 | ac_cv_header_stdc=no |
| 3286 | fi |
| 3287 | rm -f conftest* |
| 3288 | |
| 3289 | fi |
| 3290 | |
| 3291 | if test $ac_cv_header_stdc = yes; then |
| 3292 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3293 | cat >conftest.$ac_ext <<_ACEOF |
| 3294 | #line $LINENO "configure" |
| 3295 | #include "confdefs.h" |
| 3296 | #include <stdlib.h> |
| 3297 | |
| 3298 | _ACEOF |
| 3299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3300 | egrep "free" >/dev/null 2>&1; then |
| 3301 | : |
| 3302 | else |
| 3303 | ac_cv_header_stdc=no |
| 3304 | fi |
| 3305 | rm -f conftest* |
| 3306 | |
| 3307 | fi |
| 3308 | |
| 3309 | if test $ac_cv_header_stdc = yes; then |
| 3310 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3311 | if test "$cross_compiling" = yes; then |
| 3312 | : |
| 3313 | else |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | #line $LINENO "configure" |
| 3316 | #include "confdefs.h" |
| 3317 | #include <ctype.h> |
| 3318 | #if ((' ' & 0x0FF) == 0x020) |
| 3319 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3320 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3321 | #else |
| 3322 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3323 | || ('j' <= (c) && (c) <= 'r') \ |
| 3324 | || ('s' <= (c) && (c) <= 'z')) |
| 3325 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3326 | #endif |
| 3327 | |
| 3328 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3329 | int |
| 3330 | main () |
| 3331 | { |
| 3332 | int i; |
| 3333 | for (i = 0; i < 256; i++) |
| 3334 | if (XOR (islower (i), ISLOWER (i)) |
| 3335 | || toupper (i) != TOUPPER (i)) |
| 3336 | exit(2); |
| 3337 | exit (0); |
| 3338 | } |
| 3339 | _ACEOF |
| 3340 | rm -f conftest$ac_exeext |
| 3341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3342 | (eval $ac_link) 2>&5 |
| 3343 | ac_status=$? |
| 3344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3347 | (eval $ac_try) 2>&5 |
| 3348 | ac_status=$? |
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3350 | (exit $ac_status); }; }; then |
| 3351 | : |
| 3352 | else |
| 3353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3354 | echo "$as_me: failed program was:" >&5 |
| 3355 | cat conftest.$ac_ext >&5 |
| 3356 | ( exit $ac_status ) |
| 3357 | ac_cv_header_stdc=no |
| 3358 | fi |
| 3359 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3360 | fi |
| 3361 | fi |
| 3362 | fi |
| 3363 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3364 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3365 | if test $ac_cv_header_stdc = yes; then |
| 3366 | |
| 3367 | cat >>confdefs.h <<\_ACEOF |
| 3368 | #define STDC_HEADERS 1 |
| 3369 | _ACEOF |
| 3370 | |
| 3371 | fi |
| 3372 | |
| 3373 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3374 | |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | |
| 3379 | |
| 3380 | |
| 3381 | |
| 3382 | |
| 3383 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3384 | inttypes.h stdint.h unistd.h |
| 3385 | do |
| 3386 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3387 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3391 | else |
| 3392 | cat >conftest.$ac_ext <<_ACEOF |
| 3393 | #line $LINENO "configure" |
| 3394 | #include "confdefs.h" |
| 3395 | $ac_includes_default |
| 3396 | |
| 3397 | #include <$ac_header> |
| 3398 | _ACEOF |
| 3399 | rm -f conftest.$ac_objext |
| 3400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3401 | (eval $ac_compile) 2>&5 |
| 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); } && |
| 3405 | { ac_try='test -s conftest.$ac_objext' |
| 3406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3407 | (eval $ac_try) 2>&5 |
| 3408 | ac_status=$? |
| 3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3410 | (exit $ac_status); }; }; then |
| 3411 | eval "$as_ac_Header=yes" |
| 3412 | else |
| 3413 | echo "$as_me: failed program was:" >&5 |
| 3414 | cat conftest.$ac_ext >&5 |
| 3415 | eval "$as_ac_Header=no" |
| 3416 | fi |
| 3417 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3418 | fi |
| 3419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3422 | cat >>confdefs.h <<_ACEOF |
| 3423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3424 | _ACEOF |
| 3425 | |
| 3426 | fi |
| 3427 | |
| 3428 | done |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
| 3433 | |
| 3434 | |
| 3435 | |
| 3436 | |
| 3437 | |
| 3438 | |
| 3439 | |
| 3440 | |
| 3441 | |
| 3442 | |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | |
| 3451 | |
| 3452 | |
| 3453 | |
| 3454 | |
| 3455 | |
| 3456 | for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h |
| 3457 | do |
| 3458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3464 | fi |
| 3465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3467 | else |
| 3468 | # Is the header compilable? |
| 3469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3471 | cat >conftest.$ac_ext <<_ACEOF |
| 3472 | #line $LINENO "configure" |
| 3473 | #include "confdefs.h" |
| 3474 | $ac_includes_default |
| 3475 | #include <$ac_header> |
| 3476 | _ACEOF |
| 3477 | rm -f conftest.$ac_objext |
| 3478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3479 | (eval $ac_compile) 2>&5 |
| 3480 | ac_status=$? |
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); } && |
| 3483 | { ac_try='test -s conftest.$ac_objext' |
| 3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3485 | (eval $ac_try) 2>&5 |
| 3486 | ac_status=$? |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3488 | (exit $ac_status); }; }; then |
| 3489 | ac_header_compiler=yes |
| 3490 | else |
| 3491 | echo "$as_me: failed program was:" >&5 |
| 3492 | cat conftest.$ac_ext >&5 |
| 3493 | ac_header_compiler=no |
| 3494 | fi |
| 3495 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3497 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3498 | |
| 3499 | # Is the header present? |
| 3500 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3501 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3502 | cat >conftest.$ac_ext <<_ACEOF |
| 3503 | #line $LINENO "configure" |
| 3504 | #include "confdefs.h" |
| 3505 | #include <$ac_header> |
| 3506 | _ACEOF |
| 3507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3509 | ac_status=$? |
| 3510 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3511 | rm -f conftest.er1 |
| 3512 | cat conftest.err >&5 |
| 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3514 | (exit $ac_status); } >/dev/null; then |
| 3515 | if test -s conftest.err; then |
| 3516 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3517 | else |
| 3518 | ac_cpp_err= |
| 3519 | fi |
| 3520 | else |
| 3521 | ac_cpp_err=yes |
| 3522 | fi |
| 3523 | if test -z "$ac_cpp_err"; then |
| 3524 | ac_header_preproc=yes |
| 3525 | else |
| 3526 | echo "$as_me: failed program was:" >&5 |
| 3527 | cat conftest.$ac_ext >&5 |
| 3528 | ac_header_preproc=no |
| 3529 | fi |
| 3530 | rm -f conftest.err conftest.$ac_ext |
| 3531 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3532 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3533 | |
| 3534 | # So? What about this header? |
| 3535 | case $ac_header_compiler:$ac_header_preproc in |
| 3536 | yes:no ) |
| 3537 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3538 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3541 | no:yes ) |
| 3542 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3543 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3544 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3545 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3548 | esac |
| 3549 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3553 | else |
| 3554 | eval "$as_ac_Header=$ac_header_preproc" |
| 3555 | fi |
| 3556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3558 | |
| 3559 | fi |
| 3560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3561 | cat >>confdefs.h <<_ACEOF |
| 3562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3563 | _ACEOF |
| 3564 | |
| 3565 | fi |
| 3566 | |
| 3567 | done |
| 3568 | |
| 3569 | |
| 3570 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3571 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3572 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3574 | else |
| 3575 | ac_cv_prog_cc_stdc=no |
| 3576 | ac_save_CC=$CC |
| 3577 | cat >conftest.$ac_ext <<_ACEOF |
| 3578 | #line $LINENO "configure" |
| 3579 | #include "confdefs.h" |
| 3580 | #include <stdarg.h> |
| 3581 | #include <stdio.h> |
| 3582 | #include <sys/types.h> |
| 3583 | #include <sys/stat.h> |
| 3584 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3585 | struct buf { int x; }; |
| 3586 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3587 | static char *e (p, i) |
| 3588 | char **p; |
| 3589 | int i; |
| 3590 | { |
| 3591 | return p[i]; |
| 3592 | } |
| 3593 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3594 | { |
| 3595 | char *s; |
| 3596 | va_list v; |
| 3597 | va_start (v,p); |
| 3598 | s = g (p, va_arg (v,int)); |
| 3599 | va_end (v); |
| 3600 | return s; |
| 3601 | } |
| 3602 | int test (int i, double x); |
| 3603 | struct s1 {int (*f) (int a);}; |
| 3604 | struct s2 {int (*f) (double a);}; |
| 3605 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3606 | int argc; |
| 3607 | char **argv; |
| 3608 | #ifdef F77_DUMMY_MAIN |
| 3609 | # ifdef __cplusplus |
| 3610 | extern "C" |
| 3611 | # endif |
| 3612 | int F77_DUMMY_MAIN() { return 1; } |
| 3613 | #endif |
| 3614 | int |
| 3615 | main () |
| 3616 | { |
| 3617 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3618 | ; |
| 3619 | return 0; |
| 3620 | } |
| 3621 | _ACEOF |
| 3622 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3623 | # breaks some systems' header files. |
| 3624 | # AIX -qlanglvl=ansi |
| 3625 | # Ultrix and OSF/1 -std1 |
| 3626 | # HP-UX 10.20 and later -Ae |
| 3627 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3628 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3629 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3630 | do |
| 3631 | CC="$ac_save_CC $ac_arg" |
| 3632 | rm -f conftest.$ac_objext |
| 3633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3634 | (eval $ac_compile) 2>&5 |
| 3635 | ac_status=$? |
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3637 | (exit $ac_status); } && |
| 3638 | { ac_try='test -s conftest.$ac_objext' |
| 3639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3640 | (eval $ac_try) 2>&5 |
| 3641 | ac_status=$? |
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3643 | (exit $ac_status); }; }; then |
| 3644 | ac_cv_prog_cc_stdc=$ac_arg |
| 3645 | break |
| 3646 | else |
| 3647 | echo "$as_me: failed program was:" >&5 |
| 3648 | cat conftest.$ac_ext >&5 |
| 3649 | fi |
| 3650 | rm -f conftest.$ac_objext |
| 3651 | done |
| 3652 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3653 | CC=$ac_save_CC |
| 3654 | |
| 3655 | fi |
| 3656 | |
| 3657 | case "x$ac_cv_prog_cc_stdc" in |
| 3658 | x|xno) |
| 3659 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3660 | echo "${ECHO_T}none needed" >&6 ;; |
| 3661 | *) |
| 3662 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3663 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3664 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3665 | esac |
| 3666 | |
| 3667 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 3668 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3669 | if test "${ac_cv_c_const+set}" = set; then |
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3671 | else |
| 3672 | cat >conftest.$ac_ext <<_ACEOF |
| 3673 | #line $LINENO "configure" |
| 3674 | #include "confdefs.h" |
| 3675 | |
| 3676 | #ifdef F77_DUMMY_MAIN |
| 3677 | # ifdef __cplusplus |
| 3678 | extern "C" |
| 3679 | # endif |
| 3680 | int F77_DUMMY_MAIN() { return 1; } |
| 3681 | #endif |
| 3682 | int |
| 3683 | main () |
| 3684 | { |
| 3685 | /* FIXME: Include the comments suggested by Paul. */ |
| 3686 | #ifndef __cplusplus |
| 3687 | /* Ultrix mips cc rejects this. */ |
| 3688 | typedef int charset[2]; |
| 3689 | const charset x; |
| 3690 | /* SunOS 4.1.1 cc rejects this. */ |
| 3691 | char const *const *ccp; |
| 3692 | char **p; |
| 3693 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3694 | struct point {int x, y;}; |
| 3695 | static struct point const zero = {0,0}; |
| 3696 | /* AIX XL C 1.02.0.0 rejects this. |
| 3697 | It does not let you subtract one const X* pointer from another in |
| 3698 | an arm of an if-expression whose if-part is not a constant |
| 3699 | expression */ |
| 3700 | const char *g = "string"; |
| 3701 | ccp = &g + (g ? g-g : 0); |
| 3702 | /* HPUX 7.0 cc rejects these. */ |
| 3703 | ++ccp; |
| 3704 | p = (char**) ccp; |
| 3705 | ccp = (char const *const *) p; |
| 3706 | { /* SCO 3.2v4 cc rejects this. */ |
| 3707 | char *t; |
| 3708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3709 | |
| 3710 | *t++ = 0; |
| 3711 | } |
| 3712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3713 | int x[] = {25, 17}; |
| 3714 | const int *foo = &x[0]; |
| 3715 | ++foo; |
| 3716 | } |
| 3717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3718 | typedef const int *iptr; |
| 3719 | iptr p = 0; |
| 3720 | ++p; |
| 3721 | } |
| 3722 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3724 | struct s { int j; const int *ap[3]; }; |
| 3725 | struct s *b; b->j = 5; |
| 3726 | } |
| 3727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3728 | const int foo = 10; |
| 3729 | } |
| 3730 | #endif |
| 3731 | |
| 3732 | ; |
| 3733 | return 0; |
| 3734 | } |
| 3735 | _ACEOF |
| 3736 | rm -f conftest.$ac_objext |
| 3737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3738 | (eval $ac_compile) 2>&5 |
| 3739 | ac_status=$? |
| 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3741 | (exit $ac_status); } && |
| 3742 | { ac_try='test -s conftest.$ac_objext' |
| 3743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3744 | (eval $ac_try) 2>&5 |
| 3745 | ac_status=$? |
| 3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3747 | (exit $ac_status); }; }; then |
| 3748 | ac_cv_c_const=yes |
| 3749 | else |
| 3750 | echo "$as_me: failed program was:" >&5 |
| 3751 | cat conftest.$ac_ext >&5 |
| 3752 | ac_cv_c_const=no |
| 3753 | fi |
| 3754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3755 | fi |
| 3756 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 3757 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3758 | if test $ac_cv_c_const = no; then |
| 3759 | |
| 3760 | cat >>confdefs.h <<\_ACEOF |
| 3761 | #define const |
| 3762 | _ACEOF |
| 3763 | |
| 3764 | fi |
| 3765 | |
| 3766 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 3767 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 3768 | if test "${ac_cv_type_signal+set}" = set; then |
| 3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3770 | else |
| 3771 | cat >conftest.$ac_ext <<_ACEOF |
| 3772 | #line $LINENO "configure" |
| 3773 | #include "confdefs.h" |
| 3774 | #include <sys/types.h> |
| 3775 | #include <signal.h> |
| 3776 | #ifdef signal |
| 3777 | # undef signal |
| 3778 | #endif |
| 3779 | #ifdef __cplusplus |
| 3780 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 3781 | #else |
| 3782 | void (*signal ()) (); |
| 3783 | #endif |
| 3784 | |
| 3785 | #ifdef F77_DUMMY_MAIN |
| 3786 | # ifdef __cplusplus |
| 3787 | extern "C" |
| 3788 | # endif |
| 3789 | int F77_DUMMY_MAIN() { return 1; } |
| 3790 | #endif |
| 3791 | int |
| 3792 | main () |
| 3793 | { |
| 3794 | int i; |
| 3795 | ; |
| 3796 | return 0; |
| 3797 | } |
| 3798 | _ACEOF |
| 3799 | rm -f conftest.$ac_objext |
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3801 | (eval $ac_compile) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); } && |
| 3805 | { ac_try='test -s conftest.$ac_objext' |
| 3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3807 | (eval $ac_try) 2>&5 |
| 3808 | ac_status=$? |
| 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3810 | (exit $ac_status); }; }; then |
| 3811 | ac_cv_type_signal=void |
| 3812 | else |
| 3813 | echo "$as_me: failed program was:" >&5 |
| 3814 | cat conftest.$ac_ext >&5 |
| 3815 | ac_cv_type_signal=int |
| 3816 | fi |
| 3817 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3818 | fi |
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 3820 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 3821 | |
| 3822 | cat >>confdefs.h <<_ACEOF |
| 3823 | #define RETSIGTYPE $ac_cv_type_signal |
| 3824 | _ACEOF |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | case "$host" in |
| 3829 | *-sunos5.6* | *-solaris2.6*) |
| 3830 | opsys=sol2-6 |
| 3831 | cat >>confdefs.h <<\_ACEOF |
| 3832 | #define SUNOS_5 1 |
| 3833 | _ACEOF |
| 3834 | |
| 3835 | |
| 3836 | echo "$as_me:$LINENO: checking for main in -lxnet" >&5 |
| 3837 | echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6 |
| 3838 | if test "${ac_cv_lib_xnet_main+set}" = set; then |
| 3839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3840 | else |
| 3841 | ac_check_lib_save_LIBS=$LIBS |
| 3842 | LIBS="-lxnet $LIBS" |
| 3843 | cat >conftest.$ac_ext <<_ACEOF |
| 3844 | #line $LINENO "configure" |
| 3845 | #include "confdefs.h" |
| 3846 | |
| 3847 | |
| 3848 | #ifdef F77_DUMMY_MAIN |
| 3849 | # ifdef __cplusplus |
| 3850 | extern "C" |
| 3851 | # endif |
| 3852 | int F77_DUMMY_MAIN() { return 1; } |
| 3853 | #endif |
| 3854 | int |
| 3855 | main () |
| 3856 | { |
| 3857 | main (); |
| 3858 | ; |
| 3859 | return 0; |
| 3860 | } |
| 3861 | _ACEOF |
| 3862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3864 | (eval $ac_link) 2>&5 |
| 3865 | ac_status=$? |
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 | (exit $ac_status); } && |
| 3868 | { ac_try='test -s conftest$ac_exeext' |
| 3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3870 | (eval $ac_try) 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3873 | (exit $ac_status); }; }; then |
| 3874 | ac_cv_lib_xnet_main=yes |
| 3875 | else |
| 3876 | echo "$as_me: failed program was:" >&5 |
| 3877 | cat conftest.$ac_ext >&5 |
| 3878 | ac_cv_lib_xnet_main=no |
| 3879 | fi |
| 3880 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3881 | LIBS=$ac_check_lib_save_LIBS |
| 3882 | fi |
| 3883 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5 |
| 3884 | echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6 |
| 3885 | if test $ac_cv_lib_xnet_main = yes; then |
| 3886 | cat >>confdefs.h <<_ACEOF |
| 3887 | #define HAVE_LIBXNET 1 |
| 3888 | _ACEOF |
| 3889 | |
| 3890 | LIBS="-lxnet $LIBS" |
| 3891 | |
| 3892 | fi |
| 3893 | |
| 3894 | CURSES=-lcurses |
| 3895 | ;; |
| 3896 | *-sunos5* | *-solaris2*) |
| 3897 | cat >>confdefs.h <<\_ACEOF |
| 3898 | #define SUNOS_5 1 |
| 3899 | _ACEOF |
| 3900 | |
| 3901 | |
| 3902 | echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
| 3903 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
| 3904 | if test "${ac_cv_lib_socket_main+set}" = set; then |
| 3905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3906 | else |
| 3907 | ac_check_lib_save_LIBS=$LIBS |
| 3908 | LIBS="-lsocket $LIBS" |
| 3909 | cat >conftest.$ac_ext <<_ACEOF |
| 3910 | #line $LINENO "configure" |
| 3911 | #include "confdefs.h" |
| 3912 | |
| 3913 | |
| 3914 | #ifdef F77_DUMMY_MAIN |
| 3915 | # ifdef __cplusplus |
| 3916 | extern "C" |
| 3917 | # endif |
| 3918 | int F77_DUMMY_MAIN() { return 1; } |
| 3919 | #endif |
| 3920 | int |
| 3921 | main () |
| 3922 | { |
| 3923 | main (); |
| 3924 | ; |
| 3925 | return 0; |
| 3926 | } |
| 3927 | _ACEOF |
| 3928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3930 | (eval $ac_link) 2>&5 |
| 3931 | ac_status=$? |
| 3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3933 | (exit $ac_status); } && |
| 3934 | { ac_try='test -s conftest$ac_exeext' |
| 3935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3936 | (eval $ac_try) 2>&5 |
| 3937 | ac_status=$? |
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3939 | (exit $ac_status); }; }; then |
| 3940 | ac_cv_lib_socket_main=yes |
| 3941 | else |
| 3942 | echo "$as_me: failed program was:" >&5 |
| 3943 | cat conftest.$ac_ext >&5 |
| 3944 | ac_cv_lib_socket_main=no |
| 3945 | fi |
| 3946 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3947 | LIBS=$ac_check_lib_save_LIBS |
| 3948 | fi |
| 3949 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
| 3950 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
| 3951 | if test $ac_cv_lib_socket_main = yes; then |
| 3952 | cat >>confdefs.h <<_ACEOF |
| 3953 | #define HAVE_LIBSOCKET 1 |
| 3954 | _ACEOF |
| 3955 | |
| 3956 | LIBS="-lsocket $LIBS" |
| 3957 | |
| 3958 | fi |
| 3959 | |
| 3960 | |
| 3961 | echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
| 3962 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
| 3963 | if test "${ac_cv_lib_nsl_main+set}" = set; then |
| 3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3965 | else |
| 3966 | ac_check_lib_save_LIBS=$LIBS |
| 3967 | LIBS="-lnsl $LIBS" |
| 3968 | cat >conftest.$ac_ext <<_ACEOF |
| 3969 | #line $LINENO "configure" |
| 3970 | #include "confdefs.h" |
| 3971 | |
| 3972 | |
| 3973 | #ifdef F77_DUMMY_MAIN |
| 3974 | # ifdef __cplusplus |
| 3975 | extern "C" |
| 3976 | # endif |
| 3977 | int F77_DUMMY_MAIN() { return 1; } |
| 3978 | #endif |
| 3979 | int |
| 3980 | main () |
| 3981 | { |
| 3982 | main (); |
| 3983 | ; |
| 3984 | return 0; |
| 3985 | } |
| 3986 | _ACEOF |
| 3987 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3989 | (eval $ac_link) 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); } && |
| 3993 | { ac_try='test -s conftest$ac_exeext' |
| 3994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3995 | (eval $ac_try) 2>&5 |
| 3996 | ac_status=$? |
| 3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3998 | (exit $ac_status); }; }; then |
| 3999 | ac_cv_lib_nsl_main=yes |
| 4000 | else |
| 4001 | echo "$as_me: failed program was:" >&5 |
| 4002 | cat conftest.$ac_ext >&5 |
| 4003 | ac_cv_lib_nsl_main=no |
| 4004 | fi |
| 4005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4006 | LIBS=$ac_check_lib_save_LIBS |
| 4007 | fi |
| 4008 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 |
| 4009 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 |
| 4010 | if test $ac_cv_lib_nsl_main = yes; then |
| 4011 | cat >>confdefs.h <<_ACEOF |
| 4012 | #define HAVE_LIBNSL 1 |
| 4013 | _ACEOF |
| 4014 | |
| 4015 | LIBS="-lnsl $LIBS" |
| 4016 | |
| 4017 | fi |
| 4018 | |
| 4019 | CURSES=-lcurses |
| 4020 | ;; |
| 4021 | *-linux-*) |
| 4022 | opsys=gnu-linux |
| 4023 | cat >>confdefs.h <<\_ACEOF |
| 4024 | #define GNU_LINUX 1 |
| 4025 | _ACEOF |
| 4026 | |
| 4027 | ;; |
| 4028 | *-nec-sysv4*) |
| 4029 | |
| 4030 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4031 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4032 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4034 | else |
| 4035 | ac_check_lib_save_LIBS=$LIBS |
| 4036 | LIBS="-lnsl $LIBS" |
| 4037 | cat >conftest.$ac_ext <<_ACEOF |
| 4038 | #line $LINENO "configure" |
| 4039 | #include "confdefs.h" |
| 4040 | |
| 4041 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4042 | #ifdef __cplusplus |
| 4043 | extern "C" |
| 4044 | #endif |
| 4045 | /* We use char because int might match the return type of a gcc2 |
| 4046 | builtin and then its argument prototype would still apply. */ |
| 4047 | char gethostbyname (); |
| 4048 | #ifdef F77_DUMMY_MAIN |
| 4049 | # ifdef __cplusplus |
| 4050 | extern "C" |
| 4051 | # endif |
| 4052 | int F77_DUMMY_MAIN() { return 1; } |
| 4053 | #endif |
| 4054 | int |
| 4055 | main () |
| 4056 | { |
| 4057 | gethostbyname (); |
| 4058 | ; |
| 4059 | return 0; |
| 4060 | } |
| 4061 | _ACEOF |
| 4062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4064 | (eval $ac_link) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); } && |
| 4068 | { ac_try='test -s conftest$ac_exeext' |
| 4069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4070 | (eval $ac_try) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); }; }; then |
| 4074 | ac_cv_lib_nsl_gethostbyname=yes |
| 4075 | else |
| 4076 | echo "$as_me: failed program was:" >&5 |
| 4077 | cat conftest.$ac_ext >&5 |
| 4078 | ac_cv_lib_nsl_gethostbyname=no |
| 4079 | fi |
| 4080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4081 | LIBS=$ac_check_lib_save_LIBS |
| 4082 | fi |
| 4083 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4084 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4085 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4086 | cat >>confdefs.h <<_ACEOF |
| 4087 | #define HAVE_LIBNSL 1 |
| 4088 | _ACEOF |
| 4089 | |
| 4090 | LIBS="-lnsl $LIBS" |
| 4091 | |
| 4092 | fi |
| 4093 | |
| 4094 | |
| 4095 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4096 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4097 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4099 | else |
| 4100 | ac_check_lib_save_LIBS=$LIBS |
| 4101 | LIBS="-lsocket $LIBS" |
| 4102 | cat >conftest.$ac_ext <<_ACEOF |
| 4103 | #line $LINENO "configure" |
| 4104 | #include "confdefs.h" |
| 4105 | |
| 4106 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4107 | #ifdef __cplusplus |
| 4108 | extern "C" |
| 4109 | #endif |
| 4110 | /* We use char because int might match the return type of a gcc2 |
| 4111 | builtin and then its argument prototype would still apply. */ |
| 4112 | char socket (); |
| 4113 | #ifdef F77_DUMMY_MAIN |
| 4114 | # ifdef __cplusplus |
| 4115 | extern "C" |
| 4116 | # endif |
| 4117 | int F77_DUMMY_MAIN() { return 1; } |
| 4118 | #endif |
| 4119 | int |
| 4120 | main () |
| 4121 | { |
| 4122 | socket (); |
| 4123 | ; |
| 4124 | return 0; |
| 4125 | } |
| 4126 | _ACEOF |
| 4127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4129 | (eval $ac_link) 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); } && |
| 4133 | { ac_try='test -s conftest$ac_exeext' |
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4135 | (eval $ac_try) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); }; }; then |
| 4139 | ac_cv_lib_socket_socket=yes |
| 4140 | else |
| 4141 | echo "$as_me: failed program was:" >&5 |
| 4142 | cat conftest.$ac_ext >&5 |
| 4143 | ac_cv_lib_socket_socket=no |
| 4144 | fi |
| 4145 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4146 | LIBS=$ac_check_lib_save_LIBS |
| 4147 | fi |
| 4148 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4149 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4150 | if test $ac_cv_lib_socket_socket = yes; then |
| 4151 | cat >>confdefs.h <<_ACEOF |
| 4152 | #define HAVE_LIBSOCKET 1 |
| 4153 | _ACEOF |
| 4154 | |
| 4155 | LIBS="-lsocket $LIBS" |
| 4156 | |
| 4157 | fi |
| 4158 | |
| 4159 | ;; |
| 4160 | *-freebsd3.2) |
| 4161 | cat >>confdefs.h <<\_ACEOF |
| 4162 | #define FREEBSD_32 1 |
| 4163 | _ACEOF |
| 4164 | |
| 4165 | ;; |
| 4166 | *-openbsd*) |
| 4167 | opsys=openbsd |
| 4168 | cat >>confdefs.h <<\_ACEOF |
| 4169 | #define OPEN_BSD 1 |
| 4170 | _ACEOF |
| 4171 | |
| 4172 | ;; |
| 4173 | *-bsdi*) |
| 4174 | opsys=bsdi |
| 4175 | OTHER_METHOD="mtu_kvm.o" |
| 4176 | |
| 4177 | echo "$as_me:$LINENO: checking for main in -lkvm" >&5 |
| 4178 | echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 |
| 4179 | if test "${ac_cv_lib_kvm_main+set}" = set; then |
| 4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4181 | else |
| 4182 | ac_check_lib_save_LIBS=$LIBS |
| 4183 | LIBS="-lkvm $LIBS" |
| 4184 | cat >conftest.$ac_ext <<_ACEOF |
| 4185 | #line $LINENO "configure" |
| 4186 | #include "confdefs.h" |
| 4187 | |
| 4188 | |
| 4189 | #ifdef F77_DUMMY_MAIN |
| 4190 | # ifdef __cplusplus |
| 4191 | extern "C" |
| 4192 | # endif |
| 4193 | int F77_DUMMY_MAIN() { return 1; } |
| 4194 | #endif |
| 4195 | int |
| 4196 | main () |
| 4197 | { |
| 4198 | main (); |
| 4199 | ; |
| 4200 | return 0; |
| 4201 | } |
| 4202 | _ACEOF |
| 4203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4205 | (eval $ac_link) 2>&5 |
| 4206 | ac_status=$? |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); } && |
| 4209 | { ac_try='test -s conftest$ac_exeext' |
| 4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4211 | (eval $ac_try) 2>&5 |
| 4212 | ac_status=$? |
| 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4214 | (exit $ac_status); }; }; then |
| 4215 | ac_cv_lib_kvm_main=yes |
| 4216 | else |
| 4217 | echo "$as_me: failed program was:" >&5 |
| 4218 | cat conftest.$ac_ext >&5 |
| 4219 | ac_cv_lib_kvm_main=no |
| 4220 | fi |
| 4221 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4222 | LIBS=$ac_check_lib_save_LIBS |
| 4223 | fi |
| 4224 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5 |
| 4225 | echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 |
| 4226 | if test $ac_cv_lib_kvm_main = yes; then |
| 4227 | cat >>confdefs.h <<_ACEOF |
| 4228 | #define HAVE_LIBKVM 1 |
| 4229 | _ACEOF |
| 4230 | |
| 4231 | LIBS="-lkvm $LIBS" |
| 4232 | |
| 4233 | fi |
| 4234 | |
| 4235 | ;; |
| 4236 | esac |
| 4237 | |
| 4238 | case "${host_cpu}-${host_os}" in |
| 4239 | i?86-solaris*) |
| 4240 | cat >>confdefs.h <<\_ACEOF |
| 4241 | #define SOLARIS_X86 1 |
| 4242 | _ACEOF |
| 4243 | |
| 4244 | ;; |
| 4245 | esac |
| 4246 | |
| 4247 | case "${enable_vtysh}" in |
| 4248 | "yes") VTYSH="vtysh"; |
| 4249 | cat >>confdefs.h <<\_ACEOF |
| 4250 | #define VTYSH 1 |
| 4251 | _ACEOF |
| 4252 | |
| 4253 | |
| 4254 | echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5 |
| 4255 | echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6 |
| 4256 | if test "${ac_cv_lib_tinfo_tputs+set}" = set; then |
| 4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4258 | else |
| 4259 | ac_check_lib_save_LIBS=$LIBS |
| 4260 | LIBS="-ltinfo $LIBS" |
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
| 4262 | #line $LINENO "configure" |
| 4263 | #include "confdefs.h" |
| 4264 | |
| 4265 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4266 | #ifdef __cplusplus |
| 4267 | extern "C" |
| 4268 | #endif |
| 4269 | /* We use char because int might match the return type of a gcc2 |
| 4270 | builtin and then its argument prototype would still apply. */ |
| 4271 | char tputs (); |
| 4272 | #ifdef F77_DUMMY_MAIN |
| 4273 | # ifdef __cplusplus |
| 4274 | extern "C" |
| 4275 | # endif |
| 4276 | int F77_DUMMY_MAIN() { return 1; } |
| 4277 | #endif |
| 4278 | int |
| 4279 | main () |
| 4280 | { |
| 4281 | tputs (); |
| 4282 | ; |
| 4283 | return 0; |
| 4284 | } |
| 4285 | _ACEOF |
| 4286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4288 | (eval $ac_link) 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); } && |
| 4292 | { ac_try='test -s conftest$ac_exeext' |
| 4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4294 | (eval $ac_try) 2>&5 |
| 4295 | ac_status=$? |
| 4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4297 | (exit $ac_status); }; }; then |
| 4298 | ac_cv_lib_tinfo_tputs=yes |
| 4299 | else |
| 4300 | echo "$as_me: failed program was:" >&5 |
| 4301 | cat conftest.$ac_ext >&5 |
| 4302 | ac_cv_lib_tinfo_tputs=no |
| 4303 | fi |
| 4304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4305 | LIBS=$ac_check_lib_save_LIBS |
| 4306 | fi |
| 4307 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5 |
| 4308 | echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6 |
| 4309 | if test $ac_cv_lib_tinfo_tputs = yes; then |
| 4310 | cat >>confdefs.h <<_ACEOF |
| 4311 | #define HAVE_LIBTINFO 1 |
| 4312 | _ACEOF |
| 4313 | |
| 4314 | LIBS="-ltinfo $LIBS" |
| 4315 | |
| 4316 | else |
| 4317 | |
| 4318 | echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5 |
| 4319 | echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6 |
| 4320 | if test "${ac_cv_lib_ncurses_tputs+set}" = set; then |
| 4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4322 | else |
| 4323 | ac_check_lib_save_LIBS=$LIBS |
| 4324 | LIBS="-lncurses $LIBS" |
| 4325 | cat >conftest.$ac_ext <<_ACEOF |
| 4326 | #line $LINENO "configure" |
| 4327 | #include "confdefs.h" |
| 4328 | |
| 4329 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4330 | #ifdef __cplusplus |
| 4331 | extern "C" |
| 4332 | #endif |
| 4333 | /* We use char because int might match the return type of a gcc2 |
| 4334 | builtin and then its argument prototype would still apply. */ |
| 4335 | char tputs (); |
| 4336 | #ifdef F77_DUMMY_MAIN |
| 4337 | # ifdef __cplusplus |
| 4338 | extern "C" |
| 4339 | # endif |
| 4340 | int F77_DUMMY_MAIN() { return 1; } |
| 4341 | #endif |
| 4342 | int |
| 4343 | main () |
| 4344 | { |
| 4345 | tputs (); |
| 4346 | ; |
| 4347 | return 0; |
| 4348 | } |
| 4349 | _ACEOF |
| 4350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4352 | (eval $ac_link) 2>&5 |
| 4353 | ac_status=$? |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); } && |
| 4356 | { ac_try='test -s conftest$ac_exeext' |
| 4357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4358 | (eval $ac_try) 2>&5 |
| 4359 | ac_status=$? |
| 4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4361 | (exit $ac_status); }; }; then |
| 4362 | ac_cv_lib_ncurses_tputs=yes |
| 4363 | else |
| 4364 | echo "$as_me: failed program was:" >&5 |
| 4365 | cat conftest.$ac_ext >&5 |
| 4366 | ac_cv_lib_ncurses_tputs=no |
| 4367 | fi |
| 4368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4369 | LIBS=$ac_check_lib_save_LIBS |
| 4370 | fi |
| 4371 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5 |
| 4372 | echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6 |
| 4373 | if test $ac_cv_lib_ncurses_tputs = yes; then |
| 4374 | cat >>confdefs.h <<_ACEOF |
| 4375 | #define HAVE_LIBNCURSES 1 |
| 4376 | _ACEOF |
| 4377 | |
| 4378 | LIBS="-lncurses $LIBS" |
| 4379 | |
| 4380 | fi |
| 4381 | |
| 4382 | fi |
| 4383 | |
| 4384 | |
| 4385 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
| 4386 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
| 4387 | if test "${ac_cv_lib_readline_main+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4389 | else |
| 4390 | ac_check_lib_save_LIBS=$LIBS |
| 4391 | LIBS="-lreadline $LIBS" |
| 4392 | cat >conftest.$ac_ext <<_ACEOF |
| 4393 | #line $LINENO "configure" |
| 4394 | #include "confdefs.h" |
| 4395 | |
| 4396 | |
| 4397 | #ifdef F77_DUMMY_MAIN |
| 4398 | # ifdef __cplusplus |
| 4399 | extern "C" |
| 4400 | # endif |
| 4401 | int F77_DUMMY_MAIN() { return 1; } |
| 4402 | #endif |
| 4403 | int |
| 4404 | main () |
| 4405 | { |
| 4406 | main (); |
| 4407 | ; |
| 4408 | return 0; |
| 4409 | } |
| 4410 | _ACEOF |
| 4411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4413 | (eval $ac_link) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); } && |
| 4417 | { ac_try='test -s conftest$ac_exeext' |
| 4418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4419 | (eval $ac_try) 2>&5 |
| 4420 | ac_status=$? |
| 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4422 | (exit $ac_status); }; }; then |
| 4423 | ac_cv_lib_readline_main=yes |
| 4424 | else |
| 4425 | echo "$as_me: failed program was:" >&5 |
| 4426 | cat conftest.$ac_ext >&5 |
| 4427 | ac_cv_lib_readline_main=no |
| 4428 | fi |
| 4429 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4430 | LIBS=$ac_check_lib_save_LIBS |
| 4431 | fi |
| 4432 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 |
| 4433 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
| 4434 | if test $ac_cv_lib_readline_main = yes; then |
| 4435 | cat >>confdefs.h <<_ACEOF |
| 4436 | #define HAVE_LIBREADLINE 1 |
| 4437 | _ACEOF |
| 4438 | |
| 4439 | LIBS="-lreadline $LIBS" |
| 4440 | |
| 4441 | fi |
| 4442 | |
| 4443 | if test $ac_cv_lib_readline_main = no; then |
| 4444 | { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5 |
| 4445 | echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;} |
| 4446 | { (exit 1); exit 1; }; } |
| 4447 | fi |
| 4448 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4449 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4450 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4451 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4453 | fi |
| 4454 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4455 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4456 | else |
| 4457 | # Is the header compilable? |
| 4458 | echo "$as_me:$LINENO: checking readline/history.h usability" >&5 |
| 4459 | echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6 |
| 4460 | cat >conftest.$ac_ext <<_ACEOF |
| 4461 | #line $LINENO "configure" |
| 4462 | #include "confdefs.h" |
| 4463 | $ac_includes_default |
| 4464 | #include <readline/history.h> |
| 4465 | _ACEOF |
| 4466 | rm -f conftest.$ac_objext |
| 4467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4468 | (eval $ac_compile) 2>&5 |
| 4469 | ac_status=$? |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); } && |
| 4472 | { ac_try='test -s conftest.$ac_objext' |
| 4473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4474 | (eval $ac_try) 2>&5 |
| 4475 | ac_status=$? |
| 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4477 | (exit $ac_status); }; }; then |
| 4478 | ac_header_compiler=yes |
| 4479 | else |
| 4480 | echo "$as_me: failed program was:" >&5 |
| 4481 | cat conftest.$ac_ext >&5 |
| 4482 | ac_header_compiler=no |
| 4483 | fi |
| 4484 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4486 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4487 | |
| 4488 | # Is the header present? |
| 4489 | echo "$as_me:$LINENO: checking readline/history.h presence" >&5 |
| 4490 | echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6 |
| 4491 | cat >conftest.$ac_ext <<_ACEOF |
| 4492 | #line $LINENO "configure" |
| 4493 | #include "confdefs.h" |
| 4494 | #include <readline/history.h> |
| 4495 | _ACEOF |
| 4496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4498 | ac_status=$? |
| 4499 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4500 | rm -f conftest.er1 |
| 4501 | cat conftest.err >&5 |
| 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4503 | (exit $ac_status); } >/dev/null; then |
| 4504 | if test -s conftest.err; then |
| 4505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4506 | else |
| 4507 | ac_cpp_err= |
| 4508 | fi |
| 4509 | else |
| 4510 | ac_cpp_err=yes |
| 4511 | fi |
| 4512 | if test -z "$ac_cpp_err"; then |
| 4513 | ac_header_preproc=yes |
| 4514 | else |
| 4515 | echo "$as_me: failed program was:" >&5 |
| 4516 | cat conftest.$ac_ext >&5 |
| 4517 | ac_header_preproc=no |
| 4518 | fi |
| 4519 | rm -f conftest.err conftest.$ac_ext |
| 4520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4521 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4522 | |
| 4523 | # So? What about this header? |
| 4524 | case $ac_header_compiler:$ac_header_preproc in |
| 4525 | yes:no ) |
| 4526 | { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4527 | echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4528 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4529 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4530 | no:yes ) |
| 4531 | { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 |
| 4532 | echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} |
| 4533 | { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 |
| 4534 | echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} |
| 4535 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4536 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4537 | esac |
| 4538 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4539 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4540 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4542 | else |
| 4543 | ac_cv_header_readline_history_h=$ac_header_preproc |
| 4544 | fi |
| 4545 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4546 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4547 | |
| 4548 | fi |
| 4549 | |
| 4550 | |
| 4551 | if test $ac_cv_header_readline_history_h = no;then |
| 4552 | { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5 |
| 4553 | echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;} |
| 4554 | { (exit 1); exit 1; }; } |
| 4555 | fi |
| 4556 | ;; |
| 4557 | "no" ) VTYSH="";; |
| 4558 | * ) ;; |
| 4559 | esac |
| 4560 | |
| 4561 | if test "$with_libpam" = "yes"; then |
| 4562 | echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
| 4563 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 |
| 4564 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
| 4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4566 | else |
| 4567 | ac_check_lib_save_LIBS=$LIBS |
| 4568 | LIBS="-lpam $LIBS" |
| 4569 | cat >conftest.$ac_ext <<_ACEOF |
| 4570 | #line $LINENO "configure" |
| 4571 | #include "confdefs.h" |
| 4572 | |
| 4573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4574 | #ifdef __cplusplus |
| 4575 | extern "C" |
| 4576 | #endif |
| 4577 | /* We use char because int might match the return type of a gcc2 |
| 4578 | builtin and then its argument prototype would still apply. */ |
| 4579 | char pam_start (); |
| 4580 | #ifdef F77_DUMMY_MAIN |
| 4581 | # ifdef __cplusplus |
| 4582 | extern "C" |
| 4583 | # endif |
| 4584 | int F77_DUMMY_MAIN() { return 1; } |
| 4585 | #endif |
| 4586 | int |
| 4587 | main () |
| 4588 | { |
| 4589 | pam_start (); |
| 4590 | ; |
| 4591 | return 0; |
| 4592 | } |
| 4593 | _ACEOF |
| 4594 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4596 | (eval $ac_link) 2>&5 |
| 4597 | ac_status=$? |
| 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4599 | (exit $ac_status); } && |
| 4600 | { ac_try='test -s conftest$ac_exeext' |
| 4601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4602 | (eval $ac_try) 2>&5 |
| 4603 | ac_status=$? |
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4605 | (exit $ac_status); }; }; then |
| 4606 | ac_cv_lib_pam_pam_start=yes |
| 4607 | else |
| 4608 | echo "$as_me: failed program was:" >&5 |
| 4609 | cat conftest.$ac_ext >&5 |
| 4610 | ac_cv_lib_pam_pam_start=no |
| 4611 | fi |
| 4612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4613 | LIBS=$ac_check_lib_save_LIBS |
| 4614 | fi |
| 4615 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
| 4616 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 |
| 4617 | if test $ac_cv_lib_pam_pam_start = yes; then |
| 4618 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4619 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4620 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4622 | else |
| 4623 | ac_check_lib_save_LIBS=$LIBS |
| 4624 | LIBS="-lpam $LIBS" |
| 4625 | cat >conftest.$ac_ext <<_ACEOF |
| 4626 | #line $LINENO "configure" |
| 4627 | #include "confdefs.h" |
| 4628 | |
| 4629 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4630 | #ifdef __cplusplus |
| 4631 | extern "C" |
| 4632 | #endif |
| 4633 | /* We use char because int might match the return type of a gcc2 |
| 4634 | builtin and then its argument prototype would still apply. */ |
| 4635 | char misc_conv (); |
| 4636 | #ifdef F77_DUMMY_MAIN |
| 4637 | # ifdef __cplusplus |
| 4638 | extern "C" |
| 4639 | # endif |
| 4640 | int F77_DUMMY_MAIN() { return 1; } |
| 4641 | #endif |
| 4642 | int |
| 4643 | main () |
| 4644 | { |
| 4645 | misc_conv (); |
| 4646 | ; |
| 4647 | return 0; |
| 4648 | } |
| 4649 | _ACEOF |
| 4650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4652 | (eval $ac_link) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); } && |
| 4656 | { ac_try='test -s conftest$ac_exeext' |
| 4657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4658 | (eval $ac_try) 2>&5 |
| 4659 | ac_status=$? |
| 4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4661 | (exit $ac_status); }; }; then |
| 4662 | ac_cv_lib_pam_misc_conv=yes |
| 4663 | else |
| 4664 | echo "$as_me: failed program was:" >&5 |
| 4665 | cat conftest.$ac_ext >&5 |
| 4666 | ac_cv_lib_pam_misc_conv=no |
| 4667 | fi |
| 4668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4669 | LIBS=$ac_check_lib_save_LIBS |
| 4670 | fi |
| 4671 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4672 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4673 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4674 | cat >>confdefs.h <<\_ACEOF |
| 4675 | #define USE_PAM 1 |
| 4676 | _ACEOF |
| 4677 | |
| 4678 | LIBPAM="-lpam" |
| 4679 | else |
| 4680 | cat >>confdefs.h <<\_ACEOF |
| 4681 | #define USE_PAM 1 |
| 4682 | _ACEOF |
| 4683 | |
| 4684 | LIBPAM="-lpam -lpam_misc" |
| 4685 | |
| 4686 | fi |
| 4687 | |
| 4688 | |
| 4689 | else |
| 4690 | echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5 |
| 4691 | echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6 |
| 4692 | if test "${ac_cv_lib_pam_pam_end+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | ac_check_lib_save_LIBS=$LIBS |
| 4696 | LIBS="-lpam -ldl $LIBS" |
| 4697 | cat >conftest.$ac_ext <<_ACEOF |
| 4698 | #line $LINENO "configure" |
| 4699 | #include "confdefs.h" |
| 4700 | |
| 4701 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4702 | #ifdef __cplusplus |
| 4703 | extern "C" |
| 4704 | #endif |
| 4705 | /* We use char because int might match the return type of a gcc2 |
| 4706 | builtin and then its argument prototype would still apply. */ |
| 4707 | char pam_end (); |
| 4708 | #ifdef F77_DUMMY_MAIN |
| 4709 | # ifdef __cplusplus |
| 4710 | extern "C" |
| 4711 | # endif |
| 4712 | int F77_DUMMY_MAIN() { return 1; } |
| 4713 | #endif |
| 4714 | int |
| 4715 | main () |
| 4716 | { |
| 4717 | pam_end (); |
| 4718 | ; |
| 4719 | return 0; |
| 4720 | } |
| 4721 | _ACEOF |
| 4722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4724 | (eval $ac_link) 2>&5 |
| 4725 | ac_status=$? |
| 4726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4727 | (exit $ac_status); } && |
| 4728 | { ac_try='test -s conftest$ac_exeext' |
| 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4730 | (eval $ac_try) 2>&5 |
| 4731 | ac_status=$? |
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4733 | (exit $ac_status); }; }; then |
| 4734 | ac_cv_lib_pam_pam_end=yes |
| 4735 | else |
| 4736 | echo "$as_me: failed program was:" >&5 |
| 4737 | cat conftest.$ac_ext >&5 |
| 4738 | ac_cv_lib_pam_pam_end=no |
| 4739 | fi |
| 4740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4741 | LIBS=$ac_check_lib_save_LIBS |
| 4742 | fi |
| 4743 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5 |
| 4744 | echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6 |
| 4745 | if test $ac_cv_lib_pam_pam_end = yes; then |
| 4746 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4747 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4748 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4750 | else |
| 4751 | ac_check_lib_save_LIBS=$LIBS |
| 4752 | LIBS="-lpam $LIBS" |
| 4753 | cat >conftest.$ac_ext <<_ACEOF |
| 4754 | #line $LINENO "configure" |
| 4755 | #include "confdefs.h" |
| 4756 | |
| 4757 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4758 | #ifdef __cplusplus |
| 4759 | extern "C" |
| 4760 | #endif |
| 4761 | /* We use char because int might match the return type of a gcc2 |
| 4762 | builtin and then its argument prototype would still apply. */ |
| 4763 | char misc_conv (); |
| 4764 | #ifdef F77_DUMMY_MAIN |
| 4765 | # ifdef __cplusplus |
| 4766 | extern "C" |
| 4767 | # endif |
| 4768 | int F77_DUMMY_MAIN() { return 1; } |
| 4769 | #endif |
| 4770 | int |
| 4771 | main () |
| 4772 | { |
| 4773 | misc_conv (); |
| 4774 | ; |
| 4775 | return 0; |
| 4776 | } |
| 4777 | _ACEOF |
| 4778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4780 | (eval $ac_link) 2>&5 |
| 4781 | ac_status=$? |
| 4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4783 | (exit $ac_status); } && |
| 4784 | { ac_try='test -s conftest$ac_exeext' |
| 4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4786 | (eval $ac_try) 2>&5 |
| 4787 | ac_status=$? |
| 4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4789 | (exit $ac_status); }; }; then |
| 4790 | ac_cv_lib_pam_misc_conv=yes |
| 4791 | else |
| 4792 | echo "$as_me: failed program was:" >&5 |
| 4793 | cat conftest.$ac_ext >&5 |
| 4794 | ac_cv_lib_pam_misc_conv=no |
| 4795 | fi |
| 4796 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4797 | LIBS=$ac_check_lib_save_LIBS |
| 4798 | fi |
| 4799 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4800 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4801 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4802 | cat >>confdefs.h <<\_ACEOF |
| 4803 | #define USE_PAM 1 |
| 4804 | _ACEOF |
| 4805 | |
| 4806 | LIBPAM="-lpam -ldl" |
| 4807 | else |
| 4808 | cat >>confdefs.h <<\_ACEOF |
| 4809 | #define USE_PAM 1 |
| 4810 | _ACEOF |
| 4811 | |
| 4812 | LIBPAM="-lpam -ldl -lpam_misc" |
| 4813 | |
| 4814 | fi |
| 4815 | |
| 4816 | |
| 4817 | else |
| 4818 | { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5 |
| 4819 | echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} |
| 4820 | fi |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | fi |
| 4825 | |
| 4826 | fi |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs |
| 4845 | do |
| 4846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4847 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4849 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4851 | else |
| 4852 | cat >conftest.$ac_ext <<_ACEOF |
| 4853 | #line $LINENO "configure" |
| 4854 | #include "confdefs.h" |
| 4855 | /* System header to define __stub macros and hopefully few prototypes, |
| 4856 | which can conflict with char $ac_func (); below. */ |
| 4857 | #include <assert.h> |
| 4858 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4859 | #ifdef __cplusplus |
| 4860 | extern "C" |
| 4861 | #endif |
| 4862 | /* We use char because int might match the return type of a gcc2 |
| 4863 | builtin and then its argument prototype would still apply. */ |
| 4864 | char $ac_func (); |
| 4865 | char (*f) (); |
| 4866 | |
| 4867 | #ifdef F77_DUMMY_MAIN |
| 4868 | # ifdef __cplusplus |
| 4869 | extern "C" |
| 4870 | # endif |
| 4871 | int F77_DUMMY_MAIN() { return 1; } |
| 4872 | #endif |
| 4873 | int |
| 4874 | main () |
| 4875 | { |
| 4876 | /* The GNU C library defines this for functions which it implements |
| 4877 | to always fail with ENOSYS. Some functions are actually named |
| 4878 | something starting with __ and the normal name is an alias. */ |
| 4879 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4880 | choke me |
| 4881 | #else |
| 4882 | f = $ac_func; |
| 4883 | #endif |
| 4884 | |
| 4885 | ; |
| 4886 | return 0; |
| 4887 | } |
| 4888 | _ACEOF |
| 4889 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4891 | (eval $ac_link) 2>&5 |
| 4892 | ac_status=$? |
| 4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4894 | (exit $ac_status); } && |
| 4895 | { ac_try='test -s conftest$ac_exeext' |
| 4896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4897 | (eval $ac_try) 2>&5 |
| 4898 | ac_status=$? |
| 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4900 | (exit $ac_status); }; }; then |
| 4901 | eval "$as_ac_var=yes" |
| 4902 | else |
| 4903 | echo "$as_me: failed program was:" >&5 |
| 4904 | cat conftest.$ac_ext >&5 |
| 4905 | eval "$as_ac_var=no" |
| 4906 | fi |
| 4907 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4908 | fi |
| 4909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4911 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4912 | cat >>confdefs.h <<_ACEOF |
| 4913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4914 | _ACEOF |
| 4915 | |
| 4916 | fi |
| 4917 | done |
| 4918 | |
| 4919 | |
| 4920 | for ac_func in setproctitle |
| 4921 | do |
| 4922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4923 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4925 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4927 | else |
| 4928 | cat >conftest.$ac_ext <<_ACEOF |
| 4929 | #line $LINENO "configure" |
| 4930 | #include "confdefs.h" |
| 4931 | /* System header to define __stub macros and hopefully few prototypes, |
| 4932 | which can conflict with char $ac_func (); below. */ |
| 4933 | #include <assert.h> |
| 4934 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4935 | #ifdef __cplusplus |
| 4936 | extern "C" |
| 4937 | #endif |
| 4938 | /* We use char because int might match the return type of a gcc2 |
| 4939 | builtin and then its argument prototype would still apply. */ |
| 4940 | char $ac_func (); |
| 4941 | char (*f) (); |
| 4942 | |
| 4943 | #ifdef F77_DUMMY_MAIN |
| 4944 | # ifdef __cplusplus |
| 4945 | extern "C" |
| 4946 | # endif |
| 4947 | int F77_DUMMY_MAIN() { return 1; } |
| 4948 | #endif |
| 4949 | int |
| 4950 | main () |
| 4951 | { |
| 4952 | /* The GNU C library defines this for functions which it implements |
| 4953 | to always fail with ENOSYS. Some functions are actually named |
| 4954 | something starting with __ and the normal name is an alias. */ |
| 4955 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4956 | choke me |
| 4957 | #else |
| 4958 | f = $ac_func; |
| 4959 | #endif |
| 4960 | |
| 4961 | ; |
| 4962 | return 0; |
| 4963 | } |
| 4964 | _ACEOF |
| 4965 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4967 | (eval $ac_link) 2>&5 |
| 4968 | ac_status=$? |
| 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4970 | (exit $ac_status); } && |
| 4971 | { ac_try='test -s conftest$ac_exeext' |
| 4972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4973 | (eval $ac_try) 2>&5 |
| 4974 | ac_status=$? |
| 4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4976 | (exit $ac_status); }; }; then |
| 4977 | eval "$as_ac_var=yes" |
| 4978 | else |
| 4979 | echo "$as_me: failed program was:" >&5 |
| 4980 | cat conftest.$ac_ext >&5 |
| 4981 | eval "$as_ac_var=no" |
| 4982 | fi |
| 4983 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4984 | fi |
| 4985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4986 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4987 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4988 | cat >>confdefs.h <<_ACEOF |
| 4989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4990 | _ACEOF |
| 4991 | |
| 4992 | else |
| 4993 | echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5 |
| 4994 | echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 |
| 4995 | if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
| 4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4997 | else |
| 4998 | ac_check_lib_save_LIBS=$LIBS |
| 4999 | LIBS="-lutil $LIBS" |
| 5000 | cat >conftest.$ac_ext <<_ACEOF |
| 5001 | #line $LINENO "configure" |
| 5002 | #include "confdefs.h" |
| 5003 | |
| 5004 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5005 | #ifdef __cplusplus |
| 5006 | extern "C" |
| 5007 | #endif |
| 5008 | /* We use char because int might match the return type of a gcc2 |
| 5009 | builtin and then its argument prototype would still apply. */ |
| 5010 | char setproctitle (); |
| 5011 | #ifdef F77_DUMMY_MAIN |
| 5012 | # ifdef __cplusplus |
| 5013 | extern "C" |
| 5014 | # endif |
| 5015 | int F77_DUMMY_MAIN() { return 1; } |
| 5016 | #endif |
| 5017 | int |
| 5018 | main () |
| 5019 | { |
| 5020 | setproctitle (); |
| 5021 | ; |
| 5022 | return 0; |
| 5023 | } |
| 5024 | _ACEOF |
| 5025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5027 | (eval $ac_link) 2>&5 |
| 5028 | ac_status=$? |
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5030 | (exit $ac_status); } && |
| 5031 | { ac_try='test -s conftest$ac_exeext' |
| 5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5033 | (eval $ac_try) 2>&5 |
| 5034 | ac_status=$? |
| 5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5036 | (exit $ac_status); }; }; then |
| 5037 | ac_cv_lib_util_setproctitle=yes |
| 5038 | else |
| 5039 | echo "$as_me: failed program was:" >&5 |
| 5040 | cat conftest.$ac_ext >&5 |
| 5041 | ac_cv_lib_util_setproctitle=no |
| 5042 | fi |
| 5043 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5044 | LIBS=$ac_check_lib_save_LIBS |
| 5045 | fi |
| 5046 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5 |
| 5047 | echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 |
| 5048 | if test $ac_cv_lib_util_setproctitle = yes; then |
| 5049 | LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF |
| 5050 | #define HAVE_SETPROCTITLE 1 |
| 5051 | _ACEOF |
| 5052 | |
| 5053 | fi |
| 5054 | |
| 5055 | fi |
| 5056 | done |
| 5057 | |
| 5058 | |
| 5059 | echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5 |
| 5060 | echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6 |
| 5061 | if test x"$opsys" = x"gnu-linux"; then |
| 5062 | if test "${enable_netlink}" = "yes";then |
| 5063 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5064 | echo "${ECHO_T}netlink" >&6 |
| 5065 | RT_METHOD=rt_netlink.o |
| 5066 | cat >>confdefs.h <<\_ACEOF |
| 5067 | #define HAVE_NETLINK 1 |
| 5068 | _ACEOF |
| 5069 | |
| 5070 | netlink=yes |
| 5071 | elif test "${enable_netlink}" = "no"; then |
| 5072 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5073 | echo "${ECHO_T}ioctl" >&6 |
| 5074 | RT_METHOD=rt_ioctl.o |
| 5075 | netlink=no |
| 5076 | else |
| 5077 | cat >conftest.$ac_ext <<_ACEOF |
| 5078 | #line $LINENO "configure" |
| 5079 | #include "confdefs.h" |
| 5080 | #include <linux/autoconf.h> |
| 5081 | #include <linux/version.h> |
| 5082 | #if LINUX_VERSION_CODE > 131328 /* 2.1.0 or later */ |
| 5083 | #ifdef CONFIG_RTNETLINK |
| 5084 | yes |
| 5085 | #endif |
| 5086 | #endif |
| 5087 | #if LINUX_VERSION_CODE > 132112 /* 2.4.17 or later */ |
| 5088 | yes |
| 5089 | #endif |
| 5090 | |
| 5091 | _ACEOF |
| 5092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5093 | egrep "yes" >/dev/null 2>&1; then |
| 5094 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5095 | echo "${ECHO_T}netlink" >&6 |
| 5096 | RT_METHOD=rt_netlink.o |
| 5097 | cat >>confdefs.h <<\_ACEOF |
| 5098 | #define HAVE_NETLINK 1 |
| 5099 | _ACEOF |
| 5100 | |
| 5101 | netlink=yes |
| 5102 | else |
| 5103 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5104 | echo "${ECHO_T}ioctl" >&6 |
| 5105 | RT_METHOD=rt_ioctl.o |
| 5106 | fi |
| 5107 | rm -f conftest* |
| 5108 | |
| 5109 | fi |
| 5110 | else |
| 5111 | if test "$opsys" = "sol2-6";then |
| 5112 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5113 | echo "${ECHO_T}solaris" >&6 |
| 5114 | KERNEL_METHOD="kernel_socket.o" |
| 5115 | RT_METHOD="rt_socket.o" |
| 5116 | else |
| 5117 | if test "$cross_compiling" = yes; then |
| 5118 | KERNEL_METHOD=kernel_socket.o |
| 5119 | RT_METHOD=rt_socket.o |
| 5120 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5121 | echo "${ECHO_T}socket" >&6 |
| 5122 | else |
| 5123 | cat >conftest.$ac_ext <<_ACEOF |
| 5124 | #line $LINENO "configure" |
| 5125 | #include "confdefs.h" |
| 5126 | #include <errno.h> |
| 5127 | #include <sys/types.h> |
| 5128 | #include <sys/socket.h> |
| 5129 | |
| 5130 | main () |
| 5131 | { |
| 5132 | int ac_sock; |
| 5133 | |
| 5134 | ac_sock = socket (AF_ROUTE, SOCK_RAW, 0); |
| 5135 | if (ac_sock < 0 && errno == EINVAL) |
| 5136 | exit (1); |
| 5137 | exit (0); |
| 5138 | } |
| 5139 | _ACEOF |
| 5140 | rm -f conftest$ac_exeext |
| 5141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5142 | (eval $ac_link) 2>&5 |
| 5143 | ac_status=$? |
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5147 | (eval $ac_try) 2>&5 |
| 5148 | ac_status=$? |
| 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5150 | (exit $ac_status); }; }; then |
| 5151 | cat >>confdefs.h <<\_ACEOF |
| 5152 | #define HAVE_AF_ROUTE 1 |
| 5153 | _ACEOF |
| 5154 | |
| 5155 | KERNEL_METHOD=kernel_socket.o |
| 5156 | RT_METHOD=rt_socket.o |
| 5157 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5158 | echo "${ECHO_T}socket" >&6 |
| 5159 | else |
| 5160 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5161 | echo "$as_me: failed program was:" >&5 |
| 5162 | cat conftest.$ac_ext >&5 |
| 5163 | ( exit $ac_status ) |
| 5164 | RT_METHOD=rt_ioctl.o |
| 5165 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5166 | echo "${ECHO_T}ioctl" >&6 |
| 5167 | fi |
| 5168 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5169 | fi |
| 5170 | fi |
| 5171 | fi |
| 5172 | |
| 5173 | |
| 5174 | |
| 5175 | |
| 5176 | echo "$as_me:$LINENO: checking route read method check" >&5 |
| 5177 | echo $ECHO_N "checking route read method check... $ECHO_C" >&6 |
| 5178 | if test "${zebra_rtread+set}" = set; then |
| 5179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5180 | else |
| 5181 | if test "$netlink" = yes; then |
| 5182 | RTREAD_METHOD="rtread_netlink.o" |
| 5183 | zebra_rtread="netlink" |
| 5184 | else |
| 5185 | for zebra_rtread in /proc/net/route /dev/ip /dev/null; |
| 5186 | do |
| 5187 | test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break |
| 5188 | done |
| 5189 | case $zebra_rtread in |
| 5190 | "/proc/net/route") RTREAD_METHOD="rtread_proc.o" |
| 5191 | zebra_rtread="proc";; |
| 5192 | "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" |
| 5193 | zebra_rtread="getmsg";; |
| 5194 | *) RTREAD_METHOD="rtread_sysctl.o" |
| 5195 | zebra_rtread="sysctl";; |
| 5196 | esac |
| 5197 | fi |
| 5198 | fi |
| 5199 | echo "$as_me:$LINENO: result: $zebra_rtread" >&5 |
| 5200 | echo "${ECHO_T}$zebra_rtread" >&6 |
| 5201 | |
| 5202 | |
| 5203 | echo "$as_me:$LINENO: checking interface looking up method" >&5 |
| 5204 | echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6 |
| 5205 | if test "$netlink" = yes; then |
| 5206 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5207 | echo "${ECHO_T}netlink" >&6 |
| 5208 | IF_METHOD=if_netlink.o |
| 5209 | else |
| 5210 | if test "$opsys" = "sol2-6";then |
| 5211 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5212 | echo "${ECHO_T}solaris" >&6 |
| 5213 | IF_METHOD=if_ioctl.o |
| 5214 | elif test "$opsys" = "openbsd";then |
| 5215 | echo "$as_me:$LINENO: result: openbsd" >&5 |
| 5216 | echo "${ECHO_T}openbsd" >&6 |
| 5217 | IF_METHOD=if_ioctl.o |
| 5218 | elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then |
| 5219 | echo "$as_me:$LINENO: result: sysctl" >&5 |
| 5220 | echo "${ECHO_T}sysctl" >&6 |
| 5221 | IF_METHOD=if_sysctl.o |
| 5222 | cat >>confdefs.h <<\_ACEOF |
| 5223 | #define HAVE_NET_RT_IFLIST 1 |
| 5224 | _ACEOF |
| 5225 | |
| 5226 | else |
| 5227 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5228 | echo "${ECHO_T}ioctl" >&6 |
| 5229 | IF_METHOD=if_ioctl.o |
| 5230 | fi |
| 5231 | fi |
| 5232 | |
| 5233 | |
| 5234 | if test -r /proc/net/dev; then |
| 5235 | cat >>confdefs.h <<\_ACEOF |
| 5236 | #define HAVE_PROC_NET_DEV 1 |
| 5237 | _ACEOF |
| 5238 | |
| 5239 | IF_PROC=if_proc.o |
| 5240 | fi |
| 5241 | |
| 5242 | if test -r /proc/net/if_inet6; then |
| 5243 | cat >>confdefs.h <<\_ACEOF |
| 5244 | #define HAVE_PROC_NET_IF_INET6 1 |
| 5245 | _ACEOF |
| 5246 | |
| 5247 | IF_PROC=if_proc.o |
| 5248 | fi |
| 5249 | |
| 5250 | |
| 5251 | echo "$as_me:$LINENO: checking ipforward method check" >&5 |
| 5252 | echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6 |
| 5253 | if test "${zebra_ipforward_path+set}" = set; then |
| 5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5255 | else |
| 5256 | for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null; |
| 5257 | do |
| 5258 | test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break |
| 5259 | done |
| 5260 | case $zebra_ipforward_path in |
| 5261 | "/proc/net/snmp") IPFORWARD=ipforward_proc.o |
| 5262 | zebra_ipforward_path="proc";; |
| 5263 | "/dev/ip") |
| 5264 | case "$host" in |
| 5265 | *-nec-sysv4*) IPFORWARD=ipforward_ews.o |
| 5266 | zebra_ipforward_path="ews";; |
| 5267 | *) IPFORWARD=ipforward_solaris.o |
| 5268 | zebra_ipforward_path="solaris";; |
| 5269 | esac;; |
| 5270 | *) IPFORWARD=ipforward_sysctl.o |
| 5271 | zebra_ipforward_path="sysctl";; |
| 5272 | esac |
| 5273 | fi |
| 5274 | echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5 |
| 5275 | echo "${ECHO_T}$zebra_ipforward_path" >&6 |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | for ac_func in getaddrinfo |
| 5280 | do |
| 5281 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5282 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5283 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5284 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5286 | else |
| 5287 | cat >conftest.$ac_ext <<_ACEOF |
| 5288 | #line $LINENO "configure" |
| 5289 | #include "confdefs.h" |
| 5290 | /* System header to define __stub macros and hopefully few prototypes, |
| 5291 | which can conflict with char $ac_func (); below. */ |
| 5292 | #include <assert.h> |
| 5293 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5294 | #ifdef __cplusplus |
| 5295 | extern "C" |
| 5296 | #endif |
| 5297 | /* We use char because int might match the return type of a gcc2 |
| 5298 | builtin and then its argument prototype would still apply. */ |
| 5299 | char $ac_func (); |
| 5300 | char (*f) (); |
| 5301 | |
| 5302 | #ifdef F77_DUMMY_MAIN |
| 5303 | # ifdef __cplusplus |
| 5304 | extern "C" |
| 5305 | # endif |
| 5306 | int F77_DUMMY_MAIN() { return 1; } |
| 5307 | #endif |
| 5308 | int |
| 5309 | main () |
| 5310 | { |
| 5311 | /* The GNU C library defines this for functions which it implements |
| 5312 | to always fail with ENOSYS. Some functions are actually named |
| 5313 | something starting with __ and the normal name is an alias. */ |
| 5314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5315 | choke me |
| 5316 | #else |
| 5317 | f = $ac_func; |
| 5318 | #endif |
| 5319 | |
| 5320 | ; |
| 5321 | return 0; |
| 5322 | } |
| 5323 | _ACEOF |
| 5324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5326 | (eval $ac_link) 2>&5 |
| 5327 | ac_status=$? |
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5329 | (exit $ac_status); } && |
| 5330 | { ac_try='test -s conftest$ac_exeext' |
| 5331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5332 | (eval $ac_try) 2>&5 |
| 5333 | ac_status=$? |
| 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5335 | (exit $ac_status); }; }; then |
| 5336 | eval "$as_ac_var=yes" |
| 5337 | else |
| 5338 | echo "$as_me: failed program was:" >&5 |
| 5339 | cat conftest.$ac_ext >&5 |
| 5340 | eval "$as_ac_var=no" |
| 5341 | fi |
| 5342 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5343 | fi |
| 5344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5345 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5346 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5347 | cat >>confdefs.h <<_ACEOF |
| 5348 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5349 | _ACEOF |
| 5350 | have_getaddrinfo=yes |
| 5351 | else |
| 5352 | have_getaddrinfo=no |
| 5353 | fi |
| 5354 | done |
| 5355 | |
| 5356 | |
| 5357 | echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5 |
| 5358 | echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6 |
| 5359 | if test "${enable_ipv6}" = "no"; then |
| 5360 | echo "$as_me:$LINENO: result: disabled" >&5 |
| 5361 | echo "${ECHO_T}disabled" >&6 |
| 5362 | else |
| 5363 | if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then |
| 5364 | zebra_cv_ipv6=yes |
| 5365 | cat >>confdefs.h <<\_ACEOF |
| 5366 | #define HAVE_IPV6 1 |
| 5367 | _ACEOF |
| 5368 | |
| 5369 | cat >>confdefs.h <<\_ACEOF |
| 5370 | #define INRIA_IPV6 1 |
| 5371 | _ACEOF |
| 5372 | |
| 5373 | RIPNGD="ripngd" |
| 5374 | OSPF6D="ospf6d" |
| 5375 | LIB_IPV6="" |
| 5376 | echo "$as_me:$LINENO: result: INRIA IPv6" >&5 |
| 5377 | echo "${ECHO_T}INRIA IPv6" >&6 |
| 5378 | fi |
| 5379 | if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5380 | zebra_cv_ipv6=yes |
| 5381 | cat >>confdefs.h <<\_ACEOF |
| 5382 | #define HAVE_IPV6 1 |
| 5383 | _ACEOF |
| 5384 | |
| 5385 | cat >>confdefs.h <<\_ACEOF |
| 5386 | #define KAME 1 |
| 5387 | _ACEOF |
| 5388 | |
| 5389 | RIPNGD="ripngd" |
| 5390 | OSPF6D="ospf6d" |
| 5391 | if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then |
| 5392 | LIB_IPV6="-L/usr/local/v6/lib -linet6" |
| 5393 | fi |
| 5394 | echo "$as_me:$LINENO: result: KAME" >&5 |
| 5395 | echo "${ECHO_T}KAME" >&6 |
| 5396 | fi |
| 5397 | if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5398 | zebra_cv_ipv6=yes |
| 5399 | cat >>confdefs.h <<\_ACEOF |
| 5400 | #define HAVE_IPV6 1 |
| 5401 | _ACEOF |
| 5402 | |
| 5403 | cat >>confdefs.h <<\_ACEOF |
| 5404 | #define NRL 1 |
| 5405 | _ACEOF |
| 5406 | |
| 5407 | RIPNGD="ripngd" |
| 5408 | OSPF6D="ospf6d" |
| 5409 | if test x"$opsys" = x"bsdi";then |
| 5410 | cat >>confdefs.h <<\_ACEOF |
| 5411 | #define BSDI_NRL 1 |
| 5412 | _ACEOF |
| 5413 | |
| 5414 | echo "$as_me:$LINENO: result: BSDI_NRL" >&5 |
| 5415 | echo "${ECHO_T}BSDI_NRL" >&6 |
| 5416 | else |
| 5417 | echo "$as_me:$LINENO: result: NRL" >&5 |
| 5418 | echo "${ECHO_T}NRL" >&6 |
| 5419 | fi |
| 5420 | fi |
| 5421 | |
| 5422 | if test "${enable_ipv6}" = "yes"; then |
| 5423 | cat >conftest.$ac_ext <<_ACEOF |
| 5424 | #line $LINENO "configure" |
| 5425 | #include "confdefs.h" |
| 5426 | |
| 5427 | #include <linux/version.h> |
| 5428 | /* 2.1.128 or later */ |
| 5429 | #if LINUX_VERSION_CODE >= 0x020180 |
| 5430 | yes |
| 5431 | #endif |
| 5432 | _ACEOF |
| 5433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5434 | egrep "yes" >/dev/null 2>&1; then |
| 5435 | zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5436 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5437 | fi |
| 5438 | rm -f conftest* |
| 5439 | |
| 5440 | else |
| 5441 | if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route" |
| 5442 | then |
| 5443 | zebra_cv_ipv6=yes |
| 5444 | zebra_cv_linux_ipv6=yes |
| 5445 | echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5446 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5447 | fi |
| 5448 | fi |
| 5449 | |
| 5450 | if test "$zebra_cv_linux_ipv6" = "yes";then |
| 5451 | cat >>confdefs.h <<\_ACEOF |
| 5452 | #define HAVE_IPV6 1 |
| 5453 | _ACEOF |
| 5454 | |
| 5455 | echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5 |
| 5456 | echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6 |
| 5457 | cat >conftest.$ac_ext <<_ACEOF |
| 5458 | #line $LINENO "configure" |
| 5459 | #include "confdefs.h" |
| 5460 | |
| 5461 | #include <features.h> |
| 5462 | #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 5463 | yes |
| 5464 | #endif |
| 5465 | _ACEOF |
| 5466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5467 | egrep "yes" >/dev/null 2>&1; then |
| 5468 | glibc=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 5469 | echo "${ECHO_T}yes" >&6 |
| 5470 | else |
| 5471 | echo "$as_me:$LINENO: result: no" >&5 |
| 5472 | echo "${ECHO_T}no" >&6 |
| 5473 | fi |
| 5474 | rm -f conftest* |
| 5475 | |
| 5476 | cat >>confdefs.h <<\_ACEOF |
| 5477 | #define LINUX_IPV6 1 |
| 5478 | _ACEOF |
| 5479 | |
| 5480 | RIPNGD="ripngd" |
| 5481 | OSPF6D="ospf6d" |
| 5482 | if test "$glibc" != "yes"; then |
| 5483 | INCLUDES="-I/usr/inet6/include" |
| 5484 | if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then |
| 5485 | LIB_IPV6="-L/usr/inet6/lib -linet6" |
| 5486 | fi |
| 5487 | fi |
| 5488 | fi |
| 5489 | |
| 5490 | LIBS="$LIB_IPV6 $LIBS" |
| 5491 | |
| 5492 | |
| 5493 | if test x"$RIPNGD" = x""; then |
| 5494 | echo "$as_me:$LINENO: result: IPv4 only" >&5 |
| 5495 | echo "${ECHO_T}IPv4 only" >&6 |
| 5496 | fi |
| 5497 | fi |
| 5498 | |
| 5499 | if test "${enable_zebra}" = "no";then |
| 5500 | ZEBRA="" |
| 5501 | else |
| 5502 | ZEBRA="zebra" |
| 5503 | fi |
| 5504 | |
| 5505 | if test "${enable_bgpd}" = "no";then |
| 5506 | BGPD="" |
| 5507 | else |
| 5508 | BGPD="bgpd" |
| 5509 | fi |
| 5510 | |
| 5511 | if test "${enable_ripd}" = "no";then |
| 5512 | RIPD="" |
| 5513 | else |
| 5514 | RIPD="ripd" |
| 5515 | fi |
| 5516 | |
| 5517 | if test "${enable_ospfd}" = "no";then |
| 5518 | OSPFD="" |
| 5519 | else |
| 5520 | OSPFD="ospfd" |
| 5521 | fi |
| 5522 | |
| 5523 | case "${enable_ripngd}" in |
| 5524 | "yes") RIPNGD="ripngd";; |
| 5525 | "no" ) RIPNGD="";; |
| 5526 | * ) ;; |
| 5527 | esac |
| 5528 | |
| 5529 | case "${enable_ospf6d}" in |
| 5530 | "yes") OSPF6D="ospf6d";; |
| 5531 | "no" ) OSPF6D="";; |
| 5532 | * ) ;; |
| 5533 | esac |
| 5534 | |
| 5535 | case "${enable_isisd}" in |
| 5536 | "yes") ISISD="isisd";; |
| 5537 | "no" ) ISISD="";; |
| 5538 | * ) ;; |
| 5539 | esac |
| 5540 | |
| 5541 | if test "${enable_bgp_announce}" = "no";then |
| 5542 | cat >>confdefs.h <<\_ACEOF |
| 5543 | #define DISABLE_BGP_ANNOUNCE 1 |
| 5544 | _ACEOF |
| 5545 | |
| 5546 | fi |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | |
| 5558 | echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5 |
| 5559 | echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6 |
| 5560 | if test "${ac_cv_lib_c_inet_ntop+set}" = set; then |
| 5561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5562 | else |
| 5563 | ac_check_lib_save_LIBS=$LIBS |
| 5564 | LIBS="-lc $LIBS" |
| 5565 | cat >conftest.$ac_ext <<_ACEOF |
| 5566 | #line $LINENO "configure" |
| 5567 | #include "confdefs.h" |
| 5568 | |
| 5569 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5570 | #ifdef __cplusplus |
| 5571 | extern "C" |
| 5572 | #endif |
| 5573 | /* We use char because int might match the return type of a gcc2 |
| 5574 | builtin and then its argument prototype would still apply. */ |
| 5575 | char inet_ntop (); |
| 5576 | #ifdef F77_DUMMY_MAIN |
| 5577 | # ifdef __cplusplus |
| 5578 | extern "C" |
| 5579 | # endif |
| 5580 | int F77_DUMMY_MAIN() { return 1; } |
| 5581 | #endif |
| 5582 | int |
| 5583 | main () |
| 5584 | { |
| 5585 | inet_ntop (); |
| 5586 | ; |
| 5587 | return 0; |
| 5588 | } |
| 5589 | _ACEOF |
| 5590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5592 | (eval $ac_link) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); } && |
| 5596 | { ac_try='test -s conftest$ac_exeext' |
| 5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5598 | (eval $ac_try) 2>&5 |
| 5599 | ac_status=$? |
| 5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5601 | (exit $ac_status); }; }; then |
| 5602 | ac_cv_lib_c_inet_ntop=yes |
| 5603 | else |
| 5604 | echo "$as_me: failed program was:" >&5 |
| 5605 | cat conftest.$ac_ext >&5 |
| 5606 | ac_cv_lib_c_inet_ntop=no |
| 5607 | fi |
| 5608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5609 | LIBS=$ac_check_lib_save_LIBS |
| 5610 | fi |
| 5611 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5 |
| 5612 | echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6 |
| 5613 | if test $ac_cv_lib_c_inet_ntop = yes; then |
| 5614 | cat >>confdefs.h <<\_ACEOF |
| 5615 | #define HAVE_INET_NTOP 1 |
| 5616 | _ACEOF |
| 5617 | |
| 5618 | fi |
| 5619 | |
| 5620 | echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5 |
| 5621 | echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6 |
| 5622 | if test "${ac_cv_lib_c_inet_pton+set}" = set; then |
| 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5624 | else |
| 5625 | ac_check_lib_save_LIBS=$LIBS |
| 5626 | LIBS="-lc $LIBS" |
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
| 5628 | #line $LINENO "configure" |
| 5629 | #include "confdefs.h" |
| 5630 | |
| 5631 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5632 | #ifdef __cplusplus |
| 5633 | extern "C" |
| 5634 | #endif |
| 5635 | /* We use char because int might match the return type of a gcc2 |
| 5636 | builtin and then its argument prototype would still apply. */ |
| 5637 | char inet_pton (); |
| 5638 | #ifdef F77_DUMMY_MAIN |
| 5639 | # ifdef __cplusplus |
| 5640 | extern "C" |
| 5641 | # endif |
| 5642 | int F77_DUMMY_MAIN() { return 1; } |
| 5643 | #endif |
| 5644 | int |
| 5645 | main () |
| 5646 | { |
| 5647 | inet_pton (); |
| 5648 | ; |
| 5649 | return 0; |
| 5650 | } |
| 5651 | _ACEOF |
| 5652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5654 | (eval $ac_link) 2>&5 |
| 5655 | ac_status=$? |
| 5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5657 | (exit $ac_status); } && |
| 5658 | { ac_try='test -s conftest$ac_exeext' |
| 5659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5660 | (eval $ac_try) 2>&5 |
| 5661 | ac_status=$? |
| 5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5663 | (exit $ac_status); }; }; then |
| 5664 | ac_cv_lib_c_inet_pton=yes |
| 5665 | else |
| 5666 | echo "$as_me: failed program was:" >&5 |
| 5667 | cat conftest.$ac_ext >&5 |
| 5668 | ac_cv_lib_c_inet_pton=no |
| 5669 | fi |
| 5670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5671 | LIBS=$ac_check_lib_save_LIBS |
| 5672 | fi |
| 5673 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5 |
| 5674 | echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6 |
| 5675 | if test $ac_cv_lib_c_inet_pton = yes; then |
| 5676 | cat >>confdefs.h <<\_ACEOF |
| 5677 | #define HAVE_INET_PTON 1 |
| 5678 | _ACEOF |
| 5679 | |
| 5680 | fi |
| 5681 | |
| 5682 | |
| 5683 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
| 5684 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
| 5685 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
| 5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5687 | else |
| 5688 | ac_check_lib_save_LIBS=$LIBS |
| 5689 | LIBS="-lcrypt $LIBS" |
| 5690 | cat >conftest.$ac_ext <<_ACEOF |
| 5691 | #line $LINENO "configure" |
| 5692 | #include "confdefs.h" |
| 5693 | |
| 5694 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5695 | #ifdef __cplusplus |
| 5696 | extern "C" |
| 5697 | #endif |
| 5698 | /* We use char because int might match the return type of a gcc2 |
| 5699 | builtin and then its argument prototype would still apply. */ |
| 5700 | char crypt (); |
| 5701 | #ifdef F77_DUMMY_MAIN |
| 5702 | # ifdef __cplusplus |
| 5703 | extern "C" |
| 5704 | # endif |
| 5705 | int F77_DUMMY_MAIN() { return 1; } |
| 5706 | #endif |
| 5707 | int |
| 5708 | main () |
| 5709 | { |
| 5710 | crypt (); |
| 5711 | ; |
| 5712 | return 0; |
| 5713 | } |
| 5714 | _ACEOF |
| 5715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5717 | (eval $ac_link) 2>&5 |
| 5718 | ac_status=$? |
| 5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 | (exit $ac_status); } && |
| 5721 | { ac_try='test -s conftest$ac_exeext' |
| 5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5723 | (eval $ac_try) 2>&5 |
| 5724 | ac_status=$? |
| 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); }; }; then |
| 5727 | ac_cv_lib_crypt_crypt=yes |
| 5728 | else |
| 5729 | echo "$as_me: failed program was:" >&5 |
| 5730 | cat conftest.$ac_ext >&5 |
| 5731 | ac_cv_lib_crypt_crypt=no |
| 5732 | fi |
| 5733 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5734 | LIBS=$ac_check_lib_save_LIBS |
| 5735 | fi |
| 5736 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
| 5737 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
| 5738 | if test $ac_cv_lib_crypt_crypt = yes; then |
| 5739 | cat >>confdefs.h <<_ACEOF |
| 5740 | #define HAVE_LIBCRYPT 1 |
| 5741 | _ACEOF |
| 5742 | |
| 5743 | LIBS="-lcrypt $LIBS" |
| 5744 | |
| 5745 | fi |
| 5746 | |
| 5747 | |
| 5748 | echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5 |
| 5749 | echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6 |
| 5750 | if test "${ac_cv_lib_resolv_res_init+set}" = set; then |
| 5751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5752 | else |
| 5753 | ac_check_lib_save_LIBS=$LIBS |
| 5754 | LIBS="-lresolv $LIBS" |
| 5755 | cat >conftest.$ac_ext <<_ACEOF |
| 5756 | #line $LINENO "configure" |
| 5757 | #include "confdefs.h" |
| 5758 | |
| 5759 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5760 | #ifdef __cplusplus |
| 5761 | extern "C" |
| 5762 | #endif |
| 5763 | /* We use char because int might match the return type of a gcc2 |
| 5764 | builtin and then its argument prototype would still apply. */ |
| 5765 | char res_init (); |
| 5766 | #ifdef F77_DUMMY_MAIN |
| 5767 | # ifdef __cplusplus |
| 5768 | extern "C" |
| 5769 | # endif |
| 5770 | int F77_DUMMY_MAIN() { return 1; } |
| 5771 | #endif |
| 5772 | int |
| 5773 | main () |
| 5774 | { |
| 5775 | res_init (); |
| 5776 | ; |
| 5777 | return 0; |
| 5778 | } |
| 5779 | _ACEOF |
| 5780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5782 | (eval $ac_link) 2>&5 |
| 5783 | ac_status=$? |
| 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5785 | (exit $ac_status); } && |
| 5786 | { ac_try='test -s conftest$ac_exeext' |
| 5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5788 | (eval $ac_try) 2>&5 |
| 5789 | ac_status=$? |
| 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5791 | (exit $ac_status); }; }; then |
| 5792 | ac_cv_lib_resolv_res_init=yes |
| 5793 | else |
| 5794 | echo "$as_me: failed program was:" >&5 |
| 5795 | cat conftest.$ac_ext >&5 |
| 5796 | ac_cv_lib_resolv_res_init=no |
| 5797 | fi |
| 5798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5799 | LIBS=$ac_check_lib_save_LIBS |
| 5800 | fi |
| 5801 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5 |
| 5802 | echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6 |
| 5803 | if test $ac_cv_lib_resolv_res_init = yes; then |
| 5804 | cat >>confdefs.h <<_ACEOF |
| 5805 | #define HAVE_LIBRESOLV 1 |
| 5806 | _ACEOF |
| 5807 | |
| 5808 | LIBS="-lresolv $LIBS" |
| 5809 | |
| 5810 | fi |
| 5811 | |
| 5812 | |
| 5813 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 5814 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 5815 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 5816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5817 | else |
| 5818 | ac_check_lib_save_LIBS=$LIBS |
| 5819 | LIBS="-lm $LIBS" |
| 5820 | cat >conftest.$ac_ext <<_ACEOF |
| 5821 | #line $LINENO "configure" |
| 5822 | #include "confdefs.h" |
| 5823 | |
| 5824 | |
| 5825 | #ifdef F77_DUMMY_MAIN |
| 5826 | # ifdef __cplusplus |
| 5827 | extern "C" |
| 5828 | # endif |
| 5829 | int F77_DUMMY_MAIN() { return 1; } |
| 5830 | #endif |
| 5831 | int |
| 5832 | main () |
| 5833 | { |
| 5834 | main (); |
| 5835 | ; |
| 5836 | return 0; |
| 5837 | } |
| 5838 | _ACEOF |
| 5839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5841 | (eval $ac_link) 2>&5 |
| 5842 | ac_status=$? |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); } && |
| 5845 | { ac_try='test -s conftest$ac_exeext' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; }; then |
| 5851 | ac_cv_lib_m_main=yes |
| 5852 | else |
| 5853 | echo "$as_me: failed program was:" >&5 |
| 5854 | cat conftest.$ac_ext >&5 |
| 5855 | ac_cv_lib_m_main=no |
| 5856 | fi |
| 5857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5858 | LIBS=$ac_check_lib_save_LIBS |
| 5859 | fi |
| 5860 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 5861 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 5862 | if test $ac_cv_lib_m_main = yes; then |
| 5863 | cat >>confdefs.h <<_ACEOF |
| 5864 | #define HAVE_LIBM 1 |
| 5865 | _ACEOF |
| 5866 | |
| 5867 | LIBS="-lm $LIBS" |
| 5868 | |
| 5869 | fi |
| 5870 | |
| 5871 | |
| 5872 | echo "$as_me:$LINENO: checking for __inet_ntop" >&5 |
| 5873 | echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6 |
| 5874 | if test "${ac_cv_func___inet_ntop+set}" = set; then |
| 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5876 | else |
| 5877 | cat >conftest.$ac_ext <<_ACEOF |
| 5878 | #line $LINENO "configure" |
| 5879 | #include "confdefs.h" |
| 5880 | /* System header to define __stub macros and hopefully few prototypes, |
| 5881 | which can conflict with char __inet_ntop (); below. */ |
| 5882 | #include <assert.h> |
| 5883 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5884 | #ifdef __cplusplus |
| 5885 | extern "C" |
| 5886 | #endif |
| 5887 | /* We use char because int might match the return type of a gcc2 |
| 5888 | builtin and then its argument prototype would still apply. */ |
| 5889 | char __inet_ntop (); |
| 5890 | char (*f) (); |
| 5891 | |
| 5892 | #ifdef F77_DUMMY_MAIN |
| 5893 | # ifdef __cplusplus |
| 5894 | extern "C" |
| 5895 | # endif |
| 5896 | int F77_DUMMY_MAIN() { return 1; } |
| 5897 | #endif |
| 5898 | int |
| 5899 | main () |
| 5900 | { |
| 5901 | /* The GNU C library defines this for functions which it implements |
| 5902 | to always fail with ENOSYS. Some functions are actually named |
| 5903 | something starting with __ and the normal name is an alias. */ |
| 5904 | #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop) |
| 5905 | choke me |
| 5906 | #else |
| 5907 | f = __inet_ntop; |
| 5908 | #endif |
| 5909 | |
| 5910 | ; |
| 5911 | return 0; |
| 5912 | } |
| 5913 | _ACEOF |
| 5914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5916 | (eval $ac_link) 2>&5 |
| 5917 | ac_status=$? |
| 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5919 | (exit $ac_status); } && |
| 5920 | { ac_try='test -s conftest$ac_exeext' |
| 5921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5922 | (eval $ac_try) 2>&5 |
| 5923 | ac_status=$? |
| 5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5925 | (exit $ac_status); }; }; then |
| 5926 | ac_cv_func___inet_ntop=yes |
| 5927 | else |
| 5928 | echo "$as_me: failed program was:" >&5 |
| 5929 | cat conftest.$ac_ext >&5 |
| 5930 | ac_cv_func___inet_ntop=no |
| 5931 | fi |
| 5932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5933 | fi |
| 5934 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5 |
| 5935 | echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6 |
| 5936 | if test $ac_cv_func___inet_ntop = yes; then |
| 5937 | cat >>confdefs.h <<\_ACEOF |
| 5938 | #define HAVE_INET_NTOP 1 |
| 5939 | _ACEOF |
| 5940 | |
| 5941 | fi |
| 5942 | |
| 5943 | echo "$as_me:$LINENO: checking for __inet_pton" >&5 |
| 5944 | echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6 |
| 5945 | if test "${ac_cv_func___inet_pton+set}" = set; then |
| 5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5947 | else |
| 5948 | cat >conftest.$ac_ext <<_ACEOF |
| 5949 | #line $LINENO "configure" |
| 5950 | #include "confdefs.h" |
| 5951 | /* System header to define __stub macros and hopefully few prototypes, |
| 5952 | which can conflict with char __inet_pton (); below. */ |
| 5953 | #include <assert.h> |
| 5954 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5955 | #ifdef __cplusplus |
| 5956 | extern "C" |
| 5957 | #endif |
| 5958 | /* We use char because int might match the return type of a gcc2 |
| 5959 | builtin and then its argument prototype would still apply. */ |
| 5960 | char __inet_pton (); |
| 5961 | char (*f) (); |
| 5962 | |
| 5963 | #ifdef F77_DUMMY_MAIN |
| 5964 | # ifdef __cplusplus |
| 5965 | extern "C" |
| 5966 | # endif |
| 5967 | int F77_DUMMY_MAIN() { return 1; } |
| 5968 | #endif |
| 5969 | int |
| 5970 | main () |
| 5971 | { |
| 5972 | /* The GNU C library defines this for functions which it implements |
| 5973 | to always fail with ENOSYS. Some functions are actually named |
| 5974 | something starting with __ and the normal name is an alias. */ |
| 5975 | #if defined (__stub___inet_pton) || defined (__stub_____inet_pton) |
| 5976 | choke me |
| 5977 | #else |
| 5978 | f = __inet_pton; |
| 5979 | #endif |
| 5980 | |
| 5981 | ; |
| 5982 | return 0; |
| 5983 | } |
| 5984 | _ACEOF |
| 5985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5987 | (eval $ac_link) 2>&5 |
| 5988 | ac_status=$? |
| 5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5990 | (exit $ac_status); } && |
| 5991 | { ac_try='test -s conftest$ac_exeext' |
| 5992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5993 | (eval $ac_try) 2>&5 |
| 5994 | ac_status=$? |
| 5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5996 | (exit $ac_status); }; }; then |
| 5997 | ac_cv_func___inet_pton=yes |
| 5998 | else |
| 5999 | echo "$as_me: failed program was:" >&5 |
| 6000 | cat conftest.$ac_ext >&5 |
| 6001 | ac_cv_func___inet_pton=no |
| 6002 | fi |
| 6003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6004 | fi |
| 6005 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5 |
| 6006 | echo "${ECHO_T}$ac_cv_func___inet_pton" >&6 |
| 6007 | if test $ac_cv_func___inet_pton = yes; then |
| 6008 | cat >>confdefs.h <<\_ACEOF |
| 6009 | #define HAVE_INET_PTON 1 |
| 6010 | _ACEOF |
| 6011 | |
| 6012 | fi |
| 6013 | |
| 6014 | echo "$as_me:$LINENO: checking for __inet_aton" >&5 |
| 6015 | echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6 |
| 6016 | if test "${ac_cv_func___inet_aton+set}" = set; then |
| 6017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6018 | else |
| 6019 | cat >conftest.$ac_ext <<_ACEOF |
| 6020 | #line $LINENO "configure" |
| 6021 | #include "confdefs.h" |
| 6022 | /* System header to define __stub macros and hopefully few prototypes, |
| 6023 | which can conflict with char __inet_aton (); below. */ |
| 6024 | #include <assert.h> |
| 6025 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6026 | #ifdef __cplusplus |
| 6027 | extern "C" |
| 6028 | #endif |
| 6029 | /* We use char because int might match the return type of a gcc2 |
| 6030 | builtin and then its argument prototype would still apply. */ |
| 6031 | char __inet_aton (); |
| 6032 | char (*f) (); |
| 6033 | |
| 6034 | #ifdef F77_DUMMY_MAIN |
| 6035 | # ifdef __cplusplus |
| 6036 | extern "C" |
| 6037 | # endif |
| 6038 | int F77_DUMMY_MAIN() { return 1; } |
| 6039 | #endif |
| 6040 | int |
| 6041 | main () |
| 6042 | { |
| 6043 | /* The GNU C library defines this for functions which it implements |
| 6044 | to always fail with ENOSYS. Some functions are actually named |
| 6045 | something starting with __ and the normal name is an alias. */ |
| 6046 | #if defined (__stub___inet_aton) || defined (__stub_____inet_aton) |
| 6047 | choke me |
| 6048 | #else |
| 6049 | f = __inet_aton; |
| 6050 | #endif |
| 6051 | |
| 6052 | ; |
| 6053 | return 0; |
| 6054 | } |
| 6055 | _ACEOF |
| 6056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6058 | (eval $ac_link) 2>&5 |
| 6059 | ac_status=$? |
| 6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6061 | (exit $ac_status); } && |
| 6062 | { ac_try='test -s conftest$ac_exeext' |
| 6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6064 | (eval $ac_try) 2>&5 |
| 6065 | ac_status=$? |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6067 | (exit $ac_status); }; }; then |
| 6068 | ac_cv_func___inet_aton=yes |
| 6069 | else |
| 6070 | echo "$as_me: failed program was:" >&5 |
| 6071 | cat conftest.$ac_ext >&5 |
| 6072 | ac_cv_func___inet_aton=no |
| 6073 | fi |
| 6074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6075 | fi |
| 6076 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5 |
| 6077 | echo "${ECHO_T}$ac_cv_func___inet_aton" >&6 |
| 6078 | if test $ac_cv_func___inet_aton = yes; then |
| 6079 | cat >>confdefs.h <<\_ACEOF |
| 6080 | #define HAVE_INET_ATON 1 |
| 6081 | _ACEOF |
| 6082 | |
| 6083 | fi |
| 6084 | |
| 6085 | |
| 6086 | echo "$as_me:$LINENO: checking for regexec in -lc" >&5 |
| 6087 | echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6 |
| 6088 | if test "${ac_cv_lib_c_regexec+set}" = set; then |
| 6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6090 | else |
| 6091 | ac_check_lib_save_LIBS=$LIBS |
| 6092 | LIBS="-lc $LIBS" |
| 6093 | cat >conftest.$ac_ext <<_ACEOF |
| 6094 | #line $LINENO "configure" |
| 6095 | #include "confdefs.h" |
| 6096 | |
| 6097 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6098 | #ifdef __cplusplus |
| 6099 | extern "C" |
| 6100 | #endif |
| 6101 | /* We use char because int might match the return type of a gcc2 |
| 6102 | builtin and then its argument prototype would still apply. */ |
| 6103 | char regexec (); |
| 6104 | #ifdef F77_DUMMY_MAIN |
| 6105 | # ifdef __cplusplus |
| 6106 | extern "C" |
| 6107 | # endif |
| 6108 | int F77_DUMMY_MAIN() { return 1; } |
| 6109 | #endif |
| 6110 | int |
| 6111 | main () |
| 6112 | { |
| 6113 | regexec (); |
| 6114 | ; |
| 6115 | return 0; |
| 6116 | } |
| 6117 | _ACEOF |
| 6118 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6120 | (eval $ac_link) 2>&5 |
| 6121 | ac_status=$? |
| 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6123 | (exit $ac_status); } && |
| 6124 | { ac_try='test -s conftest$ac_exeext' |
| 6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6126 | (eval $ac_try) 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); }; }; then |
| 6130 | ac_cv_lib_c_regexec=yes |
| 6131 | else |
| 6132 | echo "$as_me: failed program was:" >&5 |
| 6133 | cat conftest.$ac_ext >&5 |
| 6134 | ac_cv_lib_c_regexec=no |
| 6135 | fi |
| 6136 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6137 | LIBS=$ac_check_lib_save_LIBS |
| 6138 | fi |
| 6139 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5 |
| 6140 | echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6 |
| 6141 | if test $ac_cv_lib_c_regexec = yes; then |
| 6142 | cat >>confdefs.h <<\_ACEOF |
| 6143 | #define HAVE_GNU_REGEX 1 |
| 6144 | _ACEOF |
| 6145 | |
| 6146 | LIB_REGEX="" |
| 6147 | else |
| 6148 | LIB_REGEX="regex.o" |
| 6149 | fi |
| 6150 | |
| 6151 | |
| 6152 | |
| 6153 | |
| 6154 | if test "${enable_snmp}" = "yes";then |
| 6155 | old_libs="${LIBS}" |
| 6156 | LIBS="-L/usr/local/lib" |
| 6157 | unset ac_cv_lib_snmp_asn_parse_int |
| 6158 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6159 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6160 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6162 | else |
| 6163 | ac_check_lib_save_LIBS=$LIBS |
| 6164 | LIBS="-lsnmp $LIBS" |
| 6165 | cat >conftest.$ac_ext <<_ACEOF |
| 6166 | #line $LINENO "configure" |
| 6167 | #include "confdefs.h" |
| 6168 | |
| 6169 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6170 | #ifdef __cplusplus |
| 6171 | extern "C" |
| 6172 | #endif |
| 6173 | /* We use char because int might match the return type of a gcc2 |
| 6174 | builtin and then its argument prototype would still apply. */ |
| 6175 | char asn_parse_int (); |
| 6176 | #ifdef F77_DUMMY_MAIN |
| 6177 | # ifdef __cplusplus |
| 6178 | extern "C" |
| 6179 | # endif |
| 6180 | int F77_DUMMY_MAIN() { return 1; } |
| 6181 | #endif |
| 6182 | int |
| 6183 | main () |
| 6184 | { |
| 6185 | asn_parse_int (); |
| 6186 | ; |
| 6187 | return 0; |
| 6188 | } |
| 6189 | _ACEOF |
| 6190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6192 | (eval $ac_link) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); } && |
| 6196 | { ac_try='test -s conftest$ac_exeext' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; }; then |
| 6202 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6203 | else |
| 6204 | echo "$as_me: failed program was:" >&5 |
| 6205 | cat conftest.$ac_ext >&5 |
| 6206 | ac_cv_lib_snmp_asn_parse_int=no |
| 6207 | fi |
| 6208 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6209 | LIBS=$ac_check_lib_save_LIBS |
| 6210 | fi |
| 6211 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6212 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6213 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6214 | HAVE_SNMP=yes |
| 6215 | fi |
| 6216 | |
| 6217 | if test "${HAVE_SNMP}" = ""; then |
| 6218 | unset ac_cv_lib_snmp_asn_parse_int |
| 6219 | echo "$as_me:$LINENO: checking for main in -lcrypto" >&5 |
| 6220 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 6221 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 6222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6223 | else |
| 6224 | ac_check_lib_save_LIBS=$LIBS |
| 6225 | LIBS="-lcrypto $LIBS" |
| 6226 | cat >conftest.$ac_ext <<_ACEOF |
| 6227 | #line $LINENO "configure" |
| 6228 | #include "confdefs.h" |
| 6229 | |
| 6230 | |
| 6231 | #ifdef F77_DUMMY_MAIN |
| 6232 | # ifdef __cplusplus |
| 6233 | extern "C" |
| 6234 | # endif |
| 6235 | int F77_DUMMY_MAIN() { return 1; } |
| 6236 | #endif |
| 6237 | int |
| 6238 | main () |
| 6239 | { |
| 6240 | main (); |
| 6241 | ; |
| 6242 | return 0; |
| 6243 | } |
| 6244 | _ACEOF |
| 6245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6247 | (eval $ac_link) 2>&5 |
| 6248 | ac_status=$? |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); } && |
| 6251 | { ac_try='test -s conftest$ac_exeext' |
| 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6253 | (eval $ac_try) 2>&5 |
| 6254 | ac_status=$? |
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6256 | (exit $ac_status); }; }; then |
| 6257 | ac_cv_lib_crypto_main=yes |
| 6258 | else |
| 6259 | echo "$as_me: failed program was:" >&5 |
| 6260 | cat conftest.$ac_ext >&5 |
| 6261 | ac_cv_lib_crypto_main=no |
| 6262 | fi |
| 6263 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6264 | LIBS=$ac_check_lib_save_LIBS |
| 6265 | fi |
| 6266 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5 |
| 6267 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 6268 | if test $ac_cv_lib_crypto_main = yes; then |
| 6269 | NEED_CRYPTO=yes |
| 6270 | fi |
| 6271 | |
| 6272 | if test "${NEED_CRYPTO}" = ""; then |
| 6273 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6274 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6275 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6277 | else |
| 6278 | ac_check_lib_save_LIBS=$LIBS |
| 6279 | LIBS="-lsnmp $LIBS" |
| 6280 | cat >conftest.$ac_ext <<_ACEOF |
| 6281 | #line $LINENO "configure" |
| 6282 | #include "confdefs.h" |
| 6283 | |
| 6284 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6285 | #ifdef __cplusplus |
| 6286 | extern "C" |
| 6287 | #endif |
| 6288 | /* We use char because int might match the return type of a gcc2 |
| 6289 | builtin and then its argument prototype would still apply. */ |
| 6290 | char asn_parse_int (); |
| 6291 | #ifdef F77_DUMMY_MAIN |
| 6292 | # ifdef __cplusplus |
| 6293 | extern "C" |
| 6294 | # endif |
| 6295 | int F77_DUMMY_MAIN() { return 1; } |
| 6296 | #endif |
| 6297 | int |
| 6298 | main () |
| 6299 | { |
| 6300 | asn_parse_int (); |
| 6301 | ; |
| 6302 | return 0; |
| 6303 | } |
| 6304 | _ACEOF |
| 6305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6307 | (eval $ac_link) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); } && |
| 6311 | { ac_try='test -s conftest$ac_exeext' |
| 6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6313 | (eval $ac_try) 2>&5 |
| 6314 | ac_status=$? |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); }; }; then |
| 6317 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6318 | else |
| 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | cat conftest.$ac_ext >&5 |
| 6321 | ac_cv_lib_snmp_asn_parse_int=no |
| 6322 | fi |
| 6323 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6324 | LIBS=$ac_check_lib_save_LIBS |
| 6325 | fi |
| 6326 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6327 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6328 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6329 | HAVE_SNMP=yes; NEED_CRYPTO=yes |
| 6330 | fi |
| 6331 | |
| 6332 | else |
| 6333 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6334 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6335 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6337 | else |
| 6338 | ac_check_lib_save_LIBS=$LIBS |
| 6339 | LIBS="-lsnmp "-lcrypto" $LIBS" |
| 6340 | cat >conftest.$ac_ext <<_ACEOF |
| 6341 | #line $LINENO "configure" |
| 6342 | #include "confdefs.h" |
| 6343 | |
| 6344 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6345 | #ifdef __cplusplus |
| 6346 | extern "C" |
| 6347 | #endif |
| 6348 | /* We use char because int might match the return type of a gcc2 |
| 6349 | builtin and then its argument prototype would still apply. */ |
| 6350 | char asn_parse_int (); |
| 6351 | #ifdef F77_DUMMY_MAIN |
| 6352 | # ifdef __cplusplus |
| 6353 | extern "C" |
| 6354 | # endif |
| 6355 | int F77_DUMMY_MAIN() { return 1; } |
| 6356 | #endif |
| 6357 | int |
| 6358 | main () |
| 6359 | { |
| 6360 | asn_parse_int (); |
| 6361 | ; |
| 6362 | return 0; |
| 6363 | } |
| 6364 | _ACEOF |
| 6365 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6367 | (eval $ac_link) 2>&5 |
| 6368 | ac_status=$? |
| 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); } && |
| 6371 | { ac_try='test -s conftest$ac_exeext' |
| 6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6373 | (eval $ac_try) 2>&5 |
| 6374 | ac_status=$? |
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 | (exit $ac_status); }; }; then |
| 6377 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6378 | else |
| 6379 | echo "$as_me: failed program was:" >&5 |
| 6380 | cat conftest.$ac_ext >&5 |
| 6381 | ac_cv_lib_snmp_asn_parse_int=no |
| 6382 | fi |
| 6383 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6384 | LIBS=$ac_check_lib_save_LIBS |
| 6385 | fi |
| 6386 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6387 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6388 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6389 | HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto" |
| 6390 | fi |
| 6391 | |
| 6392 | fi |
| 6393 | fi |
| 6394 | LIBS="${old_libs}" |
| 6395 | |
| 6396 | if test "${HAVE_SNMP}" = ""; then |
| 6397 | old_libs="${LIBS}" |
| 6398 | LIBS="-L/usr/local/lib" |
| 6399 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6400 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6401 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6403 | else |
| 6404 | ac_check_lib_save_LIBS=$LIBS |
| 6405 | LIBS="-lsnmp $LIBS" |
| 6406 | cat >conftest.$ac_ext <<_ACEOF |
| 6407 | #line $LINENO "configure" |
| 6408 | #include "confdefs.h" |
| 6409 | |
| 6410 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6411 | #ifdef __cplusplus |
| 6412 | extern "C" |
| 6413 | #endif |
| 6414 | /* We use char because int might match the return type of a gcc2 |
| 6415 | builtin and then its argument prototype would still apply. */ |
| 6416 | char asn_parse_int (); |
| 6417 | #ifdef F77_DUMMY_MAIN |
| 6418 | # ifdef __cplusplus |
| 6419 | extern "C" |
| 6420 | # endif |
| 6421 | int F77_DUMMY_MAIN() { return 1; } |
| 6422 | #endif |
| 6423 | int |
| 6424 | main () |
| 6425 | { |
| 6426 | asn_parse_int (); |
| 6427 | ; |
| 6428 | return 0; |
| 6429 | } |
| 6430 | _ACEOF |
| 6431 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6433 | (eval $ac_link) 2>&5 |
| 6434 | ac_status=$? |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); } && |
| 6437 | { ac_try='test -s conftest$ac_exeext' |
| 6438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6439 | (eval $ac_try) 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); }; }; then |
| 6443 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6444 | else |
| 6445 | echo "$as_me: failed program was:" >&5 |
| 6446 | cat conftest.$ac_ext >&5 |
| 6447 | ac_cv_lib_snmp_asn_parse_int=no |
| 6448 | fi |
| 6449 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6450 | LIBS=$ac_check_lib_save_LIBS |
| 6451 | fi |
| 6452 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6453 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6454 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6455 | HAVE_SNMP=yes |
| 6456 | fi |
| 6457 | |
| 6458 | LIBS="${old_libs}" |
| 6459 | fi |
| 6460 | if test "${HAVE_SNMP}" = "yes"; then |
| 6461 | for ac_snmp in /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null |
| 6462 | do |
| 6463 | test -f "${ac_snmp}" && break |
| 6464 | done |
| 6465 | case ${ac_snmp} in |
| 6466 | /usr/include/ucd-snmp/*) |
| 6467 | cat >>confdefs.h <<\_ACEOF |
| 6468 | #define HAVE_SNMP 1 |
| 6469 | _ACEOF |
| 6470 | |
| 6471 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 6472 | LIBS="${LIBS} -lsnmp" |
| 6473 | ;; |
| 6474 | /usr/local/include/ucd-snmp/*) |
| 6475 | cat >>confdefs.h <<\_ACEOF |
| 6476 | #define HAVE_SNMP 1 |
| 6477 | _ACEOF |
| 6478 | |
| 6479 | CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp" |
| 6480 | LIBS="${LIBS} -L/usr/local/lib -lsnmp" |
| 6481 | ;; |
| 6482 | esac |
| 6483 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6484 | LIBS="${LIBS} -lcrypto" |
| 6485 | fi |
| 6486 | fi |
| 6487 | fi |
| 6488 | |
| 6489 | echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5 |
| 6490 | echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6 |
| 6491 | cat >conftest.$ac_ext <<_ACEOF |
| 6492 | #line $LINENO "configure" |
| 6493 | #include "confdefs.h" |
| 6494 | #include <sys/types.h> |
| 6495 | #include <sys/socket.h> |
| 6496 | |
| 6497 | #ifdef F77_DUMMY_MAIN |
| 6498 | # ifdef __cplusplus |
| 6499 | extern "C" |
| 6500 | # endif |
| 6501 | int F77_DUMMY_MAIN() { return 1; } |
| 6502 | #endif |
| 6503 | int |
| 6504 | main () |
| 6505 | { |
| 6506 | static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len); |
| 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6513 | (eval $ac_compile) 2>&5 |
| 6514 | ac_status=$? |
| 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6516 | (exit $ac_status); } && |
| 6517 | { ac_try='test -s conftest.$ac_objext' |
| 6518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6519 | (eval $ac_try) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); }; }; then |
| 6523 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6524 | echo "${ECHO_T}yes" >&6 |
| 6525 | cat >>confdefs.h <<\_ACEOF |
| 6526 | #define HAVE_SA_LEN 1 |
| 6527 | _ACEOF |
| 6528 | |
| 6529 | else |
| 6530 | echo "$as_me: failed program was:" >&5 |
| 6531 | cat conftest.$ac_ext >&5 |
| 6532 | echo "$as_me:$LINENO: result: no" >&5 |
| 6533 | echo "${ECHO_T}no" >&6 |
| 6534 | fi |
| 6535 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6536 | |
| 6537 | echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5 |
| 6538 | echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6 |
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | #line $LINENO "configure" |
| 6541 | #include "confdefs.h" |
| 6542 | #include <sys/types.h> |
| 6543 | #include <netinet/in.h> |
| 6544 | |
| 6545 | #ifdef F77_DUMMY_MAIN |
| 6546 | # ifdef __cplusplus |
| 6547 | extern "C" |
| 6548 | # endif |
| 6549 | int F77_DUMMY_MAIN() { return 1; } |
| 6550 | #endif |
| 6551 | int |
| 6552 | main () |
| 6553 | { |
| 6554 | static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len); |
| 6555 | ; |
| 6556 | return 0; |
| 6557 | } |
| 6558 | _ACEOF |
| 6559 | rm -f conftest.$ac_objext |
| 6560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6561 | (eval $ac_compile) 2>&5 |
| 6562 | ac_status=$? |
| 6563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6564 | (exit $ac_status); } && |
| 6565 | { ac_try='test -s conftest.$ac_objext' |
| 6566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6567 | (eval $ac_try) 2>&5 |
| 6568 | ac_status=$? |
| 6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6570 | (exit $ac_status); }; }; then |
| 6571 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6572 | echo "${ECHO_T}yes" >&6 |
| 6573 | cat >>confdefs.h <<\_ACEOF |
| 6574 | #define HAVE_SIN_LEN 1 |
| 6575 | _ACEOF |
| 6576 | |
| 6577 | else |
| 6578 | echo "$as_me: failed program was:" >&5 |
| 6579 | cat conftest.$ac_ext >&5 |
| 6580 | echo "$as_me:$LINENO: result: no" >&5 |
| 6581 | echo "${ECHO_T}no" >&6 |
| 6582 | fi |
| 6583 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6584 | |
| 6585 | echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5 |
| 6586 | echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6 |
| 6587 | cat >conftest.$ac_ext <<_ACEOF |
| 6588 | #line $LINENO "configure" |
| 6589 | #include "confdefs.h" |
| 6590 | #include <sys/types.h> |
| 6591 | #include <sys/un.h> |
| 6592 | |
| 6593 | #ifdef F77_DUMMY_MAIN |
| 6594 | # ifdef __cplusplus |
| 6595 | extern "C" |
| 6596 | # endif |
| 6597 | int F77_DUMMY_MAIN() { return 1; } |
| 6598 | #endif |
| 6599 | int |
| 6600 | main () |
| 6601 | { |
| 6602 | static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len); |
| 6603 | ; |
| 6604 | return 0; |
| 6605 | } |
| 6606 | _ACEOF |
| 6607 | rm -f conftest.$ac_objext |
| 6608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6609 | (eval $ac_compile) 2>&5 |
| 6610 | ac_status=$? |
| 6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6612 | (exit $ac_status); } && |
| 6613 | { ac_try='test -s conftest.$ac_objext' |
| 6614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6615 | (eval $ac_try) 2>&5 |
| 6616 | ac_status=$? |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); }; }; then |
| 6619 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6620 | echo "${ECHO_T}yes" >&6 |
| 6621 | cat >>confdefs.h <<\_ACEOF |
| 6622 | #define HAVE_SUN_LEN 1 |
| 6623 | _ACEOF |
| 6624 | |
| 6625 | else |
| 6626 | echo "$as_me: failed program was:" >&5 |
| 6627 | cat conftest.$ac_ext >&5 |
| 6628 | echo "$as_me:$LINENO: result: no" >&5 |
| 6629 | echo "${ECHO_T}no" >&6 |
| 6630 | fi |
| 6631 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6632 | |
| 6633 | if test "$zebra_cv_ipv6" = yes; then |
| 6634 | echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 |
| 6635 | echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6 |
| 6636 | cat >conftest.$ac_ext <<_ACEOF |
| 6637 | #line $LINENO "configure" |
| 6638 | #include "confdefs.h" |
| 6639 | #include <sys/types.h> |
| 6640 | #include <netinet/in.h> |
| 6641 | |
| 6642 | #ifdef F77_DUMMY_MAIN |
| 6643 | # ifdef __cplusplus |
| 6644 | extern "C" |
| 6645 | # endif |
| 6646 | int F77_DUMMY_MAIN() { return 1; } |
| 6647 | #endif |
| 6648 | int |
| 6649 | main () |
| 6650 | { |
| 6651 | static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id); |
| 6652 | ; |
| 6653 | return 0; |
| 6654 | } |
| 6655 | _ACEOF |
| 6656 | rm -f conftest.$ac_objext |
| 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6658 | (eval $ac_compile) 2>&5 |
| 6659 | ac_status=$? |
| 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6661 | (exit $ac_status); } && |
| 6662 | { ac_try='test -s conftest.$ac_objext' |
| 6663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6664 | (eval $ac_try) 2>&5 |
| 6665 | ac_status=$? |
| 6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6667 | (exit $ac_status); }; }; then |
| 6668 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6669 | echo "${ECHO_T}yes" >&6 |
| 6670 | cat >>confdefs.h <<\_ACEOF |
| 6671 | #define HAVE_SIN6_SCOPE_ID 1 |
| 6672 | _ACEOF |
| 6673 | |
| 6674 | else |
| 6675 | echo "$as_me: failed program was:" >&5 |
| 6676 | cat conftest.$ac_ext >&5 |
| 6677 | echo "$as_me:$LINENO: result: no" >&5 |
| 6678 | echo "${ECHO_T}no" >&6 |
| 6679 | fi |
| 6680 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6681 | fi |
| 6682 | |
| 6683 | echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5 |
| 6684 | echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6 |
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
| 6686 | #line $LINENO "configure" |
| 6687 | #include "confdefs.h" |
| 6688 | #include <sys/types.h> |
| 6689 | #include <sys/socket.h> |
| 6690 | #include <netinet/in.h> |
| 6691 | |
| 6692 | #ifdef F77_DUMMY_MAIN |
| 6693 | # ifdef __cplusplus |
| 6694 | extern "C" |
| 6695 | # endif |
| 6696 | int F77_DUMMY_MAIN() { return 1; } |
| 6697 | #endif |
| 6698 | int |
| 6699 | main () |
| 6700 | { |
| 6701 | socklen_t ac_x; |
| 6702 | ; |
| 6703 | return 0; |
| 6704 | } |
| 6705 | _ACEOF |
| 6706 | rm -f conftest.$ac_objext |
| 6707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6708 | (eval $ac_compile) 2>&5 |
| 6709 | ac_status=$? |
| 6710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6711 | (exit $ac_status); } && |
| 6712 | { ac_try='test -s conftest.$ac_objext' |
| 6713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6714 | (eval $ac_try) 2>&5 |
| 6715 | ac_status=$? |
| 6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6717 | (exit $ac_status); }; }; then |
| 6718 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6719 | echo "${ECHO_T}yes" >&6 |
| 6720 | cat >>confdefs.h <<\_ACEOF |
| 6721 | #define HAVE_SOCKLEN_T 1 |
| 6722 | _ACEOF |
| 6723 | |
| 6724 | else |
| 6725 | echo "$as_me: failed program was:" >&5 |
| 6726 | cat conftest.$ac_ext >&5 |
| 6727 | echo "$as_me:$LINENO: result: no" >&5 |
| 6728 | echo "${ECHO_T}no" >&6 |
| 6729 | fi |
| 6730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6731 | |
| 6732 | echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5 |
| 6733 | echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6 |
| 6734 | cat >conftest.$ac_ext <<_ACEOF |
| 6735 | #line $LINENO "configure" |
| 6736 | #include "confdefs.h" |
| 6737 | #include <net/if_dl.h> |
| 6738 | |
| 6739 | _ACEOF |
| 6740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6741 | egrep "sockaddr_dl" >/dev/null 2>&1; then |
| 6742 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6743 | echo "${ECHO_T}yes" >&6 |
| 6744 | cat >>confdefs.h <<\_ACEOF |
| 6745 | #define HAVE_SOCKADDR_DL 1 |
| 6746 | _ACEOF |
| 6747 | |
| 6748 | else |
| 6749 | echo "$as_me:$LINENO: result: no" >&5 |
| 6750 | echo "${ECHO_T}no" >&6 |
| 6751 | fi |
| 6752 | rm -f conftest* |
| 6753 | |
| 6754 | |
| 6755 | echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5 |
| 6756 | echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6 |
| 6757 | cat >conftest.$ac_ext <<_ACEOF |
| 6758 | #line $LINENO "configure" |
| 6759 | #include "confdefs.h" |
| 6760 | #include <net/if.h> |
| 6761 | |
| 6762 | _ACEOF |
| 6763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6764 | egrep "ifaliasreq" >/dev/null 2>&1; then |
| 6765 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6766 | echo "${ECHO_T}yes" >&6 |
| 6767 | cat >>confdefs.h <<\_ACEOF |
| 6768 | #define HAVE_IFALIASREQ 1 |
| 6769 | _ACEOF |
| 6770 | |
| 6771 | else |
| 6772 | echo "$as_me:$LINENO: result: no" >&5 |
| 6773 | echo "${ECHO_T}no" >&6 |
| 6774 | fi |
| 6775 | rm -f conftest* |
| 6776 | |
| 6777 | |
| 6778 | echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5 |
| 6779 | echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6 |
| 6780 | cat >conftest.$ac_ext <<_ACEOF |
| 6781 | #line $LINENO "configure" |
| 6782 | #include "confdefs.h" |
| 6783 | #include <netinet6/in6_var.h> |
| 6784 | |
| 6785 | _ACEOF |
| 6786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6787 | egrep "in6_aliasreq" >/dev/null 2>&1; then |
| 6788 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6789 | echo "${ECHO_T}yes" >&6 |
| 6790 | cat >>confdefs.h <<\_ACEOF |
| 6791 | #define HAVE_IN6_ALIASREQ 1 |
| 6792 | _ACEOF |
| 6793 | |
| 6794 | else |
| 6795 | echo "$as_me:$LINENO: result: no" >&5 |
| 6796 | echo "${ECHO_T}no" >&6 |
| 6797 | fi |
| 6798 | rm -f conftest* |
| 6799 | |
| 6800 | |
| 6801 | echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5 |
| 6802 | echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6 |
| 6803 | cat >conftest.$ac_ext <<_ACEOF |
| 6804 | #line $LINENO "configure" |
| 6805 | #include "confdefs.h" |
| 6806 | #include <net/route.h> |
| 6807 | |
| 6808 | _ACEOF |
| 6809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6810 | egrep "rt_addrinfo" >/dev/null 2>&1; then |
| 6811 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6812 | echo "${ECHO_T}yes" >&6 |
| 6813 | cat >>confdefs.h <<\_ACEOF |
| 6814 | #define HAVE_RT_ADDRINFO 1 |
| 6815 | _ACEOF |
| 6816 | |
| 6817 | else |
| 6818 | echo "$as_me:$LINENO: result: no" >&5 |
| 6819 | echo "${ECHO_T}no" >&6 |
| 6820 | fi |
| 6821 | rm -f conftest* |
| 6822 | |
| 6823 | |
| 6824 | echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5 |
| 6825 | echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6 |
| 6826 | cat >conftest.$ac_ext <<_ACEOF |
| 6827 | #line $LINENO "configure" |
| 6828 | #include "confdefs.h" |
| 6829 | #include <netinet/in.h> |
| 6830 | |
| 6831 | #ifdef F77_DUMMY_MAIN |
| 6832 | # ifdef __cplusplus |
| 6833 | extern "C" |
| 6834 | # endif |
| 6835 | int F77_DUMMY_MAIN() { return 1; } |
| 6836 | #endif |
| 6837 | int |
| 6838 | main () |
| 6839 | { |
| 6840 | struct in_pktinfo ac_x; |
| 6841 | ; |
| 6842 | return 0; |
| 6843 | } |
| 6844 | _ACEOF |
| 6845 | rm -f conftest.$ac_objext |
| 6846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6847 | (eval $ac_compile) 2>&5 |
| 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); } && |
| 6851 | { ac_try='test -s conftest.$ac_objext' |
| 6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6853 | (eval $ac_try) 2>&5 |
| 6854 | ac_status=$? |
| 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6856 | (exit $ac_status); }; }; then |
| 6857 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6858 | echo "${ECHO_T}yes" >&6 |
| 6859 | cat >>confdefs.h <<\_ACEOF |
| 6860 | #define HAVE_INPKTINFO 1 |
| 6861 | _ACEOF |
| 6862 | |
| 6863 | else |
| 6864 | echo "$as_me: failed program was:" >&5 |
| 6865 | cat conftest.$ac_ext >&5 |
| 6866 | echo "$as_me:$LINENO: result: no" >&5 |
| 6867 | echo "${ECHO_T}no" >&6 |
| 6868 | fi |
| 6869 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6870 | |
| 6871 | echo "$as_me:$LINENO: checking whether getrusage is available" >&5 |
| 6872 | echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6 |
| 6873 | cat >conftest.$ac_ext <<_ACEOF |
| 6874 | #line $LINENO "configure" |
| 6875 | #include "confdefs.h" |
| 6876 | #include <sys/resource.h> |
| 6877 | |
| 6878 | #ifdef F77_DUMMY_MAIN |
| 6879 | # ifdef __cplusplus |
| 6880 | extern "C" |
| 6881 | # endif |
| 6882 | int F77_DUMMY_MAIN() { return 1; } |
| 6883 | #endif |
| 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); |
| 6888 | ; |
| 6889 | return 0; |
| 6890 | } |
| 6891 | _ACEOF |
| 6892 | rm -f conftest.$ac_objext |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6894 | (eval $ac_compile) 2>&5 |
| 6895 | ac_status=$? |
| 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6897 | (exit $ac_status); } && |
| 6898 | { ac_try='test -s conftest.$ac_objext' |
| 6899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6900 | (eval $ac_try) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); }; }; then |
| 6904 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6905 | echo "${ECHO_T}yes" >&6 |
| 6906 | cat >>confdefs.h <<\_ACEOF |
| 6907 | #define HAVE_RUSAGE 1 |
| 6908 | _ACEOF |
| 6909 | |
| 6910 | else |
| 6911 | echo "$as_me: failed program was:" >&5 |
| 6912 | cat conftest.$ac_ext >&5 |
| 6913 | echo "$as_me:$LINENO: result: no" >&5 |
| 6914 | echo "${ECHO_T}no" >&6 |
| 6915 | fi |
| 6916 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6917 | |
| 6918 | file="${srcdir}/lib/version.h" |
| 6919 | VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file` |
| 6920 | |
| 6921 | |
| 6922 | echo "$as_me:$LINENO: checking pid file directory" >&5 |
| 6923 | echo $ECHO_N "checking pid file directory... $ECHO_C" >&6 |
| 6924 | if test "${ac_piddir+set}" = set; then |
| 6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6926 | else |
| 6927 | for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null; |
| 6928 | do |
| 6929 | test -d $ZEBRA_PID_DIR && break |
| 6930 | done |
| 6931 | ac_piddir=$ZEBRA_PID_DIR |
| 6932 | if test $ZEBRA_PID_DIR = "/dev/null"; then |
| 6933 | echo "PID DIRECTORY NOT FOUND!" |
| 6934 | fi |
| 6935 | fi |
| 6936 | echo "$as_me:$LINENO: result: $ac_piddir" >&5 |
| 6937 | echo "${ECHO_T}$ac_piddir" >&6 |
| 6938 | cat >>confdefs.h <<_ACEOF |
| 6939 | #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid" |
| 6940 | _ACEOF |
| 6941 | |
| 6942 | cat >>confdefs.h <<_ACEOF |
| 6943 | #define PATH_RIPD_PID "$ac_piddir/ripd.pid" |
| 6944 | _ACEOF |
| 6945 | |
| 6946 | cat >>confdefs.h <<_ACEOF |
| 6947 | #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid" |
| 6948 | _ACEOF |
| 6949 | |
| 6950 | cat >>confdefs.h <<_ACEOF |
| 6951 | #define PATH_BGPD_PID "$ac_piddir/bgpd.pid" |
| 6952 | _ACEOF |
| 6953 | |
| 6954 | cat >>confdefs.h <<_ACEOF |
| 6955 | #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid" |
| 6956 | _ACEOF |
| 6957 | |
| 6958 | cat >>confdefs.h <<_ACEOF |
| 6959 | #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid" |
| 6960 | _ACEOF |
| 6961 | |
| 6962 | cat >>confdefs.h <<_ACEOF |
| 6963 | #define PATH_ISISD_PID "$ac_piddir/isisd.pid" |
| 6964 | _ACEOF |
| 6965 | |
| 6966 | |
| 6967 | echo "$as_me:$LINENO: checking for working htonl" >&5 |
| 6968 | echo $ECHO_N "checking for working htonl... $ECHO_C" >&6 |
| 6969 | if test "${ac_cv_htonl_works+set}" = set; then |
| 6970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6971 | else |
| 6972 | |
| 6973 | cat >conftest.$ac_ext <<_ACEOF |
| 6974 | #line $LINENO "configure" |
| 6975 | #include "confdefs.h" |
| 6976 | #ifdef HAVE_SYS_TYPES_H |
| 6977 | #include <sys/types.h> |
| 6978 | #endif |
| 6979 | #ifdef HAVE_NETDB_H |
| 6980 | #include <netdb.h> |
| 6981 | #endif |
| 6982 | #ifdef HAVE_NETINET_IN_H |
| 6983 | #include <netinet/in.h> |
| 6984 | #endif |
| 6985 | #ifdef F77_DUMMY_MAIN |
| 6986 | # ifdef __cplusplus |
| 6987 | extern "C" |
| 6988 | # endif |
| 6989 | int F77_DUMMY_MAIN() { return 1; } |
| 6990 | #endif |
| 6991 | int |
| 6992 | main () |
| 6993 | { |
| 6994 | htonl (0); |
| 6995 | ; |
| 6996 | return 0; |
| 6997 | } |
| 6998 | _ACEOF |
| 6999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7001 | (eval $ac_link) 2>&5 |
| 7002 | ac_status=$? |
| 7003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7004 | (exit $ac_status); } && |
| 7005 | { ac_try='test -s conftest$ac_exeext' |
| 7006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7007 | (eval $ac_try) 2>&5 |
| 7008 | ac_status=$? |
| 7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7010 | (exit $ac_status); }; }; then |
| 7011 | ac_cv_htonl_works=yes |
| 7012 | else |
| 7013 | echo "$as_me: failed program was:" >&5 |
| 7014 | cat conftest.$ac_ext >&5 |
| 7015 | ac_cv_htonl_works=no |
| 7016 | fi |
| 7017 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7018 | fi |
| 7019 | |
| 7020 | echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5 |
| 7021 | echo "${ECHO_T}$ac_cv_htonl_works" >&6 |
| 7022 | |
| 7023 | ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile" |
| 7024 | cat >confcache <<\_ACEOF |
| 7025 | # This file is a shell script that caches the results of configure |
| 7026 | # tests run on this system so they can be shared between configure |
| 7027 | # scripts and configure runs, see configure's option --config-cache. |
| 7028 | # It is not useful on other systems. If it contains results you don't |
| 7029 | # want to keep, you may remove or edit it. |
| 7030 | # |
| 7031 | # config.status only pays attention to the cache file if you give it |
| 7032 | # the --recheck option to rerun configure. |
| 7033 | # |
| 7034 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 7035 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7036 | # following values. |
| 7037 | |
| 7038 | _ACEOF |
| 7039 | |
| 7040 | # The following way of writing the cache mishandles newlines in values, |
| 7041 | # but we know of no workaround that is simple, portable, and efficient. |
| 7042 | # So, don't put newlines in cache variables' values. |
| 7043 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7044 | # and sets the high bit in the cache file unless we assign to the vars. |
| 7045 | { |
| 7046 | (set) 2>&1 | |
| 7047 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 7048 | *ac_space=\ *) |
| 7049 | # `set' does not quote correctly, so add quotes (double-quote |
| 7050 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 7051 | sed -n \ |
| 7052 | "s/'/'\\\\''/g; |
| 7053 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7054 | ;; |
| 7055 | *) |
| 7056 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7057 | sed -n \ |
| 7058 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 7059 | ;; |
| 7060 | esac; |
| 7061 | } | |
| 7062 | sed ' |
| 7063 | t clear |
| 7064 | : clear |
| 7065 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7066 | t end |
| 7067 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7068 | : end' >>confcache |
| 7069 | if cmp -s $cache_file confcache; then :; else |
| 7070 | if test -w $cache_file; then |
| 7071 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 7072 | cat confcache >$cache_file |
| 7073 | else |
| 7074 | echo "not updating unwritable cache $cache_file" |
| 7075 | fi |
| 7076 | fi |
| 7077 | rm -f confcache |
| 7078 | |
| 7079 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7080 | # Let make expand exec_prefix. |
| 7081 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7082 | |
| 7083 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7084 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7085 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7086 | # (actually we leave an empty line to preserve line numbers). |
| 7087 | if test "x$srcdir" = x.; then |
| 7088 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7089 | s/:*\$(srcdir):*/:/; |
| 7090 | s/:*\${srcdir}:*/:/; |
| 7091 | s/:*@srcdir@:*/:/; |
| 7092 | s/^\([^=]*=[ ]*\):*/\1/; |
| 7093 | s/:*$//; |
| 7094 | s/^[^=]*=[ ]*$//; |
| 7095 | }' |
| 7096 | fi |
| 7097 | |
| 7098 | DEFS=-DHAVE_CONFIG_H |
| 7099 | |
| 7100 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 7101 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 7102 | Usually this means the macro was only invoked conditionally." >&5 |
| 7103 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 7104 | Usually this means the macro was only invoked conditionally." >&2;} |
| 7105 | { (exit 1); exit 1; }; } |
| 7106 | fi |
| 7107 | |
| 7108 | : ${CONFIG_STATUS=./config.status} |
| 7109 | ac_clean_files_save=$ac_clean_files |
| 7110 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7111 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 7112 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7113 | cat >$CONFIG_STATUS <<_ACEOF |
| 7114 | #! $SHELL |
| 7115 | # Generated by $as_me. |
| 7116 | # Run this file to recreate the current configuration. |
| 7117 | # Compiler output produced by configure, useful for debugging |
| 7118 | # configure, is in config.log if it exists. |
| 7119 | |
| 7120 | debug=false |
| 7121 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7122 | _ACEOF |
| 7123 | |
| 7124 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7125 | |
| 7126 | ## --------------------- ## |
| 7127 | ## M4sh Initialization. ## |
| 7128 | ## --------------------- ## |
| 7129 | |
| 7130 | # Be Bourne compatible |
| 7131 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 7132 | emulate sh |
| 7133 | NULLCMD=: |
| 7134 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 7135 | set -o posix |
| 7136 | fi |
| 7137 | |
| 7138 | # NLS nuisances. |
| 7139 | # Support unset when possible. |
| 7140 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 7141 | as_unset=unset |
| 7142 | else |
| 7143 | as_unset=false |
| 7144 | fi |
| 7145 | |
| 7146 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 7147 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 7148 | { LANG=C; export LANG; } |
| 7149 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 7150 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 7151 | { LC_ALL=C; export LC_ALL; } |
| 7152 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 7153 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 7154 | { LC_TIME=C; export LC_TIME; } |
| 7155 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 7156 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 7157 | { LC_CTYPE=C; export LC_CTYPE; } |
| 7158 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 7159 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 7160 | { LANGUAGE=C; export LANGUAGE; } |
| 7161 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 7162 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 7163 | { LC_COLLATE=C; export LC_COLLATE; } |
| 7164 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 7165 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 7166 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 7167 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 7168 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 7169 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 7170 | |
| 7171 | |
| 7172 | # Name of the executable. |
| 7173 | as_me=`(basename "$0") 2>/dev/null || |
| 7174 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7175 | X"$0" : 'X\(//\)$' \| \ |
| 7176 | X"$0" : 'X\(/\)$' \| \ |
| 7177 | . : '\(.\)' 2>/dev/null || |
| 7178 | echo X/"$0" | |
| 7179 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 7180 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 7181 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 7182 | s/.*/./; q'` |
| 7183 | |
| 7184 | # PATH needs CR, and LINENO needs CR and PATH. |
| 7185 | # Avoid depending upon Character Ranges. |
| 7186 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7187 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7188 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7189 | as_cr_digits='0123456789' |
| 7190 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 7191 | |
| 7192 | # The user is always right. |
| 7193 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7194 | echo "#! /bin/sh" >conftest.sh |
| 7195 | echo "exit 0" >>conftest.sh |
| 7196 | chmod +x conftest.sh |
| 7197 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 7198 | PATH_SEPARATOR=';' |
| 7199 | else |
| 7200 | PATH_SEPARATOR=: |
| 7201 | fi |
| 7202 | rm -f conftest.sh |
| 7203 | fi |
| 7204 | |
| 7205 | |
| 7206 | as_lineno_1=$LINENO |
| 7207 | as_lineno_2=$LINENO |
| 7208 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 7209 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 7210 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 7211 | # Find who we are. Look in the path if we contain no path at all |
| 7212 | # relative or not. |
| 7213 | case $0 in |
| 7214 | *[\\/]* ) as_myself=$0 ;; |
| 7215 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7216 | for as_dir in $PATH |
| 7217 | do |
| 7218 | IFS=$as_save_IFS |
| 7219 | test -z "$as_dir" && as_dir=. |
| 7220 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7221 | done |
| 7222 | |
| 7223 | ;; |
| 7224 | esac |
| 7225 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7226 | # in which case we are not to be found in the path. |
| 7227 | if test "x$as_myself" = x; then |
| 7228 | as_myself=$0 |
| 7229 | fi |
| 7230 | if test ! -f "$as_myself"; then |
| 7231 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 7232 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 7233 | { (exit 1); exit 1; }; } |
| 7234 | fi |
| 7235 | case $CONFIG_SHELL in |
| 7236 | '') |
| 7237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7238 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 7239 | do |
| 7240 | IFS=$as_save_IFS |
| 7241 | test -z "$as_dir" && as_dir=. |
| 7242 | for as_base in sh bash ksh sh5; do |
| 7243 | case $as_dir in |
| 7244 | /*) |
| 7245 | if ("$as_dir/$as_base" -c ' |
| 7246 | as_lineno_1=$LINENO |
| 7247 | as_lineno_2=$LINENO |
| 7248 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 7249 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 7250 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 7251 | CONFIG_SHELL=$as_dir/$as_base |
| 7252 | export CONFIG_SHELL |
| 7253 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 7254 | fi;; |
| 7255 | esac |
| 7256 | done |
| 7257 | done |
| 7258 | ;; |
| 7259 | esac |
| 7260 | |
| 7261 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 7262 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 7263 | # line-number line before each line; the second 'sed' does the real |
| 7264 | # work. The second script uses 'N' to pair each line-number line |
| 7265 | # with the numbered line, and appends trailing '-' during |
| 7266 | # substitution so that $LINENO is not a special case at line end. |
| 7267 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 7268 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 7269 | sed '=' <$as_myself | |
| 7270 | sed ' |
| 7271 | N |
| 7272 | s,$,-, |
| 7273 | : loop |
| 7274 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 7275 | t loop |
| 7276 | s,-$,, |
| 7277 | s,^['$as_cr_digits']*\n,, |
| 7278 | ' >$as_me.lineno && |
| 7279 | chmod +x $as_me.lineno || |
| 7280 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 7281 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 7282 | { (exit 1); exit 1; }; } |
| 7283 | |
| 7284 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 7285 | # (the dirname of $[0] is not the place where we might find the |
| 7286 | # original and so on. Autoconf is especially sensible to this). |
| 7287 | . ./$as_me.lineno |
| 7288 | # Exit status is that of the last command. |
| 7289 | exit |
| 7290 | } |
| 7291 | |
| 7292 | |
| 7293 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 7294 | *c*,-n*) ECHO_N= ECHO_C=' |
| 7295 | ' ECHO_T=' ' ;; |
| 7296 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 7297 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 7298 | esac |
| 7299 | |
| 7300 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 7301 | as_expr=expr |
| 7302 | else |
| 7303 | as_expr=false |
| 7304 | fi |
| 7305 | |
| 7306 | rm -f conf$$ conf$$.exe conf$$.file |
| 7307 | echo >conf$$.file |
| 7308 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7309 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 7310 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 7311 | if test -f conf$$.exe; then |
| 7312 | # Don't use ln at all; we don't have any links |
| 7313 | as_ln_s='cp -p' |
| 7314 | else |
| 7315 | as_ln_s='ln -s' |
| 7316 | fi |
| 7317 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7318 | as_ln_s=ln |
| 7319 | else |
| 7320 | as_ln_s='cp -p' |
| 7321 | fi |
| 7322 | rm -f conf$$ conf$$.exe conf$$.file |
| 7323 | |
| 7324 | as_executable_p="test -f" |
| 7325 | |
| 7326 | # Sed expression to map a string onto a valid CPP name. |
| 7327 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 7328 | |
| 7329 | # Sed expression to map a string onto a valid variable name. |
| 7330 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 7331 | |
| 7332 | |
| 7333 | # IFS |
| 7334 | # We need space, tab and new line, in precisely that order. |
| 7335 | as_nl=' |
| 7336 | ' |
| 7337 | IFS=" $as_nl" |
| 7338 | |
| 7339 | # CDPATH. |
| 7340 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 7341 | |
| 7342 | exec 6>&1 |
| 7343 | |
| 7344 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 7345 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7346 | # values after options handling. Logging --version etc. is OK. |
| 7347 | exec 5>>config.log |
| 7348 | { |
| 7349 | echo |
| 7350 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7351 | ## Running $as_me. ## |
| 7352 | _ASBOX |
| 7353 | } >&5 |
| 7354 | cat >&5 <<_CSEOF |
| 7355 | |
| 7356 | This file was extended by $as_me, which was |
| 7357 | generated by GNU Autoconf 2.53. Invocation command line was |
| 7358 | |
| 7359 | CONFIG_FILES = $CONFIG_FILES |
| 7360 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7361 | CONFIG_LINKS = $CONFIG_LINKS |
| 7362 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7363 | $ $0 $@ |
| 7364 | |
| 7365 | _CSEOF |
| 7366 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 7367 | echo >&5 |
| 7368 | _ACEOF |
| 7369 | |
| 7370 | # Files that config.status was made for. |
| 7371 | if test -n "$ac_config_files"; then |
| 7372 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 7373 | fi |
| 7374 | |
| 7375 | if test -n "$ac_config_headers"; then |
| 7376 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 7377 | fi |
| 7378 | |
| 7379 | if test -n "$ac_config_links"; then |
| 7380 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 7381 | fi |
| 7382 | |
| 7383 | if test -n "$ac_config_commands"; then |
| 7384 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 7385 | fi |
| 7386 | |
| 7387 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7388 | |
| 7389 | ac_cs_usage="\ |
| 7390 | \`$as_me' instantiates files from templates according to the |
| 7391 | current configuration. |
| 7392 | |
| 7393 | Usage: $0 [OPTIONS] [FILE]... |
| 7394 | |
| 7395 | -h, --help print this help, then exit |
| 7396 | -V, --version print version number, then exit |
| 7397 | -d, --debug don't remove temporary files |
| 7398 | --recheck update $as_me by reconfiguring in the same conditions |
| 7399 | --file=FILE[:TEMPLATE] |
| 7400 | instantiate the configuration file FILE |
| 7401 | --header=FILE[:TEMPLATE] |
| 7402 | instantiate the configuration header FILE |
| 7403 | |
| 7404 | Configuration files: |
| 7405 | $config_files |
| 7406 | |
| 7407 | Configuration headers: |
| 7408 | $config_headers |
| 7409 | |
| 7410 | Configuration commands: |
| 7411 | $config_commands |
| 7412 | |
| 7413 | Report bugs to <bug-autoconf@gnu.org>." |
| 7414 | _ACEOF |
| 7415 | |
| 7416 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7417 | ac_cs_version="\\ |
| 7418 | config.status |
| 7419 | configured by $0, generated by GNU Autoconf 2.53, |
| 7420 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 7421 | |
| 7422 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 7423 | Free Software Foundation, Inc. |
| 7424 | This config.status script is free software; the Free Software Foundation |
| 7425 | gives unlimited permission to copy, distribute and modify it." |
| 7426 | srcdir=$srcdir |
| 7427 | INSTALL="$INSTALL" |
| 7428 | _ACEOF |
| 7429 | |
| 7430 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7431 | # If no file are specified by the user, then we need to provide default |
| 7432 | # value. By we need to know if files were specified by the user. |
| 7433 | ac_need_defaults=: |
| 7434 | while test $# != 0 |
| 7435 | do |
| 7436 | case $1 in |
| 7437 | --*=*) |
| 7438 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 7439 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 7440 | shift |
| 7441 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 7442 | shift |
| 7443 | ;; |
| 7444 | -*);; |
| 7445 | *) # This is not an option, so the user has probably given explicit |
| 7446 | # arguments. |
| 7447 | ac_need_defaults=false;; |
| 7448 | esac |
| 7449 | |
| 7450 | case $1 in |
| 7451 | # Handling of the options. |
| 7452 | _ACEOF |
| 7453 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7454 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7455 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 7456 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 7457 | _ACEOF |
| 7458 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7459 | --version | --vers* | -V ) |
| 7460 | echo "$ac_cs_version"; exit 0 ;; |
| 7461 | --he | --h) |
| 7462 | # Conflict between --help and --header |
| 7463 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 7464 | Try \`$0 --help' for more information." >&5 |
| 7465 | echo "$as_me: error: ambiguous option: $1 |
| 7466 | Try \`$0 --help' for more information." >&2;} |
| 7467 | { (exit 1); exit 1; }; };; |
| 7468 | --help | --hel | -h ) |
| 7469 | echo "$ac_cs_usage"; exit 0 ;; |
| 7470 | --debug | --d* | -d ) |
| 7471 | debug=: ;; |
| 7472 | --file | --fil | --fi | --f ) |
| 7473 | shift |
| 7474 | CONFIG_FILES="$CONFIG_FILES $1" |
| 7475 | ac_need_defaults=false;; |
| 7476 | --header | --heade | --head | --hea ) |
| 7477 | shift |
| 7478 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 7479 | ac_need_defaults=false;; |
| 7480 | |
| 7481 | # This is an error. |
| 7482 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 7483 | Try \`$0 --help' for more information." >&5 |
| 7484 | echo "$as_me: error: unrecognized option: $1 |
| 7485 | Try \`$0 --help' for more information." >&2;} |
| 7486 | { (exit 1); exit 1; }; } ;; |
| 7487 | |
| 7488 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 7489 | |
| 7490 | esac |
| 7491 | shift |
| 7492 | done |
| 7493 | |
| 7494 | _ACEOF |
| 7495 | |
| 7496 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7497 | # |
| 7498 | # INIT-COMMANDS section. |
| 7499 | # |
| 7500 | |
| 7501 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7502 | |
| 7503 | _ACEOF |
| 7504 | |
| 7505 | |
| 7506 | |
| 7507 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7508 | for ac_config_target in $ac_config_targets |
| 7509 | do |
| 7510 | case "$ac_config_target" in |
| 7511 | # Handling of arguments. |
| 7512 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7513 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 7514 | "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;; |
| 7515 | "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;; |
| 7516 | "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;; |
| 7517 | "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;; |
| 7518 | "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;; |
| 7519 | "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;; |
| 7520 | "isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;; |
| 7521 | "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;; |
| 7522 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 7523 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7524 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7525 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 7526 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7527 | { (exit 1); exit 1; }; };; |
| 7528 | esac |
| 7529 | done |
| 7530 | |
| 7531 | # If the user did not use the arguments to specify the items to instantiate, |
| 7532 | # then the envvar interface is used. Set only those that are not. |
| 7533 | # We use the long form for the default assignment because of an extremely |
| 7534 | # bizarre bug on SunOS 4.1.3. |
| 7535 | if $ac_need_defaults; then |
| 7536 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7537 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7538 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7539 | fi |
| 7540 | |
| 7541 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7542 | $debug || |
| 7543 | { |
| 7544 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7545 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7546 | } |
| 7547 | |
| 7548 | # Create a (secure) tmp directory for tmp files. |
| 7549 | : ${TMPDIR=/tmp} |
| 7550 | { |
| 7551 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 7552 | test -n "$tmp" && test -d "$tmp" |
| 7553 | } || |
| 7554 | { |
| 7555 | tmp=$TMPDIR/cs$$-$RANDOM |
| 7556 | (umask 077 && mkdir $tmp) |
| 7557 | } || |
| 7558 | { |
| 7559 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 7560 | { (exit 1); exit 1; } |
| 7561 | } |
| 7562 | |
| 7563 | _ACEOF |
| 7564 | |
| 7565 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7566 | |
| 7567 | # |
| 7568 | # CONFIG_FILES section. |
| 7569 | # |
| 7570 | |
| 7571 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7572 | # This happens for instance when ./config.status config.h |
| 7573 | if test -n "\$CONFIG_FILES"; then |
| 7574 | # Protect against being on the right side of a sed subst in config.status. |
| 7575 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7576 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7577 | s,@SHELL@,$SHELL,;t t |
| 7578 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7579 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7580 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7581 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7582 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7583 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7584 | s,@exec_prefix@,$exec_prefix,;t t |
| 7585 | s,@prefix@,$prefix,;t t |
| 7586 | s,@program_transform_name@,$program_transform_name,;t t |
| 7587 | s,@bindir@,$bindir,;t t |
| 7588 | s,@sbindir@,$sbindir,;t t |
| 7589 | s,@libexecdir@,$libexecdir,;t t |
| 7590 | s,@datadir@,$datadir,;t t |
| 7591 | s,@sysconfdir@,$sysconfdir,;t t |
| 7592 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7593 | s,@localstatedir@,$localstatedir,;t t |
| 7594 | s,@libdir@,$libdir,;t t |
| 7595 | s,@includedir@,$includedir,;t t |
| 7596 | s,@oldincludedir@,$oldincludedir,;t t |
| 7597 | s,@infodir@,$infodir,;t t |
| 7598 | s,@mandir@,$mandir,;t t |
| 7599 | s,@build_alias@,$build_alias,;t t |
| 7600 | s,@host_alias@,$host_alias,;t t |
| 7601 | s,@target_alias@,$target_alias,;t t |
| 7602 | s,@DEFS@,$DEFS,;t t |
| 7603 | s,@ECHO_C@,$ECHO_C,;t t |
| 7604 | s,@ECHO_N@,$ECHO_N,;t t |
| 7605 | s,@ECHO_T@,$ECHO_T,;t t |
| 7606 | s,@LIBS@,$LIBS,;t t |
| 7607 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7608 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7609 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 7610 | s,@PACKAGE@,$PACKAGE,;t t |
| 7611 | s,@VERSION@,$VERSION,;t t |
| 7612 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 7613 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 7614 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7615 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7616 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 7617 | s,@AMTAR@,$AMTAR,;t t |
| 7618 | s,@install_sh@,$install_sh,;t t |
| 7619 | s,@STRIP@,$STRIP,;t t |
| 7620 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 7621 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7622 | s,@AWK@,$AWK,;t t |
| 7623 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7624 | s,@build@,$build,;t t |
| 7625 | s,@build_cpu@,$build_cpu,;t t |
| 7626 | s,@build_vendor@,$build_vendor,;t t |
| 7627 | s,@build_os@,$build_os,;t t |
| 7628 | s,@host@,$host,;t t |
| 7629 | s,@host_cpu@,$host_cpu,;t t |
| 7630 | s,@host_vendor@,$host_vendor,;t t |
| 7631 | s,@host_os@,$host_os,;t t |
| 7632 | s,@CC@,$CC,;t t |
| 7633 | s,@CFLAGS@,$CFLAGS,;t t |
| 7634 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7635 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7636 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7637 | s,@EXEEXT@,$EXEEXT,;t t |
| 7638 | s,@OBJEXT@,$OBJEXT,;t t |
| 7639 | s,@DEPDIR@,$DEPDIR,;t t |
| 7640 | s,@am__include@,$am__include,;t t |
| 7641 | s,@am__quote@,$am__quote,;t t |
| 7642 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7643 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7644 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7645 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 7646 | s,@CPP@,$CPP,;t t |
| 7647 | s,@AR@,$AR,;t t |
| 7648 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 7649 | s,@RANLIB@,$RANLIB,;t t |
| 7650 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 7651 | s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t |
| 7652 | s,@LIBPAM@,$LIBPAM,;t t |
| 7653 | s,@RT_METHOD@,$RT_METHOD,;t t |
| 7654 | s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t |
| 7655 | s,@OTHER_METHOD@,$OTHER_METHOD,;t t |
| 7656 | s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t |
| 7657 | s,@IF_METHOD@,$IF_METHOD,;t t |
| 7658 | s,@IF_PROC@,$IF_PROC,;t t |
| 7659 | s,@IPFORWARD@,$IPFORWARD,;t t |
| 7660 | s,@LIB_IPV6@,$LIB_IPV6,;t t |
| 7661 | s,@ZEBRA@,$ZEBRA,;t t |
| 7662 | s,@BGPD@,$BGPD,;t t |
| 7663 | s,@RIPD@,$RIPD,;t t |
| 7664 | s,@RIPNGD@,$RIPNGD,;t t |
| 7665 | s,@OSPFD@,$OSPFD,;t t |
| 7666 | s,@OSPF6D@,$OSPF6D,;t t |
| 7667 | s,@ISISD@,$ISISD,;t t |
| 7668 | s,@VTYSH@,$VTYSH,;t t |
| 7669 | s,@INCLUDES@,$INCLUDES,;t t |
| 7670 | s,@CURSES@,$CURSES,;t t |
| 7671 | s,@LIB_REGEX@,$LIB_REGEX,;t t |
| 7672 | CEOF |
| 7673 | |
| 7674 | _ACEOF |
| 7675 | |
| 7676 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7677 | # Split the substitutions into bite-sized pieces for seds with |
| 7678 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7679 | ac_max_sed_lines=48 |
| 7680 | ac_sed_frag=1 # Number of current file. |
| 7681 | ac_beg=1 # First line for current file. |
| 7682 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7683 | ac_more_lines=: |
| 7684 | ac_sed_cmds= |
| 7685 | while $ac_more_lines; do |
| 7686 | if test $ac_beg -gt 1; then |
| 7687 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7688 | else |
| 7689 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7690 | fi |
| 7691 | if test ! -s $tmp/subs.frag; then |
| 7692 | ac_more_lines=false |
| 7693 | else |
| 7694 | # The purpose of the label and of the branching condition is to |
| 7695 | # speed up the sed processing (if there are no `@' at all, there |
| 7696 | # is no need to browse any of the substitutions). |
| 7697 | # These are the two extra sed commands mentioned above. |
| 7698 | (echo ':t |
| 7699 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7700 | if test -z "$ac_sed_cmds"; then |
| 7701 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7702 | else |
| 7703 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7704 | fi |
| 7705 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7706 | ac_beg=$ac_end |
| 7707 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7708 | fi |
| 7709 | done |
| 7710 | if test -z "$ac_sed_cmds"; then |
| 7711 | ac_sed_cmds=cat |
| 7712 | fi |
| 7713 | fi # test -n "$CONFIG_FILES" |
| 7714 | |
| 7715 | _ACEOF |
| 7716 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7717 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7718 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7719 | case $ac_file in |
| 7720 | - | *:- | *:-:* ) # input from stdin |
| 7721 | cat >$tmp/stdin |
| 7722 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7723 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7724 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7725 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7726 | * ) ac_file_in=$ac_file.in ;; |
| 7727 | esac |
| 7728 | |
| 7729 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7730 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7731 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7732 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7733 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7734 | X"$ac_file" : 'X\(/\)' \| \ |
| 7735 | . : '\(.\)' 2>/dev/null || |
| 7736 | echo X"$ac_file" | |
| 7737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7738 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7739 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7740 | /^X\(\/\).*/{ s//\1/; q; } |
| 7741 | s/.*/./; q'` |
| 7742 | { case "$ac_dir" in |
| 7743 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7744 | *) as_incr_dir=.;; |
| 7745 | esac |
| 7746 | as_dummy="$ac_dir" |
| 7747 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7748 | case $as_mkdir_dir in |
| 7749 | # Skip DOS drivespec |
| 7750 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 7751 | *) |
| 7752 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7753 | test -d "$as_incr_dir" || |
| 7754 | mkdir "$as_incr_dir" || |
| 7755 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 7756 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 7757 | { (exit 1); exit 1; }; } |
| 7758 | ;; |
| 7759 | esac |
| 7760 | done; } |
| 7761 | |
| 7762 | ac_builddir=. |
| 7763 | |
| 7764 | if test "$ac_dir" != .; then |
| 7765 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7766 | # A "../" for each directory in $ac_dir_suffix. |
| 7767 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7768 | else |
| 7769 | ac_dir_suffix= ac_top_builddir= |
| 7770 | fi |
| 7771 | |
| 7772 | case $srcdir in |
| 7773 | .) # No --srcdir option. We are building in place. |
| 7774 | ac_srcdir=. |
| 7775 | if test -z "$ac_top_builddir"; then |
| 7776 | ac_top_srcdir=. |
| 7777 | else |
| 7778 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7779 | fi ;; |
| 7780 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7781 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7782 | ac_top_srcdir=$srcdir ;; |
| 7783 | *) # Relative path. |
| 7784 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7785 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7786 | esac |
| 7787 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 7788 | # absolute. |
| 7789 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 7790 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 7791 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 7792 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 7793 | |
| 7794 | |
| 7795 | case $INSTALL in |
| 7796 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7797 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 7798 | esac |
| 7799 | |
| 7800 | if test x"$ac_file" != x-; then |
| 7801 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7802 | echo "$as_me: creating $ac_file" >&6;} |
| 7803 | rm -f "$ac_file" |
| 7804 | fi |
| 7805 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7806 | # use $as_me), people would be surprised to read: |
| 7807 | # /* config.h. Generated by config.status. */ |
| 7808 | if test x"$ac_file" = x-; then |
| 7809 | configure_input= |
| 7810 | else |
| 7811 | configure_input="$ac_file. " |
| 7812 | fi |
| 7813 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 7814 | sed 's,.*/,,'` by configure." |
| 7815 | |
| 7816 | # First look for the input files in the build tree, otherwise in the |
| 7817 | # src tree. |
| 7818 | ac_file_inputs=`IFS=: |
| 7819 | for f in $ac_file_in; do |
| 7820 | case $f in |
| 7821 | -) echo $tmp/stdin ;; |
| 7822 | [\\/$]*) |
| 7823 | # Absolute (can't be DOS-style, as IFS=:) |
| 7824 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7825 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7826 | { (exit 1); exit 1; }; } |
| 7827 | echo $f;; |
| 7828 | *) # Relative |
| 7829 | if test -f "$f"; then |
| 7830 | # Build tree |
| 7831 | echo $f |
| 7832 | elif test -f "$srcdir/$f"; then |
| 7833 | # Source tree |
| 7834 | echo $srcdir/$f |
| 7835 | else |
| 7836 | # /dev/null tree |
| 7837 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7838 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7839 | { (exit 1); exit 1; }; } |
| 7840 | fi;; |
| 7841 | esac |
| 7842 | done` || { (exit 1); exit 1; } |
| 7843 | _ACEOF |
| 7844 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7845 | sed "$ac_vpsub |
| 7846 | $extrasub |
| 7847 | _ACEOF |
| 7848 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7849 | :t |
| 7850 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7851 | s,@configure_input@,$configure_input,;t t |
| 7852 | s,@srcdir@,$ac_srcdir,;t t |
| 7853 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 7854 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7855 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 7856 | s,@builddir@,$ac_builddir,;t t |
| 7857 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 7858 | s,@top_builddir@,$ac_top_builddir,;t t |
| 7859 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 7860 | s,@INSTALL@,$ac_INSTALL,;t t |
| 7861 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7862 | rm -f $tmp/stdin |
| 7863 | if test x"$ac_file" != x-; then |
| 7864 | mv $tmp/out $ac_file |
| 7865 | else |
| 7866 | cat $tmp/out |
| 7867 | rm -f $tmp/out |
| 7868 | fi |
| 7869 | |
| 7870 | done |
| 7871 | _ACEOF |
| 7872 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7873 | |
| 7874 | # |
| 7875 | # CONFIG_HEADER section. |
| 7876 | # |
| 7877 | |
| 7878 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7879 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7880 | # |
| 7881 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 7882 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7883 | ac_dB='[ ].*$,\1#\2' |
| 7884 | ac_dC=' ' |
| 7885 | ac_dD=',;t' |
| 7886 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7887 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7888 | ac_uB='$,\1#\2define\3' |
| 7889 | ac_uC=' ' |
| 7890 | ac_uD=',;t' |
| 7891 | |
| 7892 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 7893 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7894 | case $ac_file in |
| 7895 | - | *:- | *:-:* ) # input from stdin |
| 7896 | cat >$tmp/stdin |
| 7897 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7898 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7899 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7900 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7901 | * ) ac_file_in=$ac_file.in ;; |
| 7902 | esac |
| 7903 | |
| 7904 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7905 | echo "$as_me: creating $ac_file" >&6;} |
| 7906 | |
| 7907 | # First look for the input files in the build tree, otherwise in the |
| 7908 | # src tree. |
| 7909 | ac_file_inputs=`IFS=: |
| 7910 | for f in $ac_file_in; do |
| 7911 | case $f in |
| 7912 | -) echo $tmp/stdin ;; |
| 7913 | [\\/$]*) |
| 7914 | # Absolute (can't be DOS-style, as IFS=:) |
| 7915 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7916 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7917 | { (exit 1); exit 1; }; } |
| 7918 | echo $f;; |
| 7919 | *) # Relative |
| 7920 | if test -f "$f"; then |
| 7921 | # Build tree |
| 7922 | echo $f |
| 7923 | elif test -f "$srcdir/$f"; then |
| 7924 | # Source tree |
| 7925 | echo $srcdir/$f |
| 7926 | else |
| 7927 | # /dev/null tree |
| 7928 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7929 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7930 | { (exit 1); exit 1; }; } |
| 7931 | fi;; |
| 7932 | esac |
| 7933 | done` || { (exit 1); exit 1; } |
| 7934 | # Remove the trailing spaces. |
| 7935 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 7936 | |
| 7937 | _ACEOF |
| 7938 | |
| 7939 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7940 | # `conftest.undefs', that substitutes the proper values into |
| 7941 | # config.h.in to produce config.h. The first handles `#define' |
| 7942 | # templates, and the second `#undef' templates. |
| 7943 | # And first: Protect against being on the right side of a sed subst in |
| 7944 | # config.status. Protect against being in an unquoted here document |
| 7945 | # in config.status. |
| 7946 | rm -f conftest.defines conftest.undefs |
| 7947 | # Using a here document instead of a string reduces the quoting nightmare. |
| 7948 | # Putting comments in sed scripts is not portable. |
| 7949 | # |
| 7950 | # `end' is used to avoid that the second main sed command (meant for |
| 7951 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 7952 | # See the Autoconf documentation for `clear'. |
| 7953 | cat >confdef2sed.sed <<\_ACEOF |
| 7954 | s/[\\&,]/\\&/g |
| 7955 | s,[\\$`],\\&,g |
| 7956 | t clear |
| 7957 | : clear |
| 7958 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 7959 | t end |
| 7960 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7961 | : end |
| 7962 | _ACEOF |
| 7963 | # If some macros were called several times there might be several times |
| 7964 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 7965 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 7966 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7967 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7968 | rm -f confdef2sed.sed |
| 7969 | |
| 7970 | # This sed command replaces #undef with comments. This is necessary, for |
| 7971 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7972 | # on some systems where configure will not decide to define it. |
| 7973 | cat >>conftest.undefs <<\_ACEOF |
| 7974 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7975 | _ACEOF |
| 7976 | |
| 7977 | # Break up conftest.defines because some shells have a limit on the size |
| 7978 | # of here documents, and old seds have small limits too (100 cmds). |
| 7979 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 7980 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 7981 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7982 | echo ' :' >>$CONFIG_STATUS |
| 7983 | rm -f conftest.tail |
| 7984 | while grep . conftest.defines >/dev/null |
| 7985 | do |
| 7986 | # Write a limited-size here document to $tmp/defines.sed. |
| 7987 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7988 | # Speed up: don't consider the non `#define' lines. |
| 7989 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7990 | # Work around the forget-to-reset-the-flag bug. |
| 7991 | echo 't clr' >>$CONFIG_STATUS |
| 7992 | echo ': clr' >>$CONFIG_STATUS |
| 7993 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 7994 | echo 'CEOF |
| 7995 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7996 | rm -f $tmp/in |
| 7997 | mv $tmp/out $tmp/in |
| 7998 | ' >>$CONFIG_STATUS |
| 7999 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 8000 | rm -f conftest.defines |
| 8001 | mv conftest.tail conftest.defines |
| 8002 | done |
| 8003 | rm -f conftest.defines |
| 8004 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 8005 | echo >>$CONFIG_STATUS |
| 8006 | |
| 8007 | # Break up conftest.undefs because some shells have a limit on the size |
| 8008 | # of here documents, and old seds have small limits too (100 cmds). |
| 8009 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 8010 | rm -f conftest.tail |
| 8011 | while grep . conftest.undefs >/dev/null |
| 8012 | do |
| 8013 | # Write a limited-size here document to $tmp/undefs.sed. |
| 8014 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 8015 | # Speed up: don't consider the non `#undef' |
| 8016 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 8017 | # Work around the forget-to-reset-the-flag bug. |
| 8018 | echo 't clr' >>$CONFIG_STATUS |
| 8019 | echo ': clr' >>$CONFIG_STATUS |
| 8020 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 8021 | echo 'CEOF |
| 8022 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 8023 | rm -f $tmp/in |
| 8024 | mv $tmp/out $tmp/in |
| 8025 | ' >>$CONFIG_STATUS |
| 8026 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 8027 | rm -f conftest.undefs |
| 8028 | mv conftest.tail conftest.undefs |
| 8029 | done |
| 8030 | rm -f conftest.undefs |
| 8031 | |
| 8032 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8033 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8034 | # use $as_me), people would be surprised to read: |
| 8035 | # /* config.h. Generated by config.status. */ |
| 8036 | if test x"$ac_file" = x-; then |
| 8037 | echo "/* Generated by configure. */" >$tmp/config.h |
| 8038 | else |
| 8039 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 8040 | fi |
| 8041 | cat $tmp/in >>$tmp/config.h |
| 8042 | rm -f $tmp/in |
| 8043 | if test x"$ac_file" != x-; then |
| 8044 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 8045 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 8046 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 8047 | else |
| 8048 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 8049 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8050 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8051 | X"$ac_file" : 'X\(//\)$' \| \ |
| 8052 | X"$ac_file" : 'X\(/\)' \| \ |
| 8053 | . : '\(.\)' 2>/dev/null || |
| 8054 | echo X"$ac_file" | |
| 8055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8056 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8057 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8058 | /^X\(\/\).*/{ s//\1/; q; } |
| 8059 | s/.*/./; q'` |
| 8060 | { case "$ac_dir" in |
| 8061 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8062 | *) as_incr_dir=.;; |
| 8063 | esac |
| 8064 | as_dummy="$ac_dir" |
| 8065 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8066 | case $as_mkdir_dir in |
| 8067 | # Skip DOS drivespec |
| 8068 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8069 | *) |
| 8070 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8071 | test -d "$as_incr_dir" || |
| 8072 | mkdir "$as_incr_dir" || |
| 8073 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 8074 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 8075 | { (exit 1); exit 1; }; } |
| 8076 | ;; |
| 8077 | esac |
| 8078 | done; } |
| 8079 | |
| 8080 | rm -f $ac_file |
| 8081 | mv $tmp/config.h $ac_file |
| 8082 | fi |
| 8083 | else |
| 8084 | cat $tmp/config.h |
| 8085 | rm -f $tmp/config.h |
| 8086 | fi |
| 8087 | # Run the commands associated with the file. |
| 8088 | case $ac_file in |
| 8089 | config.h ) # update the timestamp |
| 8090 | echo 'timestamp for config.h' >"./stamp-h1" |
| 8091 | ;; |
| 8092 | esac |
| 8093 | done |
| 8094 | _ACEOF |
| 8095 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8096 | |
| 8097 | # |
| 8098 | # CONFIG_COMMANDS section. |
| 8099 | # |
| 8100 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 8101 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 8102 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 8103 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 8104 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8105 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 8106 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 8107 | X"$ac_dest" : 'X\(/\)' \| \ |
| 8108 | . : '\(.\)' 2>/dev/null || |
| 8109 | echo X"$ac_dest" | |
| 8110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8111 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8112 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8113 | /^X\(\/\).*/{ s//\1/; q; } |
| 8114 | s/.*/./; q'` |
| 8115 | ac_builddir=. |
| 8116 | |
| 8117 | if test "$ac_dir" != .; then |
| 8118 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 8119 | # A "../" for each directory in $ac_dir_suffix. |
| 8120 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 8121 | else |
| 8122 | ac_dir_suffix= ac_top_builddir= |
| 8123 | fi |
| 8124 | |
| 8125 | case $srcdir in |
| 8126 | .) # No --srcdir option. We are building in place. |
| 8127 | ac_srcdir=. |
| 8128 | if test -z "$ac_top_builddir"; then |
| 8129 | ac_top_srcdir=. |
| 8130 | else |
| 8131 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 8132 | fi ;; |
| 8133 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 8134 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 8135 | ac_top_srcdir=$srcdir ;; |
| 8136 | *) # Relative path. |
| 8137 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 8138 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 8139 | esac |
| 8140 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 8141 | # absolute. |
| 8142 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 8143 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 8144 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 8145 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 8146 | |
| 8147 | |
| 8148 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 8149 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 8150 | case $ac_dest in |
| 8151 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 8152 | # Strip MF so we end up with the name of the file. |
| 8153 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 8154 | # Check whether this is an Automake generated Makefile or not. |
| 8155 | # We used to match only the files named `Makefile.in', but |
| 8156 | # some people rename them; so instead we look at the file content. |
| 8157 | # Grep'ing the first line is not enough: some people post-process |
| 8158 | # each Makefile.in and add a new line on top of each file to say so. |
| 8159 | # So let's grep whole file. |
| 8160 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 8161 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 8162 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8163 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 8164 | X"$mf" : 'X\(//\)$' \| \ |
| 8165 | X"$mf" : 'X\(/\)' \| \ |
| 8166 | . : '\(.\)' 2>/dev/null || |
| 8167 | echo X"$mf" | |
| 8168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8170 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8171 | /^X\(\/\).*/{ s//\1/; q; } |
| 8172 | s/.*/./; q'` |
| 8173 | else |
| 8174 | continue |
| 8175 | fi |
| 8176 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 8177 | # Extract the definition of DEP_FILES from the Makefile without |
| 8178 | # running `make'. |
| 8179 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 8180 | test -z "$DEPDIR" && continue |
| 8181 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 8182 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 8183 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 8184 | # We invoke sed twice because it is the simplest approach to |
| 8185 | # changing $(DEPDIR) to its actual value in the expansion. |
| 8186 | for file in `sed -n -e ' |
| 8187 | /^DEP_FILES = .*\\\\$/ { |
| 8188 | s/^DEP_FILES = // |
| 8189 | :loop |
| 8190 | s/\\\\$// |
| 8191 | p |
| 8192 | n |
| 8193 | /\\\\$/ b loop |
| 8194 | p |
| 8195 | } |
| 8196 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 8197 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 8198 | # Make sure the directory exists. |
| 8199 | test -f "$dirpart/$file" && continue |
| 8200 | fdir=`(dirname "$file") 2>/dev/null || |
| 8201 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8202 | X"$file" : 'X\(//\)[^/]' \| \ |
| 8203 | X"$file" : 'X\(//\)$' \| \ |
| 8204 | X"$file" : 'X\(/\)' \| \ |
| 8205 | . : '\(.\)' 2>/dev/null || |
| 8206 | echo X"$file" | |
| 8207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8208 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8209 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8210 | /^X\(\/\).*/{ s//\1/; q; } |
| 8211 | s/.*/./; q'` |
| 8212 | { case $dirpart/$fdir in |
| 8213 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8214 | *) as_incr_dir=.;; |
| 8215 | esac |
| 8216 | as_dummy=$dirpart/$fdir |
| 8217 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8218 | case $as_mkdir_dir in |
| 8219 | # Skip DOS drivespec |
| 8220 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8221 | *) |
| 8222 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8223 | test -d "$as_incr_dir" || |
| 8224 | mkdir "$as_incr_dir" || |
| 8225 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 |
| 8226 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} |
| 8227 | { (exit 1); exit 1; }; } |
| 8228 | ;; |
| 8229 | esac |
| 8230 | done; } |
| 8231 | |
| 8232 | # echo "creating $dirpart/$file" |
| 8233 | echo '# dummy' > "$dirpart/$file" |
| 8234 | done |
| 8235 | done |
| 8236 | ;; |
| 8237 | esac |
| 8238 | done |
| 8239 | _ACEOF |
| 8240 | |
| 8241 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8242 | |
| 8243 | { (exit 0); exit 0; } |
| 8244 | _ACEOF |
| 8245 | chmod +x $CONFIG_STATUS |
| 8246 | ac_clean_files=$ac_clean_files_save |
| 8247 | |
| 8248 | |
| 8249 | # configure is writing to config.log, and then calls config.status. |
| 8250 | # config.status does its own redirection, appending to config.log. |
| 8251 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8252 | # by configure, so config.status won't be able to write to it; its |
| 8253 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8254 | # effectively closing config.log, so it can be properly (re)opened and |
| 8255 | # appended to by config.status. When coming back to configure, we |
| 8256 | # need to make the FD available again. |
| 8257 | if test "$no_create" != yes; then |
| 8258 | ac_cs_success=: |
| 8259 | exec 5>/dev/null |
| 8260 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 8261 | exec 5>>config.log |
| 8262 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8263 | # would make configure fail if this is the last instruction. |
| 8264 | $ac_cs_success || { (exit 1); exit 1; } |
| 8265 | fi |
| 8266 | |
| 8267 | |
| 8268 | echo " |
| 8269 | zebra configuration |
| 8270 | ------------------- |
| 8271 | zebra version : ${VERSION} |
| 8272 | host operationg system : ${host_os} |
| 8273 | source code location : ${srcdir} |
| 8274 | compiler : ${CC} |
| 8275 | compiler flags : ${CFLAGS} |
| 8276 | directory for pid files : ${ac_piddir} |
| 8277 | " |