paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.53. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 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 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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=: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 26 | set -o posix |
| 27 | fi |
| 28 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 29 | # NLS nuisances. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 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; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 61 | |
| 62 | |
| 63 | # Name of the executable. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 64 | as_me=`(basename "$0") 2>/dev/null || |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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-bgp-announce, turn off BGP route announcement |
| 845 | --enable-netlink force to use Linux netlink interface |
| 846 | --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X |
| 847 | --enable-snmp enable SNMP support |
| 848 | --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon |
| 849 | --enable-nssa enable OSPF NSSA option |
| 850 | --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370) |
| 851 | --enable-ospf-te enable Traffic Engineering Extension to OSPF |
| 852 | --enable-multipath=ARG enable multipath function, ARG must be digit |
| 853 | |
| 854 | Optional Packages: |
| 855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 856 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 857 | --with-cflags Set CFLAGS for use in compilation. |
| 858 | --with-libpam use libpam for PAM support in vtysh |
| 859 | |
| 860 | Some influential environment variables: |
| 861 | CC C compiler command |
| 862 | CFLAGS C compiler flags |
| 863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 864 | nonstandard directory <lib dir> |
| 865 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 866 | headers in a nonstandard directory <include dir> |
| 867 | CPP C preprocessor |
| 868 | |
| 869 | Use these variables to override the choices made by `configure' or to help |
| 870 | it to find libraries and programs with nonstandard names/locations. |
| 871 | |
| 872 | _ACEOF |
| 873 | fi |
| 874 | |
| 875 | if test "$ac_init_help" = "recursive"; then |
| 876 | # If there are subdirs, report their specific --help. |
| 877 | ac_popdir=`pwd` |
| 878 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 879 | test -d $ac_dir || continue |
| 880 | ac_builddir=. |
| 881 | |
| 882 | if test "$ac_dir" != .; then |
| 883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 884 | # A "../" for each directory in $ac_dir_suffix. |
| 885 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 886 | else |
| 887 | ac_dir_suffix= ac_top_builddir= |
| 888 | fi |
| 889 | |
| 890 | case $srcdir in |
| 891 | .) # No --srcdir option. We are building in place. |
| 892 | ac_srcdir=. |
| 893 | if test -z "$ac_top_builddir"; then |
| 894 | ac_top_srcdir=. |
| 895 | else |
| 896 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 897 | fi ;; |
| 898 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 899 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 900 | ac_top_srcdir=$srcdir ;; |
| 901 | *) # Relative path. |
| 902 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 903 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 904 | esac |
| 905 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 906 | # absolute. |
| 907 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 908 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 909 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 910 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 911 | |
| 912 | cd $ac_dir |
| 913 | # Check for guested configure; otherwise get Cygnus style configure. |
| 914 | if test -f $ac_srcdir/configure.gnu; then |
| 915 | echo |
| 916 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 917 | elif test -f $ac_srcdir/configure; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure --help=recursive |
| 920 | elif test -f $ac_srcdir/configure.ac || |
| 921 | test -f $ac_srcdir/configure.in; then |
| 922 | echo |
| 923 | $ac_configure --help |
| 924 | else |
| 925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 926 | fi |
| 927 | cd $ac_popdir |
| 928 | done |
| 929 | fi |
| 930 | |
| 931 | test -n "$ac_init_help" && exit 0 |
| 932 | if $ac_init_version; then |
| 933 | cat <<\_ACEOF |
| 934 | |
| 935 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 936 | Free Software Foundation, Inc. |
| 937 | This configure script is free software; the Free Software Foundation |
| 938 | gives unlimited permission to copy, distribute and modify it. |
| 939 | _ACEOF |
| 940 | exit 0 |
| 941 | fi |
| 942 | exec 5>config.log |
| 943 | cat >&5 <<_ACEOF |
| 944 | This file contains any messages produced by compilers while |
| 945 | running configure, to aid debugging if configure makes a mistake. |
| 946 | |
| 947 | It was created by $as_me, which was |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 948 | generated by GNU Autoconf 2.53. Invocation command line was |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 949 | |
| 950 | $ $0 $@ |
| 951 | |
| 952 | _ACEOF |
| 953 | { |
| 954 | cat <<_ASUNAME |
| 955 | ## --------- ## |
| 956 | ## Platform. ## |
| 957 | ## --------- ## |
| 958 | |
| 959 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 960 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 961 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 962 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 963 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 964 | |
| 965 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 966 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 967 | |
| 968 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 970 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 971 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 972 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 973 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 974 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 975 | |
| 976 | _ASUNAME |
| 977 | |
| 978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 979 | for as_dir in $PATH |
| 980 | do |
| 981 | IFS=$as_save_IFS |
| 982 | test -z "$as_dir" && as_dir=. |
| 983 | echo "PATH: $as_dir" |
| 984 | done |
| 985 | |
| 986 | } >&5 |
| 987 | |
| 988 | cat >&5 <<_ACEOF |
| 989 | |
| 990 | |
| 991 | ## ----------- ## |
| 992 | ## Core tests. ## |
| 993 | ## ----------- ## |
| 994 | |
| 995 | _ACEOF |
| 996 | |
| 997 | |
| 998 | # Keep a trace of the command line. |
| 999 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1000 | # Also quote any args containing shell meta-characters. |
| 1001 | ac_configure_args= |
| 1002 | ac_sep= |
| 1003 | for ac_arg |
| 1004 | do |
| 1005 | case $ac_arg in |
| 1006 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1007 | | --no-cr | --no-c | -n ) continue ;; |
| 1008 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1009 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1010 | continue ;; |
| 1011 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1012 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1013 | esac |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 1014 | case " $ac_configure_args " in |
| 1015 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1016 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1017 | ac_sep=" " ;; |
| 1018 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1019 | # Get rid of the leading space. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1020 | done |
| 1021 | |
| 1022 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1023 | # config.log. We remove comments because anyway the quotes in there |
| 1024 | # would cause problems or look ugly. |
| 1025 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1026 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1027 | trap 'exit_status=$? |
| 1028 | # Save into config.log some information that might help in debugging. |
| 1029 | { |
| 1030 | echo |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1031 | cat <<\_ASBOX |
| 1032 | ## ---------------- ## |
| 1033 | ## Cache variables. ## |
| 1034 | ## ---------------- ## |
| 1035 | _ASBOX |
| 1036 | echo |
| 1037 | # The following way of writing the cache mishandles newlines in values, |
| 1038 | { |
| 1039 | (set) 2>&1 | |
| 1040 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1041 | *ac_space=\ *) |
| 1042 | sed -n \ |
| 1043 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1044 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1045 | ;; |
| 1046 | *) |
| 1047 | sed -n \ |
| 1048 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1049 | ;; |
| 1050 | esac; |
| 1051 | } |
| 1052 | echo |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1053 | if test -s confdefs.h; then |
| 1054 | cat <<\_ASBOX |
| 1055 | ## ----------- ## |
| 1056 | ## confdefs.h. ## |
| 1057 | ## ----------- ## |
| 1058 | _ASBOX |
| 1059 | echo |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 1060 | sed "/^$/d" confdefs.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1061 | echo |
| 1062 | fi |
| 1063 | test "$ac_signal" != 0 && |
| 1064 | echo "$as_me: caught signal $ac_signal" |
| 1065 | echo "$as_me: exit $exit_status" |
| 1066 | } >&5 |
| 1067 | rm -f core core.* *.core && |
| 1068 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1069 | exit $exit_status |
| 1070 | ' 0 |
| 1071 | for ac_signal in 1 2 13 15; do |
| 1072 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1073 | done |
| 1074 | ac_signal=0 |
| 1075 | |
| 1076 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1077 | rm -rf conftest* confdefs.h |
| 1078 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1079 | echo >confdefs.h |
| 1080 | |
| 1081 | # Predefined preprocessor variables. |
| 1082 | |
| 1083 | cat >>confdefs.h <<_ACEOF |
| 1084 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1085 | _ACEOF |
| 1086 | |
| 1087 | |
| 1088 | cat >>confdefs.h <<_ACEOF |
| 1089 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1090 | _ACEOF |
| 1091 | |
| 1092 | |
| 1093 | cat >>confdefs.h <<_ACEOF |
| 1094 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1095 | _ACEOF |
| 1096 | |
| 1097 | |
| 1098 | cat >>confdefs.h <<_ACEOF |
| 1099 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1100 | _ACEOF |
| 1101 | |
| 1102 | |
| 1103 | cat >>confdefs.h <<_ACEOF |
| 1104 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1105 | _ACEOF |
| 1106 | |
| 1107 | |
| 1108 | # Let the site file select an alternate cache file if it wants to. |
| 1109 | # Prefer explicitly selected file to automatically selected ones. |
| 1110 | if test -z "$CONFIG_SITE"; then |
| 1111 | if test "x$prefix" != xNONE; then |
| 1112 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1113 | else |
| 1114 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1115 | fi |
| 1116 | fi |
| 1117 | for ac_site_file in $CONFIG_SITE; do |
| 1118 | if test -r "$ac_site_file"; then |
| 1119 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1120 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1121 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1122 | . "$ac_site_file" |
| 1123 | fi |
| 1124 | done |
| 1125 | |
| 1126 | if test -r "$cache_file"; then |
| 1127 | # Some versions of bash will fail to source /dev/null (special |
| 1128 | # files actually), so we avoid doing that. |
| 1129 | if test -f "$cache_file"; then |
| 1130 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1131 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1132 | case $cache_file in |
| 1133 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1134 | *) . ./$cache_file;; |
| 1135 | esac |
| 1136 | fi |
| 1137 | else |
| 1138 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1139 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1140 | >$cache_file |
| 1141 | fi |
| 1142 | |
| 1143 | # Check that the precious variables saved in the cache have kept the same |
| 1144 | # value. |
| 1145 | ac_cache_corrupted=false |
| 1146 | for ac_var in `(set) 2>&1 | |
| 1147 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1148 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1149 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1150 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1151 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1152 | case $ac_old_set,$ac_new_set in |
| 1153 | set,) |
| 1154 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1155 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1156 | ac_cache_corrupted=: ;; |
| 1157 | ,set) |
| 1158 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1159 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1160 | ac_cache_corrupted=: ;; |
| 1161 | ,);; |
| 1162 | *) |
| 1163 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1164 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1165 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1166 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1167 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1168 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1169 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1170 | ac_cache_corrupted=: |
| 1171 | fi;; |
| 1172 | esac |
| 1173 | # Pass precious variables to config.status. |
| 1174 | if test "$ac_new_set" = set; then |
| 1175 | case $ac_new_val in |
| 1176 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1177 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1178 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1179 | esac |
| 1180 | case " $ac_configure_args " in |
| 1181 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1182 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1183 | esac |
| 1184 | fi |
| 1185 | done |
| 1186 | if $ac_cache_corrupted; then |
| 1187 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1188 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1189 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1190 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1191 | { (exit 1); exit 1; }; } |
| 1192 | fi |
| 1193 | |
| 1194 | ac_ext=c |
| 1195 | ac_cpp='$CPP $CPPFLAGS' |
| 1196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 1217 | am__api_version="1.6" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1218 | ac_aux_dir= |
| 1219 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1220 | if test -f $ac_dir/install-sh; then |
| 1221 | ac_aux_dir=$ac_dir |
| 1222 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1223 | break |
| 1224 | elif test -f $ac_dir/install.sh; then |
| 1225 | ac_aux_dir=$ac_dir |
| 1226 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1227 | break |
| 1228 | elif test -f $ac_dir/shtool; then |
| 1229 | ac_aux_dir=$ac_dir |
| 1230 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1231 | break |
| 1232 | fi |
| 1233 | done |
| 1234 | if test -z "$ac_aux_dir"; then |
| 1235 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1236 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1237 | { (exit 1); exit 1; }; } |
| 1238 | fi |
| 1239 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1240 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1241 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1242 | |
| 1243 | # Find a good install program. We prefer a C program (faster), |
| 1244 | # so one script is as good as another. But avoid the broken or |
| 1245 | # incompatible versions: |
| 1246 | # SysV /etc/install, /usr/sbin/install |
| 1247 | # SunOS /usr/etc/install |
| 1248 | # IRIX /sbin/install |
| 1249 | # AIX /bin/install |
| 1250 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1251 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1252 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1253 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1254 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1255 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1256 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1257 | if test -z "$INSTALL"; then |
| 1258 | if test "${ac_cv_path_install+set}" = set; then |
| 1259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1260 | else |
| 1261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1262 | for as_dir in $PATH |
| 1263 | do |
| 1264 | IFS=$as_save_IFS |
| 1265 | test -z "$as_dir" && as_dir=. |
| 1266 | # Account for people who put trailing slashes in PATH elements. |
| 1267 | case $as_dir/ in |
| 1268 | ./ | .// | /cC/* | \ |
| 1269 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1270 | /usr/ucb/* ) ;; |
| 1271 | *) |
| 1272 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1273 | # Don't use installbsd from OSF since it installs stuff as root |
| 1274 | # by default. |
| 1275 | for ac_prog in ginstall scoinst install; do |
| 1276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1277 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1278 | if test $ac_prog = install && |
| 1279 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1280 | # AIX install. It has an incompatible calling convention. |
| 1281 | : |
| 1282 | elif test $ac_prog = install && |
| 1283 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1284 | # program-specific install script used by HP pwplus--don't use. |
| 1285 | : |
| 1286 | else |
| 1287 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1288 | break 3 |
| 1289 | fi |
| 1290 | fi |
| 1291 | done |
| 1292 | done |
| 1293 | ;; |
| 1294 | esac |
| 1295 | done |
| 1296 | |
| 1297 | |
| 1298 | fi |
| 1299 | if test "${ac_cv_path_install+set}" = set; then |
| 1300 | INSTALL=$ac_cv_path_install |
| 1301 | else |
| 1302 | # As a last resort, use the slow shell script. We don't cache a |
| 1303 | # path for INSTALL within a source directory, because that will |
| 1304 | # break other packages using the cache if that directory is |
| 1305 | # removed, or if the path is relative. |
| 1306 | INSTALL=$ac_install_sh |
| 1307 | fi |
| 1308 | fi |
| 1309 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1310 | echo "${ECHO_T}$INSTALL" >&6 |
| 1311 | |
| 1312 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1313 | # It thinks the first close brace ends the variable substitution. |
| 1314 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1315 | |
| 1316 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1317 | |
| 1318 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1319 | |
| 1320 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1321 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1322 | # Just in case |
| 1323 | sleep 1 |
| 1324 | echo timestamp > conftest.file |
| 1325 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1326 | # arguments. Must try -L first in case configure is actually a |
| 1327 | # symlink; some systems play weird games with the mod time of symlinks |
| 1328 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1329 | # directory). |
| 1330 | if ( |
| 1331 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1332 | if test "$*" = "X"; then |
| 1333 | # -L didn't work. |
| 1334 | set X `ls -t $srcdir/configure conftest.file` |
| 1335 | fi |
| 1336 | rm -f conftest.file |
| 1337 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1338 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1339 | |
| 1340 | # If neither matched, then we have a broken ls. This can happen |
| 1341 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1342 | # broken ls alias from the environment. This has actually |
| 1343 | # happened. Such a system could not be considered "sane". |
| 1344 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1345 | alias in your environment" >&5 |
| 1346 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1347 | alias in your environment" >&2;} |
| 1348 | { (exit 1); exit 1; }; } |
| 1349 | fi |
| 1350 | |
| 1351 | test "$2" = conftest.file |
| 1352 | ) |
| 1353 | then |
| 1354 | # Ok. |
| 1355 | : |
| 1356 | else |
| 1357 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1358 | Check your system clock" >&5 |
| 1359 | echo "$as_me: error: newly created file is older than distributed files! |
| 1360 | Check your system clock" >&2;} |
| 1361 | { (exit 1); exit 1; }; } |
| 1362 | fi |
| 1363 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1364 | echo "${ECHO_T}yes" >&6 |
| 1365 | test "$program_prefix" != NONE && |
| 1366 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1367 | # Use a double $ so make ignores it. |
| 1368 | test "$program_suffix" != NONE && |
| 1369 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1370 | # Double any \ or $. echo might interpret backslashes. |
| 1371 | # By default was `s,x,x', remove it if useless. |
| 1372 | cat <<\_ACEOF >conftest.sed |
| 1373 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1374 | _ACEOF |
| 1375 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1376 | rm conftest.sed |
| 1377 | |
| 1378 | |
| 1379 | # expand $ac_aux_dir to an absolute path |
| 1380 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1381 | |
| 1382 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1383 | # Use eval to expand $SHELL |
| 1384 | if eval "$MISSING --run true"; then |
| 1385 | am_missing_run="$MISSING --run " |
| 1386 | else |
| 1387 | am_missing_run= |
| 1388 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1389 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1390 | fi |
| 1391 | |
| 1392 | for ac_prog in gawk mawk nawk awk |
| 1393 | do |
| 1394 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1395 | set dummy $ac_prog; ac_word=$2 |
| 1396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1398 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1400 | else |
| 1401 | if test -n "$AWK"; then |
| 1402 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1403 | else |
| 1404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1405 | for as_dir in $PATH |
| 1406 | do |
| 1407 | IFS=$as_save_IFS |
| 1408 | test -z "$as_dir" && as_dir=. |
| 1409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1410 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1411 | ac_cv_prog_AWK="$ac_prog" |
| 1412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1413 | break 2 |
| 1414 | fi |
| 1415 | done |
| 1416 | done |
| 1417 | |
| 1418 | fi |
| 1419 | fi |
| 1420 | AWK=$ac_cv_prog_AWK |
| 1421 | if test -n "$AWK"; then |
| 1422 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1423 | echo "${ECHO_T}$AWK" >&6 |
| 1424 | else |
| 1425 | echo "$as_me:$LINENO: result: no" >&5 |
| 1426 | echo "${ECHO_T}no" >&6 |
| 1427 | fi |
| 1428 | |
| 1429 | test -n "$AWK" && break |
| 1430 | done |
| 1431 | |
| 1432 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1433 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1434 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1435 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1437 | else |
| 1438 | cat >conftest.make <<\_ACEOF |
| 1439 | all: |
| 1440 | @echo 'ac_maketemp="${MAKE}"' |
| 1441 | _ACEOF |
| 1442 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1443 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1444 | if test -n "$ac_maketemp"; then |
| 1445 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1446 | else |
| 1447 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1448 | fi |
| 1449 | rm -f conftest.make |
| 1450 | fi |
| 1451 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1452 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1453 | echo "${ECHO_T}yes" >&6 |
| 1454 | SET_MAKE= |
| 1455 | else |
| 1456 | echo "$as_me:$LINENO: result: no" >&5 |
| 1457 | echo "${ECHO_T}no" >&6 |
| 1458 | SET_MAKE="MAKE=${MAKE-make}" |
| 1459 | fi |
| 1460 | |
| 1461 | # test to see if srcdir already configured |
| 1462 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1463 | test -f $srcdir/config.status; then |
| 1464 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1465 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1466 | { (exit 1); exit 1; }; } |
| 1467 | fi |
| 1468 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1469 | # Define the identity of the package. |
| 1470 | PACKAGE=zebra |
| 1471 | VERSION=0.93 |
| 1472 | |
| 1473 | |
| 1474 | cat >>confdefs.h <<_ACEOF |
| 1475 | #define PACKAGE "$PACKAGE" |
| 1476 | _ACEOF |
| 1477 | |
| 1478 | |
| 1479 | cat >>confdefs.h <<_ACEOF |
| 1480 | #define VERSION "$VERSION" |
| 1481 | _ACEOF |
| 1482 | |
| 1483 | # Some tools Automake needs. |
| 1484 | |
| 1485 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1486 | |
| 1487 | |
| 1488 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1489 | |
| 1490 | |
| 1491 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1492 | |
| 1493 | |
| 1494 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1495 | |
| 1496 | |
| 1497 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1498 | |
| 1499 | |
| 1500 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1501 | |
| 1502 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1503 | |
| 1504 | # Installed binaries are usually stripped using `strip' when the user |
| 1505 | # run `make install-strip'. However `strip' might not be the right |
| 1506 | # tool to use in cross-compilation environments, therefore Automake |
| 1507 | # will honor the `STRIP' environment variable to overrule this program. |
| 1508 | if test "$cross_compiling" != no; then |
| 1509 | if test -n "$ac_tool_prefix"; then |
| 1510 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1511 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1514 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1516 | else |
| 1517 | if test -n "$STRIP"; then |
| 1518 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1519 | else |
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1521 | for as_dir in $PATH |
| 1522 | do |
| 1523 | IFS=$as_save_IFS |
| 1524 | test -z "$as_dir" && as_dir=. |
| 1525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1527 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1529 | break 2 |
| 1530 | fi |
| 1531 | done |
| 1532 | done |
| 1533 | |
| 1534 | fi |
| 1535 | fi |
| 1536 | STRIP=$ac_cv_prog_STRIP |
| 1537 | if test -n "$STRIP"; then |
| 1538 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1539 | echo "${ECHO_T}$STRIP" >&6 |
| 1540 | else |
| 1541 | echo "$as_me:$LINENO: result: no" >&5 |
| 1542 | echo "${ECHO_T}no" >&6 |
| 1543 | fi |
| 1544 | |
| 1545 | fi |
| 1546 | if test -z "$ac_cv_prog_STRIP"; then |
| 1547 | ac_ct_STRIP=$STRIP |
| 1548 | # Extract the first word of "strip", so it can be a program name with args. |
| 1549 | set dummy strip; ac_word=$2 |
| 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1552 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1554 | else |
| 1555 | if test -n "$ac_ct_STRIP"; then |
| 1556 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1557 | else |
| 1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1559 | for as_dir in $PATH |
| 1560 | do |
| 1561 | IFS=$as_save_IFS |
| 1562 | test -z "$as_dir" && as_dir=. |
| 1563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1565 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1567 | break 2 |
| 1568 | fi |
| 1569 | done |
| 1570 | done |
| 1571 | |
| 1572 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1573 | fi |
| 1574 | fi |
| 1575 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1576 | if test -n "$ac_ct_STRIP"; then |
| 1577 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1578 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1579 | else |
| 1580 | echo "$as_me:$LINENO: result: no" >&5 |
| 1581 | echo "${ECHO_T}no" >&6 |
| 1582 | fi |
| 1583 | |
| 1584 | STRIP=$ac_ct_STRIP |
| 1585 | else |
| 1586 | STRIP="$ac_cv_prog_STRIP" |
| 1587 | fi |
| 1588 | |
| 1589 | fi |
| 1590 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1591 | |
| 1592 | # We need awk for the "check" target. The system "awk" is bad on |
| 1593 | # some platforms. |
| 1594 | |
| 1595 | |
| 1596 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 1597 | # Add the stamp file to the list of files AC keeps track of, |
| 1598 | # along with our hook. |
| 1599 | ac_config_headers="$ac_config_headers config.h" |
| 1600 | |
| 1601 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1602 | |
| 1603 | |
| 1604 | # Make sure we can run config.sub. |
| 1605 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1606 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1607 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1608 | { (exit 1); exit 1; }; } |
| 1609 | |
| 1610 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1611 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1612 | if test "${ac_cv_build+set}" = set; then |
| 1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1614 | else |
| 1615 | ac_cv_build_alias=$build_alias |
| 1616 | test -z "$ac_cv_build_alias" && |
| 1617 | ac_cv_build_alias=`$ac_config_guess` |
| 1618 | test -z "$ac_cv_build_alias" && |
| 1619 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1620 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1621 | { (exit 1); exit 1; }; } |
| 1622 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1623 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1624 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1625 | { (exit 1); exit 1; }; } |
| 1626 | |
| 1627 | fi |
| 1628 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1629 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1630 | build=$ac_cv_build |
| 1631 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1632 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1633 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1634 | |
| 1635 | |
| 1636 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1637 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_host+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | ac_cv_host_alias=$host_alias |
| 1642 | test -z "$ac_cv_host_alias" && |
| 1643 | ac_cv_host_alias=$ac_cv_build_alias |
| 1644 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1645 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1646 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1647 | { (exit 1); exit 1; }; } |
| 1648 | |
| 1649 | fi |
| 1650 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1651 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1652 | host=$ac_cv_host |
| 1653 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1654 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1655 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | # Check whether --with-cflags or --without-cflags was given. |
| 1661 | if test "${with_cflags+set}" = set; then |
| 1662 | withval="$with_cflags" |
| 1663 | |
| 1664 | fi; |
| 1665 | if test "x$with_cflags" != "x" ; then |
| 1666 | CFLAGS="$with_cflags" ; cflags_specified=yes ; |
| 1667 | elif test -n "$CFLAGS" ; then |
| 1668 | cflags_specified=yes ; |
| 1669 | fi |
| 1670 | |
| 1671 | ac_ext=c |
| 1672 | ac_cpp='$CPP $CPPFLAGS' |
| 1673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1676 | if test -n "$ac_tool_prefix"; then |
| 1677 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1678 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1681 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1683 | else |
| 1684 | if test -n "$CC"; then |
| 1685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1686 | else |
| 1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1688 | for as_dir in $PATH |
| 1689 | do |
| 1690 | IFS=$as_save_IFS |
| 1691 | test -z "$as_dir" && as_dir=. |
| 1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1694 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1696 | break 2 |
| 1697 | fi |
| 1698 | done |
| 1699 | done |
| 1700 | |
| 1701 | fi |
| 1702 | fi |
| 1703 | CC=$ac_cv_prog_CC |
| 1704 | if test -n "$CC"; then |
| 1705 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1706 | echo "${ECHO_T}$CC" >&6 |
| 1707 | else |
| 1708 | echo "$as_me:$LINENO: result: no" >&5 |
| 1709 | echo "${ECHO_T}no" >&6 |
| 1710 | fi |
| 1711 | |
| 1712 | fi |
| 1713 | if test -z "$ac_cv_prog_CC"; then |
| 1714 | ac_ct_CC=$CC |
| 1715 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1716 | set dummy gcc; ac_word=$2 |
| 1717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1721 | else |
| 1722 | if test -n "$ac_ct_CC"; then |
| 1723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1724 | else |
| 1725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1726 | for as_dir in $PATH |
| 1727 | do |
| 1728 | IFS=$as_save_IFS |
| 1729 | test -z "$as_dir" && as_dir=. |
| 1730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1732 | ac_cv_prog_ac_ct_CC="gcc" |
| 1733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1734 | break 2 |
| 1735 | fi |
| 1736 | done |
| 1737 | done |
| 1738 | |
| 1739 | fi |
| 1740 | fi |
| 1741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1742 | if test -n "$ac_ct_CC"; then |
| 1743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1744 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1745 | else |
| 1746 | echo "$as_me:$LINENO: result: no" >&5 |
| 1747 | echo "${ECHO_T}no" >&6 |
| 1748 | fi |
| 1749 | |
| 1750 | CC=$ac_ct_CC |
| 1751 | else |
| 1752 | CC="$ac_cv_prog_CC" |
| 1753 | fi |
| 1754 | |
| 1755 | if test -z "$CC"; then |
| 1756 | if test -n "$ac_tool_prefix"; then |
| 1757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1761 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1763 | else |
| 1764 | if test -n "$CC"; then |
| 1765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1766 | else |
| 1767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1768 | for as_dir in $PATH |
| 1769 | do |
| 1770 | IFS=$as_save_IFS |
| 1771 | test -z "$as_dir" && as_dir=. |
| 1772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1776 | break 2 |
| 1777 | fi |
| 1778 | done |
| 1779 | done |
| 1780 | |
| 1781 | fi |
| 1782 | fi |
| 1783 | CC=$ac_cv_prog_CC |
| 1784 | if test -n "$CC"; then |
| 1785 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1786 | echo "${ECHO_T}$CC" >&6 |
| 1787 | else |
| 1788 | echo "$as_me:$LINENO: result: no" >&5 |
| 1789 | echo "${ECHO_T}no" >&6 |
| 1790 | fi |
| 1791 | |
| 1792 | fi |
| 1793 | if test -z "$ac_cv_prog_CC"; then |
| 1794 | ac_ct_CC=$CC |
| 1795 | # Extract the first word of "cc", so it can be a program name with args. |
| 1796 | set dummy cc; ac_word=$2 |
| 1797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1801 | else |
| 1802 | if test -n "$ac_ct_CC"; then |
| 1803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1804 | else |
| 1805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1806 | for as_dir in $PATH |
| 1807 | do |
| 1808 | IFS=$as_save_IFS |
| 1809 | test -z "$as_dir" && as_dir=. |
| 1810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1812 | ac_cv_prog_ac_ct_CC="cc" |
| 1813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1814 | break 2 |
| 1815 | fi |
| 1816 | done |
| 1817 | done |
| 1818 | |
| 1819 | fi |
| 1820 | fi |
| 1821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1822 | if test -n "$ac_ct_CC"; then |
| 1823 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1824 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1825 | else |
| 1826 | echo "$as_me:$LINENO: result: no" >&5 |
| 1827 | echo "${ECHO_T}no" >&6 |
| 1828 | fi |
| 1829 | |
| 1830 | CC=$ac_ct_CC |
| 1831 | else |
| 1832 | CC="$ac_cv_prog_CC" |
| 1833 | fi |
| 1834 | |
| 1835 | fi |
| 1836 | if test -z "$CC"; then |
| 1837 | # Extract the first word of "cc", so it can be a program name with args. |
| 1838 | set dummy cc; ac_word=$2 |
| 1839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1841 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1843 | else |
| 1844 | if test -n "$CC"; then |
| 1845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1846 | else |
| 1847 | ac_prog_rejected=no |
| 1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1849 | for as_dir in $PATH |
| 1850 | do |
| 1851 | IFS=$as_save_IFS |
| 1852 | test -z "$as_dir" && as_dir=. |
| 1853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1856 | ac_prog_rejected=yes |
| 1857 | continue |
| 1858 | fi |
| 1859 | ac_cv_prog_CC="cc" |
| 1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1861 | break 2 |
| 1862 | fi |
| 1863 | done |
| 1864 | done |
| 1865 | |
| 1866 | if test $ac_prog_rejected = yes; then |
| 1867 | # We found a bogon in the path, so make sure we never use it. |
| 1868 | set dummy $ac_cv_prog_CC |
| 1869 | shift |
| 1870 | if test $# != 0; then |
| 1871 | # We chose a different compiler from the bogus one. |
| 1872 | # However, it has the same basename, so the bogon will be chosen |
| 1873 | # first if we set CC to just the basename; use the full file name. |
| 1874 | shift |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 1875 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1876 | shift |
| 1877 | ac_cv_prog_CC="$@" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | fi |
| 1880 | fi |
| 1881 | fi |
| 1882 | CC=$ac_cv_prog_CC |
| 1883 | if test -n "$CC"; then |
| 1884 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1885 | echo "${ECHO_T}$CC" >&6 |
| 1886 | else |
| 1887 | echo "$as_me:$LINENO: result: no" >&5 |
| 1888 | echo "${ECHO_T}no" >&6 |
| 1889 | fi |
| 1890 | |
| 1891 | fi |
| 1892 | if test -z "$CC"; then |
| 1893 | if test -n "$ac_tool_prefix"; then |
| 1894 | for ac_prog in cl |
| 1895 | do |
| 1896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1900 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1902 | else |
| 1903 | if test -n "$CC"; then |
| 1904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1905 | else |
| 1906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1907 | for as_dir in $PATH |
| 1908 | do |
| 1909 | IFS=$as_save_IFS |
| 1910 | test -z "$as_dir" && as_dir=. |
| 1911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1915 | break 2 |
| 1916 | fi |
| 1917 | done |
| 1918 | done |
| 1919 | |
| 1920 | fi |
| 1921 | fi |
| 1922 | CC=$ac_cv_prog_CC |
| 1923 | if test -n "$CC"; then |
| 1924 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1925 | echo "${ECHO_T}$CC" >&6 |
| 1926 | else |
| 1927 | echo "$as_me:$LINENO: result: no" >&5 |
| 1928 | echo "${ECHO_T}no" >&6 |
| 1929 | fi |
| 1930 | |
| 1931 | test -n "$CC" && break |
| 1932 | done |
| 1933 | fi |
| 1934 | if test -z "$CC"; then |
| 1935 | ac_ct_CC=$CC |
| 1936 | for ac_prog in cl |
| 1937 | do |
| 1938 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1939 | set dummy $ac_prog; ac_word=$2 |
| 1940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1944 | else |
| 1945 | if test -n "$ac_ct_CC"; then |
| 1946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1947 | else |
| 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1949 | for as_dir in $PATH |
| 1950 | do |
| 1951 | IFS=$as_save_IFS |
| 1952 | test -z "$as_dir" && as_dir=. |
| 1953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1955 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1957 | break 2 |
| 1958 | fi |
| 1959 | done |
| 1960 | done |
| 1961 | |
| 1962 | fi |
| 1963 | fi |
| 1964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1965 | if test -n "$ac_ct_CC"; then |
| 1966 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1967 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1968 | else |
| 1969 | echo "$as_me:$LINENO: result: no" >&5 |
| 1970 | echo "${ECHO_T}no" >&6 |
| 1971 | fi |
| 1972 | |
| 1973 | test -n "$ac_ct_CC" && break |
| 1974 | done |
| 1975 | |
| 1976 | CC=$ac_ct_CC |
| 1977 | fi |
| 1978 | |
| 1979 | fi |
| 1980 | |
| 1981 | |
| 1982 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1983 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1984 | { (exit 1); exit 1; }; } |
| 1985 | |
| 1986 | # Provide some information about the compiler. |
| 1987 | echo "$as_me:$LINENO:" \ |
| 1988 | "checking for C compiler version" >&5 |
| 1989 | ac_compiler=`set X $ac_compile; echo $2` |
| 1990 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1991 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1992 | ac_status=$? |
| 1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1994 | (exit $ac_status); } |
| 1995 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1996 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1997 | ac_status=$? |
| 1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1999 | (exit $ac_status); } |
| 2000 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2001 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2002 | ac_status=$? |
| 2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2004 | (exit $ac_status); } |
| 2005 | |
| 2006 | cat >conftest.$ac_ext <<_ACEOF |
| 2007 | #line $LINENO "configure" |
| 2008 | #include "confdefs.h" |
| 2009 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2010 | #ifdef F77_DUMMY_MAIN |
| 2011 | # ifdef __cplusplus |
| 2012 | extern "C" |
| 2013 | # endif |
| 2014 | int F77_DUMMY_MAIN() { return 1; } |
| 2015 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2016 | int |
| 2017 | main () |
| 2018 | { |
| 2019 | |
| 2020 | ; |
| 2021 | return 0; |
| 2022 | } |
| 2023 | _ACEOF |
| 2024 | ac_clean_files_save=$ac_clean_files |
| 2025 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2026 | # Try to create an executable without -o first, disregard a.out. |
| 2027 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2028 | # of exeext. |
| 2029 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2030 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2031 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2032 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2033 | (eval $ac_link_default) 2>&5 |
| 2034 | ac_status=$? |
| 2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2036 | (exit $ac_status); }; then |
| 2037 | # Find the output, starting from the most likely. This scheme is |
| 2038 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2039 | # resort. |
| 2040 | |
| 2041 | # Be careful to initialize this variable, since it used to be cached. |
| 2042 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2043 | ac_cv_exeext= |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2044 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2045 | ls a.out conftest 2>/dev/null; |
| 2046 | ls a.* conftest.* 2>/dev/null`; do |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2047 | case $ac_file in |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2048 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2049 | a.out ) # We found the default executable, but exeext='' is most |
| 2050 | # certainly right. |
| 2051 | break;; |
| 2052 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2053 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2054 | export ac_cv_exeext |
| 2055 | break;; |
| 2056 | * ) break;; |
| 2057 | esac |
| 2058 | done |
| 2059 | else |
| 2060 | echo "$as_me: failed program was:" >&5 |
| 2061 | cat conftest.$ac_ext >&5 |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2062 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2063 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2064 | { (exit 77); exit 77; }; } |
| 2065 | fi |
| 2066 | |
| 2067 | ac_exeext=$ac_cv_exeext |
| 2068 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2069 | echo "${ECHO_T}$ac_file" >&6 |
| 2070 | |
| 2071 | # Check the compiler produces executables we can run. If not, either |
| 2072 | # the compiler is broken, or we cross compile. |
| 2073 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2074 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2075 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2076 | # If not cross compiling, check that we can run a simple program. |
| 2077 | if test "$cross_compiling" != yes; then |
| 2078 | if { ac_try='./$ac_file' |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2080 | (eval $ac_try) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); }; }; then |
| 2084 | cross_compiling=no |
| 2085 | else |
| 2086 | if test "$cross_compiling" = maybe; then |
| 2087 | cross_compiling=yes |
| 2088 | else |
| 2089 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2090 | If you meant to cross compile, use \`--host'." >&5 |
| 2091 | echo "$as_me: error: cannot run C compiled programs. |
| 2092 | If you meant to cross compile, use \`--host'." >&2;} |
| 2093 | { (exit 1); exit 1; }; } |
| 2094 | fi |
| 2095 | fi |
| 2096 | fi |
| 2097 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2098 | echo "${ECHO_T}yes" >&6 |
| 2099 | |
| 2100 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2101 | ac_clean_files=$ac_clean_files_save |
| 2102 | # Check the compiler produces executables we can run. If not, either |
| 2103 | # the compiler is broken, or we cross compile. |
| 2104 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2105 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2106 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2107 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2108 | |
| 2109 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2110 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2112 | (eval $ac_link) 2>&5 |
| 2113 | ac_status=$? |
| 2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2115 | (exit $ac_status); }; then |
| 2116 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2117 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2118 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2119 | # `rm'. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2120 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2121 | case $ac_file in |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2122 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2123 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2124 | export ac_cv_exeext |
| 2125 | break;; |
| 2126 | * ) break;; |
| 2127 | esac |
| 2128 | done |
| 2129 | else |
| 2130 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2131 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2132 | { (exit 1); exit 1; }; } |
| 2133 | fi |
| 2134 | |
| 2135 | rm -f conftest$ac_cv_exeext |
| 2136 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2137 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2138 | |
| 2139 | rm -f conftest.$ac_ext |
| 2140 | EXEEXT=$ac_cv_exeext |
| 2141 | ac_exeext=$EXEEXT |
| 2142 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2143 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2144 | if test "${ac_cv_objext+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2146 | else |
| 2147 | cat >conftest.$ac_ext <<_ACEOF |
| 2148 | #line $LINENO "configure" |
| 2149 | #include "confdefs.h" |
| 2150 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2151 | #ifdef F77_DUMMY_MAIN |
| 2152 | # ifdef __cplusplus |
| 2153 | extern "C" |
| 2154 | # endif |
| 2155 | int F77_DUMMY_MAIN() { return 1; } |
| 2156 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2157 | int |
| 2158 | main () |
| 2159 | { |
| 2160 | |
| 2161 | ; |
| 2162 | return 0; |
| 2163 | } |
| 2164 | _ACEOF |
| 2165 | rm -f conftest.o conftest.obj |
| 2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2167 | (eval $ac_compile) 2>&5 |
| 2168 | ac_status=$? |
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2170 | (exit $ac_status); }; then |
| 2171 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2172 | case $ac_file in |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2173 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2174 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2175 | break;; |
| 2176 | esac |
| 2177 | done |
| 2178 | else |
| 2179 | echo "$as_me: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
| 2181 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2182 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2183 | { (exit 1); exit 1; }; } |
| 2184 | fi |
| 2185 | |
| 2186 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2187 | fi |
| 2188 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2189 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2190 | OBJEXT=$ac_cv_objext |
| 2191 | ac_objext=$OBJEXT |
| 2192 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2193 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2194 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2196 | else |
| 2197 | cat >conftest.$ac_ext <<_ACEOF |
| 2198 | #line $LINENO "configure" |
| 2199 | #include "confdefs.h" |
| 2200 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2201 | #ifdef F77_DUMMY_MAIN |
| 2202 | # ifdef __cplusplus |
| 2203 | extern "C" |
| 2204 | # endif |
| 2205 | int F77_DUMMY_MAIN() { return 1; } |
| 2206 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2207 | int |
| 2208 | main () |
| 2209 | { |
| 2210 | #ifndef __GNUC__ |
| 2211 | choke me |
| 2212 | #endif |
| 2213 | |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | rm -f conftest.$ac_objext |
| 2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2220 | (eval $ac_compile) 2>&5 |
| 2221 | ac_status=$? |
| 2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2223 | (exit $ac_status); } && |
| 2224 | { ac_try='test -s conftest.$ac_objext' |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2226 | (eval $ac_try) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); }; }; then |
| 2230 | ac_compiler_gnu=yes |
| 2231 | else |
| 2232 | echo "$as_me: failed program was:" >&5 |
| 2233 | cat conftest.$ac_ext >&5 |
| 2234 | ac_compiler_gnu=no |
| 2235 | fi |
| 2236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2237 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2238 | |
| 2239 | fi |
| 2240 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2241 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2242 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2243 | ac_test_CFLAGS=${CFLAGS+set} |
| 2244 | ac_save_CFLAGS=$CFLAGS |
| 2245 | CFLAGS="-g" |
| 2246 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2247 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2248 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2250 | else |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
| 2252 | #line $LINENO "configure" |
| 2253 | #include "confdefs.h" |
| 2254 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2255 | #ifdef F77_DUMMY_MAIN |
| 2256 | # ifdef __cplusplus |
| 2257 | extern "C" |
| 2258 | # endif |
| 2259 | int F77_DUMMY_MAIN() { return 1; } |
| 2260 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2261 | int |
| 2262 | main () |
| 2263 | { |
| 2264 | |
| 2265 | ; |
| 2266 | return 0; |
| 2267 | } |
| 2268 | _ACEOF |
| 2269 | rm -f conftest.$ac_objext |
| 2270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2271 | (eval $ac_compile) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); } && |
| 2275 | { ac_try='test -s conftest.$ac_objext' |
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2277 | (eval $ac_try) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; }; then |
| 2281 | ac_cv_prog_cc_g=yes |
| 2282 | else |
| 2283 | echo "$as_me: failed program was:" >&5 |
| 2284 | cat conftest.$ac_ext >&5 |
| 2285 | ac_cv_prog_cc_g=no |
| 2286 | fi |
| 2287 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2288 | fi |
| 2289 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2290 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2291 | if test "$ac_test_CFLAGS" = set; then |
| 2292 | CFLAGS=$ac_save_CFLAGS |
| 2293 | elif test $ac_cv_prog_cc_g = yes; then |
| 2294 | if test "$GCC" = yes; then |
| 2295 | CFLAGS="-g -O2" |
| 2296 | else |
| 2297 | CFLAGS="-g" |
| 2298 | fi |
| 2299 | else |
| 2300 | if test "$GCC" = yes; then |
| 2301 | CFLAGS="-O2" |
| 2302 | else |
| 2303 | CFLAGS= |
| 2304 | fi |
| 2305 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2306 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2307 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2308 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2309 | # the declaration of exit, since it's the most demanding environment. |
| 2310 | cat >conftest.$ac_ext <<_ACEOF |
| 2311 | #ifndef __cplusplus |
| 2312 | choke me |
| 2313 | #endif |
| 2314 | _ACEOF |
| 2315 | rm -f conftest.$ac_objext |
| 2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2317 | (eval $ac_compile) 2>&5 |
| 2318 | ac_status=$? |
| 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2320 | (exit $ac_status); } && |
| 2321 | { ac_try='test -s conftest.$ac_objext' |
| 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2323 | (eval $ac_try) 2>&5 |
| 2324 | ac_status=$? |
| 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2326 | (exit $ac_status); }; }; then |
| 2327 | for ac_declaration in \ |
| 2328 | ''\ |
| 2329 | '#include <stdlib.h>' \ |
| 2330 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2331 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2332 | 'extern "C" void exit (int) throw ();' \ |
| 2333 | 'extern "C" void exit (int);' \ |
| 2334 | 'void exit (int);' |
| 2335 | do |
| 2336 | cat >conftest.$ac_ext <<_ACEOF |
| 2337 | #line $LINENO "configure" |
| 2338 | #include "confdefs.h" |
| 2339 | #include <stdlib.h> |
| 2340 | $ac_declaration |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2341 | #ifdef F77_DUMMY_MAIN |
| 2342 | # ifdef __cplusplus |
| 2343 | extern "C" |
| 2344 | # endif |
| 2345 | int F77_DUMMY_MAIN() { return 1; } |
| 2346 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2347 | int |
| 2348 | main () |
| 2349 | { |
| 2350 | exit (42); |
| 2351 | ; |
| 2352 | return 0; |
| 2353 | } |
| 2354 | _ACEOF |
| 2355 | rm -f conftest.$ac_objext |
| 2356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2357 | (eval $ac_compile) 2>&5 |
| 2358 | ac_status=$? |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); } && |
| 2361 | { ac_try='test -s conftest.$ac_objext' |
| 2362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2363 | (eval $ac_try) 2>&5 |
| 2364 | ac_status=$? |
| 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2366 | (exit $ac_status); }; }; then |
| 2367 | : |
| 2368 | else |
| 2369 | echo "$as_me: failed program was:" >&5 |
| 2370 | cat conftest.$ac_ext >&5 |
| 2371 | continue |
| 2372 | fi |
| 2373 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2374 | cat >conftest.$ac_ext <<_ACEOF |
| 2375 | #line $LINENO "configure" |
| 2376 | #include "confdefs.h" |
| 2377 | $ac_declaration |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2378 | #ifdef F77_DUMMY_MAIN |
| 2379 | # ifdef __cplusplus |
| 2380 | extern "C" |
| 2381 | # endif |
| 2382 | int F77_DUMMY_MAIN() { return 1; } |
| 2383 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2384 | int |
| 2385 | main () |
| 2386 | { |
| 2387 | exit (42); |
| 2388 | ; |
| 2389 | return 0; |
| 2390 | } |
| 2391 | _ACEOF |
| 2392 | rm -f conftest.$ac_objext |
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2394 | (eval $ac_compile) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } && |
| 2398 | { ac_try='test -s conftest.$ac_objext' |
| 2399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2400 | (eval $ac_try) 2>&5 |
| 2401 | ac_status=$? |
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2403 | (exit $ac_status); }; }; then |
| 2404 | break |
| 2405 | else |
| 2406 | echo "$as_me: failed program was:" >&5 |
| 2407 | cat conftest.$ac_ext >&5 |
| 2408 | fi |
| 2409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2410 | done |
| 2411 | rm -f conftest* |
| 2412 | if test -n "$ac_declaration"; then |
| 2413 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2414 | echo $ac_declaration >>confdefs.h |
| 2415 | echo '#endif' >>confdefs.h |
| 2416 | fi |
| 2417 | |
| 2418 | else |
| 2419 | echo "$as_me: failed program was:" >&5 |
| 2420 | cat conftest.$ac_ext >&5 |
| 2421 | fi |
| 2422 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2423 | ac_ext=c |
| 2424 | ac_cpp='$CPP $CPPFLAGS' |
| 2425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2428 | rm -f .deps 2>/dev/null |
| 2429 | mkdir .deps 2>/dev/null |
| 2430 | if test -d .deps; then |
| 2431 | DEPDIR=.deps |
| 2432 | else |
| 2433 | # MS-DOS does not allow filenames that begin with a dot. |
| 2434 | DEPDIR=_deps |
| 2435 | fi |
| 2436 | rmdir .deps 2>/dev/null |
| 2437 | |
| 2438 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2439 | ac_config_commands="$ac_config_commands depfiles" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2440 | |
| 2441 | |
| 2442 | am_make=${MAKE-make} |
| 2443 | cat > confinc << 'END' |
| 2444 | doit: |
| 2445 | @echo done |
| 2446 | END |
| 2447 | # If we don't find an include directive, just comment out the code. |
| 2448 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2449 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2450 | am__include="#" |
| 2451 | am__quote= |
| 2452 | _am_result=none |
| 2453 | # First try GNU make style include. |
| 2454 | echo "include confinc" > confmf |
| 2455 | # We grep out `Entering directory' and `Leaving directory' |
| 2456 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2457 | # In particular we don't look at `^make:' because GNU make might |
| 2458 | # be invoked under some other name (usually "gmake"), in which |
| 2459 | # case it prints its new name instead of `make'. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2460 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2461 | am__include=include |
| 2462 | am__quote= |
| 2463 | _am_result=GNU |
| 2464 | fi |
| 2465 | # Now try BSD make style include. |
| 2466 | if test "$am__include" = "#"; then |
| 2467 | echo '.include "confinc"' > confmf |
| 2468 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2469 | am__include=.include |
| 2470 | am__quote="\"" |
| 2471 | _am_result=BSD |
| 2472 | fi |
| 2473 | fi |
| 2474 | |
| 2475 | |
| 2476 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2477 | echo "${ECHO_T}$_am_result" >&6 |
| 2478 | rm -f confinc confmf |
| 2479 | |
| 2480 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2481 | if test "${enable_dependency_tracking+set}" = set; then |
| 2482 | enableval="$enable_dependency_tracking" |
| 2483 | |
| 2484 | fi; |
| 2485 | if test "x$enable_dependency_tracking" != xno; then |
| 2486 | am_depcomp="$ac_aux_dir/depcomp" |
| 2487 | AMDEPBACKSLASH='\' |
| 2488 | fi |
| 2489 | |
| 2490 | |
| 2491 | if test "x$enable_dependency_tracking" != xno; then |
| 2492 | AMDEP_TRUE= |
| 2493 | AMDEP_FALSE='#' |
| 2494 | else |
| 2495 | AMDEP_TRUE='#' |
| 2496 | AMDEP_FALSE= |
| 2497 | fi |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | depcc="$CC" am_compiler_list= |
| 2503 | |
| 2504 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2505 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2506 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2508 | else |
| 2509 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2510 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2511 | # making bogus files that we don't know about and never remove. For |
| 2512 | # instance it was reported that on HP-UX the gcc test will end up |
| 2513 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2514 | # in D'. |
| 2515 | mkdir conftest.dir |
| 2516 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2517 | # using a relative directory. |
| 2518 | cp "$am_depcomp" conftest.dir |
| 2519 | cd conftest.dir |
| 2520 | |
| 2521 | am_cv_CC_dependencies_compiler_type=none |
| 2522 | if test "$am_compiler_list" = ""; then |
| 2523 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2524 | fi |
| 2525 | for depmode in $am_compiler_list; do |
| 2526 | # We need to recreate these files for each test, as the compiler may |
| 2527 | # overwrite some of them when testing with obscure command lines. |
| 2528 | # This happens at least with the AIX C compiler. |
| 2529 | echo '#include "conftest.h"' > conftest.c |
| 2530 | echo 'int i;' > conftest.h |
| 2531 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2532 | |
| 2533 | case $depmode in |
| 2534 | nosideeffect) |
| 2535 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2536 | # only be used when explicitly requested |
| 2537 | if test "x$enable_dependency_tracking" = xyes; then |
| 2538 | continue |
| 2539 | else |
| 2540 | break |
| 2541 | fi |
| 2542 | ;; |
| 2543 | none) break ;; |
| 2544 | esac |
| 2545 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2546 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2547 | # handle `-M -o', and we need to detect this. |
| 2548 | if depmode=$depmode \ |
| 2549 | source=conftest.c object=conftest.o \ |
| 2550 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2551 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2552 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2553 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2554 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2555 | break |
| 2556 | fi |
| 2557 | done |
| 2558 | |
| 2559 | cd .. |
| 2560 | rm -rf conftest.dir |
| 2561 | else |
| 2562 | am_cv_CC_dependencies_compiler_type=none |
| 2563 | fi |
| 2564 | |
| 2565 | fi |
| 2566 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2567 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2568 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2569 | |
| 2570 | |
| 2571 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2572 | if test "x$cflags_specified" = "x" ; then |
| 2573 | CFLAGS="$CFLAGS -Wall" |
| 2574 | fi |
| 2575 | |
| 2576 | ac_ext=c |
| 2577 | ac_cpp='$CPP $CPPFLAGS' |
| 2578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2581 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2582 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2583 | # On Suns, sometimes $CPP names a directory. |
| 2584 | if test -n "$CPP" && test -d "$CPP"; then |
| 2585 | CPP= |
| 2586 | fi |
| 2587 | if test -z "$CPP"; then |
| 2588 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2590 | else |
| 2591 | # Double quotes because CPP needs to be expanded |
| 2592 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2593 | do |
| 2594 | ac_preproc_ok=false |
| 2595 | for ac_c_preproc_warn_flag in '' yes |
| 2596 | do |
| 2597 | # Use a header file that comes with gcc, so configuring glibc |
| 2598 | # with a fresh cross-compiler works. |
| 2599 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2600 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | #line $LINENO "configure" |
| 2603 | #include "confdefs.h" |
| 2604 | #include <assert.h> |
| 2605 | Syntax error |
| 2606 | _ACEOF |
| 2607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2609 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2610 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2611 | rm -f conftest.er1 |
| 2612 | cat conftest.err >&5 |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); } >/dev/null; then |
| 2615 | if test -s conftest.err; then |
| 2616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2617 | else |
| 2618 | ac_cpp_err= |
| 2619 | fi |
| 2620 | else |
| 2621 | ac_cpp_err=yes |
| 2622 | fi |
| 2623 | if test -z "$ac_cpp_err"; then |
| 2624 | : |
| 2625 | else |
| 2626 | echo "$as_me: failed program was:" >&5 |
| 2627 | cat conftest.$ac_ext >&5 |
| 2628 | # Broken: fails on valid input. |
| 2629 | continue |
| 2630 | fi |
| 2631 | rm -f conftest.err conftest.$ac_ext |
| 2632 | |
| 2633 | # OK, works on sane cases. Now check whether non-existent headers |
| 2634 | # can be detected and how. |
| 2635 | cat >conftest.$ac_ext <<_ACEOF |
| 2636 | #line $LINENO "configure" |
| 2637 | #include "confdefs.h" |
| 2638 | #include <ac_nonexistent.h> |
| 2639 | _ACEOF |
| 2640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2642 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2643 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2644 | rm -f conftest.er1 |
| 2645 | cat conftest.err >&5 |
| 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 | (exit $ac_status); } >/dev/null; then |
| 2648 | if test -s conftest.err; then |
| 2649 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2650 | else |
| 2651 | ac_cpp_err= |
| 2652 | fi |
| 2653 | else |
| 2654 | ac_cpp_err=yes |
| 2655 | fi |
| 2656 | if test -z "$ac_cpp_err"; then |
| 2657 | # Broken: success on invalid input. |
| 2658 | continue |
| 2659 | else |
| 2660 | echo "$as_me: failed program was:" >&5 |
| 2661 | cat conftest.$ac_ext >&5 |
| 2662 | # Passes both tests. |
| 2663 | ac_preproc_ok=: |
| 2664 | break |
| 2665 | fi |
| 2666 | rm -f conftest.err conftest.$ac_ext |
| 2667 | |
| 2668 | done |
| 2669 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2670 | rm -f conftest.err conftest.$ac_ext |
| 2671 | if $ac_preproc_ok; then |
| 2672 | break |
| 2673 | fi |
| 2674 | |
| 2675 | done |
| 2676 | ac_cv_prog_CPP=$CPP |
| 2677 | |
| 2678 | fi |
| 2679 | CPP=$ac_cv_prog_CPP |
| 2680 | else |
| 2681 | ac_cv_prog_CPP=$CPP |
| 2682 | fi |
| 2683 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2684 | echo "${ECHO_T}$CPP" >&6 |
| 2685 | ac_preproc_ok=false |
| 2686 | for ac_c_preproc_warn_flag in '' yes |
| 2687 | do |
| 2688 | # Use a header file that comes with gcc, so configuring glibc |
| 2689 | # with a fresh cross-compiler works. |
| 2690 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2691 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2692 | cat >conftest.$ac_ext <<_ACEOF |
| 2693 | #line $LINENO "configure" |
| 2694 | #include "confdefs.h" |
| 2695 | #include <assert.h> |
| 2696 | Syntax error |
| 2697 | _ACEOF |
| 2698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2700 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2701 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); } >/dev/null; then |
| 2706 | if test -s conftest.err; then |
| 2707 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2708 | else |
| 2709 | ac_cpp_err= |
| 2710 | fi |
| 2711 | else |
| 2712 | ac_cpp_err=yes |
| 2713 | fi |
| 2714 | if test -z "$ac_cpp_err"; then |
| 2715 | : |
| 2716 | else |
| 2717 | echo "$as_me: failed program was:" >&5 |
| 2718 | cat conftest.$ac_ext >&5 |
| 2719 | # Broken: fails on valid input. |
| 2720 | continue |
| 2721 | fi |
| 2722 | rm -f conftest.err conftest.$ac_ext |
| 2723 | |
| 2724 | # OK, works on sane cases. Now check whether non-existent headers |
| 2725 | # can be detected and how. |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
| 2727 | #line $LINENO "configure" |
| 2728 | #include "confdefs.h" |
| 2729 | #include <ac_nonexistent.h> |
| 2730 | _ACEOF |
| 2731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2733 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 2734 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2735 | rm -f conftest.er1 |
| 2736 | cat conftest.err >&5 |
| 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2738 | (exit $ac_status); } >/dev/null; then |
| 2739 | if test -s conftest.err; then |
| 2740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2741 | else |
| 2742 | ac_cpp_err= |
| 2743 | fi |
| 2744 | else |
| 2745 | ac_cpp_err=yes |
| 2746 | fi |
| 2747 | if test -z "$ac_cpp_err"; then |
| 2748 | # Broken: success on invalid input. |
| 2749 | continue |
| 2750 | else |
| 2751 | echo "$as_me: failed program was:" >&5 |
| 2752 | cat conftest.$ac_ext >&5 |
| 2753 | # Passes both tests. |
| 2754 | ac_preproc_ok=: |
| 2755 | break |
| 2756 | fi |
| 2757 | rm -f conftest.err conftest.$ac_ext |
| 2758 | |
| 2759 | done |
| 2760 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2761 | rm -f conftest.err conftest.$ac_ext |
| 2762 | if $ac_preproc_ok; then |
| 2763 | : |
| 2764 | else |
| 2765 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2766 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2767 | { (exit 1); exit 1; }; } |
| 2768 | fi |
| 2769 | |
| 2770 | ac_ext=c |
| 2771 | ac_cpp='$CPP $CPPFLAGS' |
| 2772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2775 | |
| 2776 | # Find a good install program. We prefer a C program (faster), |
| 2777 | # so one script is as good as another. But avoid the broken or |
| 2778 | # incompatible versions: |
| 2779 | # SysV /etc/install, /usr/sbin/install |
| 2780 | # SunOS /usr/etc/install |
| 2781 | # IRIX /sbin/install |
| 2782 | # AIX /bin/install |
| 2783 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2784 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2785 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2786 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2787 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2788 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2789 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2790 | if test -z "$INSTALL"; then |
| 2791 | if test "${ac_cv_path_install+set}" = set; then |
| 2792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2793 | else |
| 2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2795 | for as_dir in $PATH |
| 2796 | do |
| 2797 | IFS=$as_save_IFS |
| 2798 | test -z "$as_dir" && as_dir=. |
| 2799 | # Account for people who put trailing slashes in PATH elements. |
| 2800 | case $as_dir/ in |
| 2801 | ./ | .// | /cC/* | \ |
| 2802 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2803 | /usr/ucb/* ) ;; |
| 2804 | *) |
| 2805 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2806 | # Don't use installbsd from OSF since it installs stuff as root |
| 2807 | # by default. |
| 2808 | for ac_prog in ginstall scoinst install; do |
| 2809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2810 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2811 | if test $ac_prog = install && |
| 2812 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2813 | # AIX install. It has an incompatible calling convention. |
| 2814 | : |
| 2815 | elif test $ac_prog = install && |
| 2816 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2817 | # program-specific install script used by HP pwplus--don't use. |
| 2818 | : |
| 2819 | else |
| 2820 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2821 | break 3 |
| 2822 | fi |
| 2823 | fi |
| 2824 | done |
| 2825 | done |
| 2826 | ;; |
| 2827 | esac |
| 2828 | done |
| 2829 | |
| 2830 | |
| 2831 | fi |
| 2832 | if test "${ac_cv_path_install+set}" = set; then |
| 2833 | INSTALL=$ac_cv_path_install |
| 2834 | else |
| 2835 | # As a last resort, use the slow shell script. We don't cache a |
| 2836 | # path for INSTALL within a source directory, because that will |
| 2837 | # break other packages using the cache if that directory is |
| 2838 | # removed, or if the path is relative. |
| 2839 | INSTALL=$ac_install_sh |
| 2840 | fi |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2843 | echo "${ECHO_T}$INSTALL" >&6 |
| 2844 | |
| 2845 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2846 | # It thinks the first close brace ends the variable substitution. |
| 2847 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2848 | |
| 2849 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2850 | |
| 2851 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2852 | |
| 2853 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2854 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 2855 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2856 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2858 | else |
| 2859 | cat >conftest.make <<\_ACEOF |
| 2860 | all: |
| 2861 | @echo 'ac_maketemp="${MAKE}"' |
| 2862 | _ACEOF |
| 2863 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2864 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2865 | if test -n "$ac_maketemp"; then |
| 2866 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2867 | else |
| 2868 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2869 | fi |
| 2870 | rm -f conftest.make |
| 2871 | fi |
| 2872 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2873 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2874 | echo "${ECHO_T}yes" >&6 |
| 2875 | SET_MAKE= |
| 2876 | else |
| 2877 | echo "$as_me:$LINENO: result: no" >&5 |
| 2878 | echo "${ECHO_T}no" >&6 |
| 2879 | SET_MAKE="MAKE=${MAKE-make}" |
| 2880 | fi |
| 2881 | |
| 2882 | if test -n "$ac_tool_prefix"; then |
| 2883 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 2884 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 2885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2887 | if test "${ac_cv_prog_AR+set}" = set; then |
| 2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2889 | else |
| 2890 | if test -n "$AR"; then |
| 2891 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 2892 | else |
| 2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2894 | for as_dir in $PATH |
| 2895 | do |
| 2896 | IFS=$as_save_IFS |
| 2897 | test -z "$as_dir" && as_dir=. |
| 2898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2900 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 2901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2902 | break 2 |
| 2903 | fi |
| 2904 | done |
| 2905 | done |
| 2906 | |
| 2907 | fi |
| 2908 | fi |
| 2909 | AR=$ac_cv_prog_AR |
| 2910 | if test -n "$AR"; then |
| 2911 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 2912 | echo "${ECHO_T}$AR" >&6 |
| 2913 | else |
| 2914 | echo "$as_me:$LINENO: result: no" >&5 |
| 2915 | echo "${ECHO_T}no" >&6 |
| 2916 | fi |
| 2917 | |
| 2918 | fi |
| 2919 | if test -z "$ac_cv_prog_AR"; then |
| 2920 | ac_ct_AR=$AR |
| 2921 | # Extract the first word of "ar", so it can be a program name with args. |
| 2922 | set dummy ar; ac_word=$2 |
| 2923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2925 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2927 | else |
| 2928 | if test -n "$ac_ct_AR"; then |
| 2929 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 2930 | else |
| 2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2932 | for as_dir in $PATH |
| 2933 | do |
| 2934 | IFS=$as_save_IFS |
| 2935 | test -z "$as_dir" && as_dir=. |
| 2936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2938 | ac_cv_prog_ac_ct_AR="ar" |
| 2939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2940 | break 2 |
| 2941 | fi |
| 2942 | done |
| 2943 | done |
| 2944 | |
| 2945 | fi |
| 2946 | fi |
| 2947 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 2948 | if test -n "$ac_ct_AR"; then |
| 2949 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 2950 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 2951 | else |
| 2952 | echo "$as_me:$LINENO: result: no" >&5 |
| 2953 | echo "${ECHO_T}no" >&6 |
| 2954 | fi |
| 2955 | |
| 2956 | AR=$ac_ct_AR |
| 2957 | else |
| 2958 | AR="$ac_cv_prog_AR" |
| 2959 | fi |
| 2960 | |
| 2961 | if test -n "$ac_tool_prefix"; then |
| 2962 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2963 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2966 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2968 | else |
| 2969 | if test -n "$RANLIB"; then |
| 2970 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2971 | else |
| 2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2973 | for as_dir in $PATH |
| 2974 | do |
| 2975 | IFS=$as_save_IFS |
| 2976 | test -z "$as_dir" && as_dir=. |
| 2977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2979 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2981 | break 2 |
| 2982 | fi |
| 2983 | done |
| 2984 | done |
| 2985 | |
| 2986 | fi |
| 2987 | fi |
| 2988 | RANLIB=$ac_cv_prog_RANLIB |
| 2989 | if test -n "$RANLIB"; then |
| 2990 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2991 | echo "${ECHO_T}$RANLIB" >&6 |
| 2992 | else |
| 2993 | echo "$as_me:$LINENO: result: no" >&5 |
| 2994 | echo "${ECHO_T}no" >&6 |
| 2995 | fi |
| 2996 | |
| 2997 | fi |
| 2998 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2999 | ac_ct_RANLIB=$RANLIB |
| 3000 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3001 | set dummy ranlib; ac_word=$2 |
| 3002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3004 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3006 | else |
| 3007 | if test -n "$ac_ct_RANLIB"; then |
| 3008 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3009 | else |
| 3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3011 | for as_dir in $PATH |
| 3012 | do |
| 3013 | IFS=$as_save_IFS |
| 3014 | test -z "$as_dir" && as_dir=. |
| 3015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3017 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3019 | break 2 |
| 3020 | fi |
| 3021 | done |
| 3022 | done |
| 3023 | |
| 3024 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3025 | fi |
| 3026 | fi |
| 3027 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3028 | if test -n "$ac_ct_RANLIB"; then |
| 3029 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3030 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3031 | else |
| 3032 | echo "$as_me:$LINENO: result: no" >&5 |
| 3033 | echo "${ECHO_T}no" >&6 |
| 3034 | fi |
| 3035 | |
| 3036 | RANLIB=$ac_ct_RANLIB |
| 3037 | else |
| 3038 | RANLIB="$ac_cv_prog_RANLIB" |
| 3039 | fi |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3044 | |
| 3045 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3046 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3047 | cat >conftest.$ac_ext <<_ACEOF |
| 3048 | #line $LINENO "configure" |
| 3049 | #include "confdefs.h" |
| 3050 | #ifdef _AIX |
| 3051 | yes |
| 3052 | #endif |
| 3053 | |
| 3054 | _ACEOF |
| 3055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3056 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3057 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3058 | echo "${ECHO_T}yes" >&6 |
| 3059 | cat >>confdefs.h <<\_ACEOF |
| 3060 | #define _ALL_SOURCE 1 |
| 3061 | _ACEOF |
| 3062 | |
| 3063 | else |
| 3064 | echo "$as_me:$LINENO: result: no" >&5 |
| 3065 | echo "${ECHO_T}no" >&6 |
| 3066 | fi |
| 3067 | rm -f conftest* |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | # Check whether --enable-vtysh or --disable-vtysh was given. |
| 3072 | if test "${enable_vtysh+set}" = set; then |
| 3073 | enableval="$enable_vtysh" |
| 3074 | |
| 3075 | fi; |
| 3076 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 3077 | if test "${enable_ipv6+set}" = set; then |
| 3078 | enableval="$enable_ipv6" |
| 3079 | |
| 3080 | fi; |
| 3081 | # Check whether --enable-zebra or --disable-zebra was given. |
| 3082 | if test "${enable_zebra+set}" = set; then |
| 3083 | enableval="$enable_zebra" |
| 3084 | |
| 3085 | fi; |
| 3086 | # Check whether --enable-bgpd or --disable-bgpd was given. |
| 3087 | if test "${enable_bgpd+set}" = set; then |
| 3088 | enableval="$enable_bgpd" |
| 3089 | |
| 3090 | fi; |
| 3091 | # Check whether --enable-ripd or --disable-ripd was given. |
| 3092 | if test "${enable_ripd+set}" = set; then |
| 3093 | enableval="$enable_ripd" |
| 3094 | |
| 3095 | fi; |
| 3096 | # Check whether --enable-ripngd or --disable-ripngd was given. |
| 3097 | if test "${enable_ripngd+set}" = set; then |
| 3098 | enableval="$enable_ripngd" |
| 3099 | |
| 3100 | fi; |
| 3101 | # Check whether --enable-ospfd or --disable-ospfd was given. |
| 3102 | if test "${enable_ospfd+set}" = set; then |
| 3103 | enableval="$enable_ospfd" |
| 3104 | |
| 3105 | fi; |
| 3106 | # Check whether --enable-ospf6d or --disable-ospf6d was given. |
| 3107 | if test "${enable_ospf6d+set}" = set; then |
| 3108 | enableval="$enable_ospf6d" |
| 3109 | |
| 3110 | fi; |
| 3111 | # Check whether --enable-bgp-announce or --disable-bgp-announce was given. |
| 3112 | if test "${enable_bgp_announce+set}" = set; then |
| 3113 | enableval="$enable_bgp_announce" |
| 3114 | |
| 3115 | fi; |
| 3116 | # Check whether --enable-netlink or --disable-netlink was given. |
| 3117 | if test "${enable_netlink+set}" = set; then |
| 3118 | enableval="$enable_netlink" |
| 3119 | |
| 3120 | fi; |
| 3121 | # Check whether --enable-broken-aliases or --disable-broken-aliases was given. |
| 3122 | if test "${enable_broken_aliases+set}" = set; then |
| 3123 | enableval="$enable_broken_aliases" |
| 3124 | |
| 3125 | fi; |
| 3126 | # Check whether --enable-snmp or --disable-snmp was given. |
| 3127 | if test "${enable_snmp+set}" = set; then |
| 3128 | enableval="$enable_snmp" |
| 3129 | |
| 3130 | fi; |
| 3131 | |
| 3132 | # Check whether --with-libpam or --without-libpam was given. |
| 3133 | if test "${with_libpam+set}" = set; then |
| 3134 | withval="$with_libpam" |
| 3135 | |
| 3136 | fi; |
| 3137 | # Check whether --enable-tcpsock or --disable-tcpsock was given. |
| 3138 | if test "${enable_tcpsock+set}" = set; then |
| 3139 | enableval="$enable_tcpsock" |
| 3140 | |
| 3141 | fi; |
| 3142 | # Check whether --enable-nssa or --disable-nssa was given. |
| 3143 | if test "${enable_nssa+set}" = set; then |
| 3144 | enableval="$enable_nssa" |
| 3145 | |
| 3146 | fi; |
| 3147 | # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given. |
| 3148 | if test "${enable_opaque_lsa+set}" = set; then |
| 3149 | enableval="$enable_opaque_lsa" |
| 3150 | |
| 3151 | fi; |
| 3152 | # Check whether --enable-ospf-te or --disable-ospf-te was given. |
| 3153 | if test "${enable_ospf_te+set}" = set; then |
| 3154 | enableval="$enable_ospf_te" |
| 3155 | |
| 3156 | fi; |
| 3157 | # Check whether --enable-multipath or --disable-multipath was given. |
| 3158 | if test "${enable_multipath+set}" = set; then |
| 3159 | enableval="$enable_multipath" |
| 3160 | |
| 3161 | fi; |
| 3162 | |
| 3163 | |
| 3164 | if test "${enable_broken_aliases}" = "yes"; then |
| 3165 | if test "${enable_netlink}" = "yes" |
| 3166 | then |
| 3167 | echo "Sorry, you can't use netlink with broken aliases" |
| 3168 | exit 1 |
| 3169 | fi |
| 3170 | cat >>confdefs.h <<\_ACEOF |
| 3171 | #define HAVE_BROKEN_ALIASES 1 |
| 3172 | _ACEOF |
| 3173 | |
| 3174 | enable_netlink=no |
| 3175 | fi |
| 3176 | |
| 3177 | if test "${enable_tcp_zebra}" = "yes"; then |
| 3178 | cat >>confdefs.h <<\_ACEOF |
| 3179 | #define HAVE_TCP_ZEBRA 1 |
| 3180 | _ACEOF |
| 3181 | |
| 3182 | fi |
| 3183 | |
| 3184 | if test "${enable_nssa}" = "yes"; then |
| 3185 | cat >>confdefs.h <<\_ACEOF |
| 3186 | #define HAVE_NSSA 1 |
| 3187 | _ACEOF |
| 3188 | |
| 3189 | fi |
| 3190 | |
| 3191 | if test "${enable_opaque_lsa}" = "yes"; then |
| 3192 | cat >>confdefs.h <<\_ACEOF |
| 3193 | #define HAVE_OPAQUE_LSA 1 |
| 3194 | _ACEOF |
| 3195 | |
| 3196 | fi |
| 3197 | |
| 3198 | if test "${enable_ospf_te}" = "yes"; then |
| 3199 | cat >>confdefs.h <<\_ACEOF |
| 3200 | #define HAVE_OPAQUE_LSA 1 |
| 3201 | _ACEOF |
| 3202 | |
| 3203 | cat >>confdefs.h <<\_ACEOF |
| 3204 | #define HAVE_OSPF_TE 1 |
| 3205 | _ACEOF |
| 3206 | |
| 3207 | fi |
| 3208 | |
| 3209 | |
| 3210 | |
| 3211 | MULTIPATH_NUM=1 |
| 3212 | |
| 3213 | case "${enable_multipath}" in |
| 3214 | [0-9]|[1-9][0-9]) |
| 3215 | MULTIPATH_NUM="${enable_multipath}" |
| 3216 | ;; |
| 3217 | "") |
| 3218 | ;; |
| 3219 | *) |
| 3220 | echo "Please specify digit to --enable-multipath ARG." |
| 3221 | exit 1 |
| 3222 | ;; |
| 3223 | esac |
| 3224 | |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3229 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3230 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3232 | else |
| 3233 | cat >conftest.$ac_ext <<_ACEOF |
| 3234 | #line $LINENO "configure" |
| 3235 | #include "confdefs.h" |
| 3236 | #include <stdlib.h> |
| 3237 | #include <stdarg.h> |
| 3238 | #include <string.h> |
| 3239 | #include <float.h> |
| 3240 | |
| 3241 | _ACEOF |
| 3242 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3243 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3244 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3245 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3246 | rm -f conftest.er1 |
| 3247 | cat conftest.err >&5 |
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3249 | (exit $ac_status); } >/dev/null; then |
| 3250 | if test -s conftest.err; then |
| 3251 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3252 | else |
| 3253 | ac_cpp_err= |
| 3254 | fi |
| 3255 | else |
| 3256 | ac_cpp_err=yes |
| 3257 | fi |
| 3258 | if test -z "$ac_cpp_err"; then |
| 3259 | ac_cv_header_stdc=yes |
| 3260 | else |
| 3261 | echo "$as_me: failed program was:" >&5 |
| 3262 | cat conftest.$ac_ext >&5 |
| 3263 | ac_cv_header_stdc=no |
| 3264 | fi |
| 3265 | rm -f conftest.err conftest.$ac_ext |
| 3266 | |
| 3267 | if test $ac_cv_header_stdc = yes; then |
| 3268 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3269 | cat >conftest.$ac_ext <<_ACEOF |
| 3270 | #line $LINENO "configure" |
| 3271 | #include "confdefs.h" |
| 3272 | #include <string.h> |
| 3273 | |
| 3274 | _ACEOF |
| 3275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3276 | egrep "memchr" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3277 | : |
| 3278 | else |
| 3279 | ac_cv_header_stdc=no |
| 3280 | fi |
| 3281 | rm -f conftest* |
| 3282 | |
| 3283 | fi |
| 3284 | |
| 3285 | if test $ac_cv_header_stdc = yes; then |
| 3286 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3287 | cat >conftest.$ac_ext <<_ACEOF |
| 3288 | #line $LINENO "configure" |
| 3289 | #include "confdefs.h" |
| 3290 | #include <stdlib.h> |
| 3291 | |
| 3292 | _ACEOF |
| 3293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3294 | egrep "free" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3295 | : |
| 3296 | else |
| 3297 | ac_cv_header_stdc=no |
| 3298 | fi |
| 3299 | rm -f conftest* |
| 3300 | |
| 3301 | fi |
| 3302 | |
| 3303 | if test $ac_cv_header_stdc = yes; then |
| 3304 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3305 | if test "$cross_compiling" = yes; then |
| 3306 | : |
| 3307 | else |
| 3308 | cat >conftest.$ac_ext <<_ACEOF |
| 3309 | #line $LINENO "configure" |
| 3310 | #include "confdefs.h" |
| 3311 | #include <ctype.h> |
| 3312 | #if ((' ' & 0x0FF) == 0x020) |
| 3313 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3314 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3315 | #else |
| 3316 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3317 | || ('j' <= (c) && (c) <= 'r') \ |
| 3318 | || ('s' <= (c) && (c) <= 'z')) |
| 3319 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3320 | #endif |
| 3321 | |
| 3322 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3323 | int |
| 3324 | main () |
| 3325 | { |
| 3326 | int i; |
| 3327 | for (i = 0; i < 256; i++) |
| 3328 | if (XOR (islower (i), ISLOWER (i)) |
| 3329 | || toupper (i) != TOUPPER (i)) |
| 3330 | exit(2); |
| 3331 | exit (0); |
| 3332 | } |
| 3333 | _ACEOF |
| 3334 | rm -f conftest$ac_exeext |
| 3335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3336 | (eval $ac_link) 2>&5 |
| 3337 | ac_status=$? |
| 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3341 | (eval $ac_try) 2>&5 |
| 3342 | ac_status=$? |
| 3343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3344 | (exit $ac_status); }; }; then |
| 3345 | : |
| 3346 | else |
| 3347 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3348 | echo "$as_me: failed program was:" >&5 |
| 3349 | cat conftest.$ac_ext >&5 |
| 3350 | ( exit $ac_status ) |
| 3351 | ac_cv_header_stdc=no |
| 3352 | fi |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3353 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | fi |
| 3356 | fi |
| 3357 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3358 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3359 | if test $ac_cv_header_stdc = yes; then |
| 3360 | |
| 3361 | cat >>confdefs.h <<\_ACEOF |
| 3362 | #define STDC_HEADERS 1 |
| 3363 | _ACEOF |
| 3364 | |
| 3365 | fi |
| 3366 | |
| 3367 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3368 | |
| 3369 | |
| 3370 | |
| 3371 | |
| 3372 | |
| 3373 | |
| 3374 | |
| 3375 | |
| 3376 | |
| 3377 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3378 | inttypes.h stdint.h unistd.h |
| 3379 | do |
| 3380 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3385 | else |
| 3386 | cat >conftest.$ac_ext <<_ACEOF |
| 3387 | #line $LINENO "configure" |
| 3388 | #include "confdefs.h" |
| 3389 | $ac_includes_default |
| 3390 | |
| 3391 | #include <$ac_header> |
| 3392 | _ACEOF |
| 3393 | rm -f conftest.$ac_objext |
| 3394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3395 | (eval $ac_compile) 2>&5 |
| 3396 | ac_status=$? |
| 3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); } && |
| 3399 | { ac_try='test -s conftest.$ac_objext' |
| 3400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3401 | (eval $ac_try) 2>&5 |
| 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); }; }; then |
| 3405 | eval "$as_ac_Header=yes" |
| 3406 | else |
| 3407 | echo "$as_me: failed program was:" >&5 |
| 3408 | cat conftest.$ac_ext >&5 |
| 3409 | eval "$as_ac_Header=no" |
| 3410 | fi |
| 3411 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3412 | fi |
| 3413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3415 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3416 | cat >>confdefs.h <<_ACEOF |
| 3417 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3418 | _ACEOF |
| 3419 | |
| 3420 | fi |
| 3421 | |
| 3422 | done |
| 3423 | |
| 3424 | |
| 3425 | |
| 3426 | |
| 3427 | |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
| 3433 | |
| 3434 | |
| 3435 | |
| 3436 | |
| 3437 | |
| 3438 | |
| 3439 | |
| 3440 | |
| 3441 | |
| 3442 | |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | 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 |
| 3451 | do |
| 3452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3458 | fi |
| 3459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3461 | else |
| 3462 | # Is the header compilable? |
| 3463 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3465 | cat >conftest.$ac_ext <<_ACEOF |
| 3466 | #line $LINENO "configure" |
| 3467 | #include "confdefs.h" |
| 3468 | $ac_includes_default |
| 3469 | #include <$ac_header> |
| 3470 | _ACEOF |
| 3471 | rm -f conftest.$ac_objext |
| 3472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3473 | (eval $ac_compile) 2>&5 |
| 3474 | ac_status=$? |
| 3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3476 | (exit $ac_status); } && |
| 3477 | { ac_try='test -s conftest.$ac_objext' |
| 3478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3479 | (eval $ac_try) 2>&5 |
| 3480 | ac_status=$? |
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); }; }; then |
| 3483 | ac_header_compiler=yes |
| 3484 | else |
| 3485 | echo "$as_me: failed program was:" >&5 |
| 3486 | cat conftest.$ac_ext >&5 |
| 3487 | ac_header_compiler=no |
| 3488 | fi |
| 3489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3490 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3491 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3492 | |
| 3493 | # Is the header present? |
| 3494 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3495 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3496 | cat >conftest.$ac_ext <<_ACEOF |
| 3497 | #line $LINENO "configure" |
| 3498 | #include "confdefs.h" |
| 3499 | #include <$ac_header> |
| 3500 | _ACEOF |
| 3501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3503 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3504 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3505 | rm -f conftest.er1 |
| 3506 | cat conftest.err >&5 |
| 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3508 | (exit $ac_status); } >/dev/null; then |
| 3509 | if test -s conftest.err; then |
| 3510 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3511 | else |
| 3512 | ac_cpp_err= |
| 3513 | fi |
| 3514 | else |
| 3515 | ac_cpp_err=yes |
| 3516 | fi |
| 3517 | if test -z "$ac_cpp_err"; then |
| 3518 | ac_header_preproc=yes |
| 3519 | else |
| 3520 | echo "$as_me: failed program was:" >&5 |
| 3521 | cat conftest.$ac_ext >&5 |
| 3522 | ac_header_preproc=no |
| 3523 | fi |
| 3524 | rm -f conftest.err conftest.$ac_ext |
| 3525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3526 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3527 | |
| 3528 | # So? What about this header? |
| 3529 | case $ac_header_compiler:$ac_header_preproc in |
| 3530 | yes:no ) |
| 3531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3534 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3535 | no:yes ) |
| 3536 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3537 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3538 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3539 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3540 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3541 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3542 | esac |
| 3543 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3547 | else |
| 3548 | eval "$as_ac_Header=$ac_header_preproc" |
| 3549 | fi |
| 3550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3552 | |
| 3553 | fi |
| 3554 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3555 | cat >>confdefs.h <<_ACEOF |
| 3556 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3557 | _ACEOF |
| 3558 | |
| 3559 | fi |
| 3560 | |
| 3561 | done |
| 3562 | |
| 3563 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3564 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3565 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3566 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3568 | else |
| 3569 | ac_cv_prog_cc_stdc=no |
| 3570 | ac_save_CC=$CC |
| 3571 | cat >conftest.$ac_ext <<_ACEOF |
| 3572 | #line $LINENO "configure" |
| 3573 | #include "confdefs.h" |
| 3574 | #include <stdarg.h> |
| 3575 | #include <stdio.h> |
| 3576 | #include <sys/types.h> |
| 3577 | #include <sys/stat.h> |
| 3578 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3579 | struct buf { int x; }; |
| 3580 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3581 | static char *e (p, i) |
| 3582 | char **p; |
| 3583 | int i; |
| 3584 | { |
| 3585 | return p[i]; |
| 3586 | } |
| 3587 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3588 | { |
| 3589 | char *s; |
| 3590 | va_list v; |
| 3591 | va_start (v,p); |
| 3592 | s = g (p, va_arg (v,int)); |
| 3593 | va_end (v); |
| 3594 | return s; |
| 3595 | } |
| 3596 | int test (int i, double x); |
| 3597 | struct s1 {int (*f) (int a);}; |
| 3598 | struct s2 {int (*f) (double a);}; |
| 3599 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3600 | int argc; |
| 3601 | char **argv; |
| 3602 | #ifdef F77_DUMMY_MAIN |
| 3603 | # ifdef __cplusplus |
| 3604 | extern "C" |
| 3605 | # endif |
| 3606 | int F77_DUMMY_MAIN() { return 1; } |
| 3607 | #endif |
| 3608 | int |
| 3609 | main () |
| 3610 | { |
| 3611 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3612 | ; |
| 3613 | return 0; |
| 3614 | } |
| 3615 | _ACEOF |
| 3616 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3617 | # breaks some systems' header files. |
| 3618 | # AIX -qlanglvl=ansi |
| 3619 | # Ultrix and OSF/1 -std1 |
| 3620 | # HP-UX 10.20 and later -Ae |
| 3621 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3622 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3623 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3624 | do |
| 3625 | CC="$ac_save_CC $ac_arg" |
| 3626 | rm -f conftest.$ac_objext |
| 3627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3628 | (eval $ac_compile) 2>&5 |
| 3629 | ac_status=$? |
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3631 | (exit $ac_status); } && |
| 3632 | { ac_try='test -s conftest.$ac_objext' |
| 3633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3634 | (eval $ac_try) 2>&5 |
| 3635 | ac_status=$? |
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3637 | (exit $ac_status); }; }; then |
| 3638 | ac_cv_prog_cc_stdc=$ac_arg |
| 3639 | break |
| 3640 | else |
| 3641 | echo "$as_me: failed program was:" >&5 |
| 3642 | cat conftest.$ac_ext >&5 |
| 3643 | fi |
| 3644 | rm -f conftest.$ac_objext |
| 3645 | done |
| 3646 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3647 | CC=$ac_save_CC |
| 3648 | |
| 3649 | fi |
| 3650 | |
| 3651 | case "x$ac_cv_prog_cc_stdc" in |
| 3652 | x|xno) |
| 3653 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3654 | echo "${ECHO_T}none needed" >&6 ;; |
| 3655 | *) |
| 3656 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3657 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3658 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3659 | esac |
| 3660 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3661 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 3662 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3663 | if test "${ac_cv_c_const+set}" = set; then |
| 3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3665 | else |
| 3666 | cat >conftest.$ac_ext <<_ACEOF |
| 3667 | #line $LINENO "configure" |
| 3668 | #include "confdefs.h" |
| 3669 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3670 | #ifdef F77_DUMMY_MAIN |
| 3671 | # ifdef __cplusplus |
| 3672 | extern "C" |
| 3673 | # endif |
| 3674 | int F77_DUMMY_MAIN() { return 1; } |
| 3675 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3676 | int |
| 3677 | main () |
| 3678 | { |
| 3679 | /* FIXME: Include the comments suggested by Paul. */ |
| 3680 | #ifndef __cplusplus |
| 3681 | /* Ultrix mips cc rejects this. */ |
| 3682 | typedef int charset[2]; |
| 3683 | const charset x; |
| 3684 | /* SunOS 4.1.1 cc rejects this. */ |
| 3685 | char const *const *ccp; |
| 3686 | char **p; |
| 3687 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3688 | struct point {int x, y;}; |
| 3689 | static struct point const zero = {0,0}; |
| 3690 | /* AIX XL C 1.02.0.0 rejects this. |
| 3691 | It does not let you subtract one const X* pointer from another in |
| 3692 | an arm of an if-expression whose if-part is not a constant |
| 3693 | expression */ |
| 3694 | const char *g = "string"; |
| 3695 | ccp = &g + (g ? g-g : 0); |
| 3696 | /* HPUX 7.0 cc rejects these. */ |
| 3697 | ++ccp; |
| 3698 | p = (char**) ccp; |
| 3699 | ccp = (char const *const *) p; |
| 3700 | { /* SCO 3.2v4 cc rejects this. */ |
| 3701 | char *t; |
| 3702 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3703 | |
| 3704 | *t++ = 0; |
| 3705 | } |
| 3706 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3707 | int x[] = {25, 17}; |
| 3708 | const int *foo = &x[0]; |
| 3709 | ++foo; |
| 3710 | } |
| 3711 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3712 | typedef const int *iptr; |
| 3713 | iptr p = 0; |
| 3714 | ++p; |
| 3715 | } |
| 3716 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3717 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3718 | struct s { int j; const int *ap[3]; }; |
| 3719 | struct s *b; b->j = 5; |
| 3720 | } |
| 3721 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3722 | const int foo = 10; |
| 3723 | } |
| 3724 | #endif |
| 3725 | |
| 3726 | ; |
| 3727 | return 0; |
| 3728 | } |
| 3729 | _ACEOF |
| 3730 | rm -f conftest.$ac_objext |
| 3731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3732 | (eval $ac_compile) 2>&5 |
| 3733 | ac_status=$? |
| 3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3735 | (exit $ac_status); } && |
| 3736 | { ac_try='test -s conftest.$ac_objext' |
| 3737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3738 | (eval $ac_try) 2>&5 |
| 3739 | ac_status=$? |
| 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3741 | (exit $ac_status); }; }; then |
| 3742 | ac_cv_c_const=yes |
| 3743 | else |
| 3744 | echo "$as_me: failed program was:" >&5 |
| 3745 | cat conftest.$ac_ext >&5 |
| 3746 | ac_cv_c_const=no |
| 3747 | fi |
| 3748 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3749 | fi |
| 3750 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 3751 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3752 | if test $ac_cv_c_const = no; then |
| 3753 | |
| 3754 | cat >>confdefs.h <<\_ACEOF |
| 3755 | #define const |
| 3756 | _ACEOF |
| 3757 | |
| 3758 | fi |
| 3759 | |
| 3760 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 3761 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 3762 | if test "${ac_cv_type_signal+set}" = set; then |
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3764 | else |
| 3765 | cat >conftest.$ac_ext <<_ACEOF |
| 3766 | #line $LINENO "configure" |
| 3767 | #include "confdefs.h" |
| 3768 | #include <sys/types.h> |
| 3769 | #include <signal.h> |
| 3770 | #ifdef signal |
| 3771 | # undef signal |
| 3772 | #endif |
| 3773 | #ifdef __cplusplus |
| 3774 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 3775 | #else |
| 3776 | void (*signal ()) (); |
| 3777 | #endif |
| 3778 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3779 | #ifdef F77_DUMMY_MAIN |
| 3780 | # ifdef __cplusplus |
| 3781 | extern "C" |
| 3782 | # endif |
| 3783 | int F77_DUMMY_MAIN() { return 1; } |
| 3784 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3785 | int |
| 3786 | main () |
| 3787 | { |
| 3788 | int i; |
| 3789 | ; |
| 3790 | return 0; |
| 3791 | } |
| 3792 | _ACEOF |
| 3793 | rm -f conftest.$ac_objext |
| 3794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3795 | (eval $ac_compile) 2>&5 |
| 3796 | ac_status=$? |
| 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3798 | (exit $ac_status); } && |
| 3799 | { ac_try='test -s conftest.$ac_objext' |
| 3800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3801 | (eval $ac_try) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); }; }; then |
| 3805 | ac_cv_type_signal=void |
| 3806 | else |
| 3807 | echo "$as_me: failed program was:" >&5 |
| 3808 | cat conftest.$ac_ext >&5 |
| 3809 | ac_cv_type_signal=int |
| 3810 | fi |
| 3811 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3812 | fi |
| 3813 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 3814 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 3815 | |
| 3816 | cat >>confdefs.h <<_ACEOF |
| 3817 | #define RETSIGTYPE $ac_cv_type_signal |
| 3818 | _ACEOF |
| 3819 | |
| 3820 | |
| 3821 | |
| 3822 | case "$host" in |
| 3823 | *-sunos5.6* | *-solaris2.6*) |
| 3824 | opsys=sol2-6 |
| 3825 | cat >>confdefs.h <<\_ACEOF |
| 3826 | #define SUNOS_5 1 |
| 3827 | _ACEOF |
| 3828 | |
| 3829 | |
| 3830 | echo "$as_me:$LINENO: checking for main in -lxnet" >&5 |
| 3831 | echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6 |
| 3832 | if test "${ac_cv_lib_xnet_main+set}" = set; then |
| 3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3834 | else |
| 3835 | ac_check_lib_save_LIBS=$LIBS |
| 3836 | LIBS="-lxnet $LIBS" |
| 3837 | cat >conftest.$ac_ext <<_ACEOF |
| 3838 | #line $LINENO "configure" |
| 3839 | #include "confdefs.h" |
| 3840 | |
| 3841 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3842 | #ifdef F77_DUMMY_MAIN |
| 3843 | # ifdef __cplusplus |
| 3844 | extern "C" |
| 3845 | # endif |
| 3846 | int F77_DUMMY_MAIN() { return 1; } |
| 3847 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3848 | int |
| 3849 | main () |
| 3850 | { |
| 3851 | main (); |
| 3852 | ; |
| 3853 | return 0; |
| 3854 | } |
| 3855 | _ACEOF |
| 3856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3858 | (eval $ac_link) 2>&5 |
| 3859 | ac_status=$? |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3861 | (exit $ac_status); } && |
| 3862 | { ac_try='test -s conftest$ac_exeext' |
| 3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3864 | (eval $ac_try) 2>&5 |
| 3865 | ac_status=$? |
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 | (exit $ac_status); }; }; then |
| 3868 | ac_cv_lib_xnet_main=yes |
| 3869 | else |
| 3870 | echo "$as_me: failed program was:" >&5 |
| 3871 | cat conftest.$ac_ext >&5 |
| 3872 | ac_cv_lib_xnet_main=no |
| 3873 | fi |
| 3874 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3875 | LIBS=$ac_check_lib_save_LIBS |
| 3876 | fi |
| 3877 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5 |
| 3878 | echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6 |
| 3879 | if test $ac_cv_lib_xnet_main = yes; then |
| 3880 | cat >>confdefs.h <<_ACEOF |
| 3881 | #define HAVE_LIBXNET 1 |
| 3882 | _ACEOF |
| 3883 | |
| 3884 | LIBS="-lxnet $LIBS" |
| 3885 | |
| 3886 | fi |
| 3887 | |
| 3888 | CURSES=-lcurses |
| 3889 | ;; |
| 3890 | *-sunos5* | *-solaris2*) |
| 3891 | cat >>confdefs.h <<\_ACEOF |
| 3892 | #define SUNOS_5 1 |
| 3893 | _ACEOF |
| 3894 | |
| 3895 | |
| 3896 | echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
| 3897 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
| 3898 | if test "${ac_cv_lib_socket_main+set}" = set; then |
| 3899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3900 | else |
| 3901 | ac_check_lib_save_LIBS=$LIBS |
| 3902 | LIBS="-lsocket $LIBS" |
| 3903 | cat >conftest.$ac_ext <<_ACEOF |
| 3904 | #line $LINENO "configure" |
| 3905 | #include "confdefs.h" |
| 3906 | |
| 3907 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3908 | #ifdef F77_DUMMY_MAIN |
| 3909 | # ifdef __cplusplus |
| 3910 | extern "C" |
| 3911 | # endif |
| 3912 | int F77_DUMMY_MAIN() { return 1; } |
| 3913 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3914 | int |
| 3915 | main () |
| 3916 | { |
| 3917 | main (); |
| 3918 | ; |
| 3919 | return 0; |
| 3920 | } |
| 3921 | _ACEOF |
| 3922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3924 | (eval $ac_link) 2>&5 |
| 3925 | ac_status=$? |
| 3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3927 | (exit $ac_status); } && |
| 3928 | { ac_try='test -s conftest$ac_exeext' |
| 3929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3930 | (eval $ac_try) 2>&5 |
| 3931 | ac_status=$? |
| 3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3933 | (exit $ac_status); }; }; then |
| 3934 | ac_cv_lib_socket_main=yes |
| 3935 | else |
| 3936 | echo "$as_me: failed program was:" >&5 |
| 3937 | cat conftest.$ac_ext >&5 |
| 3938 | ac_cv_lib_socket_main=no |
| 3939 | fi |
| 3940 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3941 | LIBS=$ac_check_lib_save_LIBS |
| 3942 | fi |
| 3943 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
| 3944 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
| 3945 | if test $ac_cv_lib_socket_main = yes; then |
| 3946 | cat >>confdefs.h <<_ACEOF |
| 3947 | #define HAVE_LIBSOCKET 1 |
| 3948 | _ACEOF |
| 3949 | |
| 3950 | LIBS="-lsocket $LIBS" |
| 3951 | |
| 3952 | fi |
| 3953 | |
| 3954 | |
| 3955 | echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
| 3956 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
| 3957 | if test "${ac_cv_lib_nsl_main+set}" = set; then |
| 3958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3959 | else |
| 3960 | ac_check_lib_save_LIBS=$LIBS |
| 3961 | LIBS="-lnsl $LIBS" |
| 3962 | cat >conftest.$ac_ext <<_ACEOF |
| 3963 | #line $LINENO "configure" |
| 3964 | #include "confdefs.h" |
| 3965 | |
| 3966 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 3967 | #ifdef F77_DUMMY_MAIN |
| 3968 | # ifdef __cplusplus |
| 3969 | extern "C" |
| 3970 | # endif |
| 3971 | int F77_DUMMY_MAIN() { return 1; } |
| 3972 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3973 | int |
| 3974 | main () |
| 3975 | { |
| 3976 | main (); |
| 3977 | ; |
| 3978 | return 0; |
| 3979 | } |
| 3980 | _ACEOF |
| 3981 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3983 | (eval $ac_link) 2>&5 |
| 3984 | ac_status=$? |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); } && |
| 3987 | { ac_try='test -s conftest$ac_exeext' |
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3989 | (eval $ac_try) 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); }; }; then |
| 3993 | ac_cv_lib_nsl_main=yes |
| 3994 | else |
| 3995 | echo "$as_me: failed program was:" >&5 |
| 3996 | cat conftest.$ac_ext >&5 |
| 3997 | ac_cv_lib_nsl_main=no |
| 3998 | fi |
| 3999 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4000 | LIBS=$ac_check_lib_save_LIBS |
| 4001 | fi |
| 4002 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 |
| 4003 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 |
| 4004 | if test $ac_cv_lib_nsl_main = yes; then |
| 4005 | cat >>confdefs.h <<_ACEOF |
| 4006 | #define HAVE_LIBNSL 1 |
| 4007 | _ACEOF |
| 4008 | |
| 4009 | LIBS="-lnsl $LIBS" |
| 4010 | |
| 4011 | fi |
| 4012 | |
| 4013 | CURSES=-lcurses |
| 4014 | ;; |
| 4015 | *-linux-*) |
| 4016 | opsys=gnu-linux |
| 4017 | cat >>confdefs.h <<\_ACEOF |
| 4018 | #define GNU_LINUX 1 |
| 4019 | _ACEOF |
| 4020 | |
| 4021 | ;; |
| 4022 | *-nec-sysv4*) |
| 4023 | |
| 4024 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4025 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4026 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4028 | else |
| 4029 | ac_check_lib_save_LIBS=$LIBS |
| 4030 | LIBS="-lnsl $LIBS" |
| 4031 | cat >conftest.$ac_ext <<_ACEOF |
| 4032 | #line $LINENO "configure" |
| 4033 | #include "confdefs.h" |
| 4034 | |
| 4035 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4036 | #ifdef __cplusplus |
| 4037 | extern "C" |
| 4038 | #endif |
| 4039 | /* We use char because int might match the return type of a gcc2 |
| 4040 | builtin and then its argument prototype would still apply. */ |
| 4041 | char gethostbyname (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4042 | #ifdef F77_DUMMY_MAIN |
| 4043 | # ifdef __cplusplus |
| 4044 | extern "C" |
| 4045 | # endif |
| 4046 | int F77_DUMMY_MAIN() { return 1; } |
| 4047 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4048 | int |
| 4049 | main () |
| 4050 | { |
| 4051 | gethostbyname (); |
| 4052 | ; |
| 4053 | return 0; |
| 4054 | } |
| 4055 | _ACEOF |
| 4056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4058 | (eval $ac_link) 2>&5 |
| 4059 | ac_status=$? |
| 4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4061 | (exit $ac_status); } && |
| 4062 | { ac_try='test -s conftest$ac_exeext' |
| 4063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4064 | (eval $ac_try) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); }; }; then |
| 4068 | ac_cv_lib_nsl_gethostbyname=yes |
| 4069 | else |
| 4070 | echo "$as_me: failed program was:" >&5 |
| 4071 | cat conftest.$ac_ext >&5 |
| 4072 | ac_cv_lib_nsl_gethostbyname=no |
| 4073 | fi |
| 4074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4075 | LIBS=$ac_check_lib_save_LIBS |
| 4076 | fi |
| 4077 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4078 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4079 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4080 | cat >>confdefs.h <<_ACEOF |
| 4081 | #define HAVE_LIBNSL 1 |
| 4082 | _ACEOF |
| 4083 | |
| 4084 | LIBS="-lnsl $LIBS" |
| 4085 | |
| 4086 | fi |
| 4087 | |
| 4088 | |
| 4089 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4090 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4091 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4093 | else |
| 4094 | ac_check_lib_save_LIBS=$LIBS |
| 4095 | LIBS="-lsocket $LIBS" |
| 4096 | cat >conftest.$ac_ext <<_ACEOF |
| 4097 | #line $LINENO "configure" |
| 4098 | #include "confdefs.h" |
| 4099 | |
| 4100 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4101 | #ifdef __cplusplus |
| 4102 | extern "C" |
| 4103 | #endif |
| 4104 | /* We use char because int might match the return type of a gcc2 |
| 4105 | builtin and then its argument prototype would still apply. */ |
| 4106 | char socket (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4107 | #ifdef F77_DUMMY_MAIN |
| 4108 | # ifdef __cplusplus |
| 4109 | extern "C" |
| 4110 | # endif |
| 4111 | int F77_DUMMY_MAIN() { return 1; } |
| 4112 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4113 | int |
| 4114 | main () |
| 4115 | { |
| 4116 | socket (); |
| 4117 | ; |
| 4118 | return 0; |
| 4119 | } |
| 4120 | _ACEOF |
| 4121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4123 | (eval $ac_link) 2>&5 |
| 4124 | ac_status=$? |
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4126 | (exit $ac_status); } && |
| 4127 | { ac_try='test -s conftest$ac_exeext' |
| 4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4129 | (eval $ac_try) 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); }; }; then |
| 4133 | ac_cv_lib_socket_socket=yes |
| 4134 | else |
| 4135 | echo "$as_me: failed program was:" >&5 |
| 4136 | cat conftest.$ac_ext >&5 |
| 4137 | ac_cv_lib_socket_socket=no |
| 4138 | fi |
| 4139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4140 | LIBS=$ac_check_lib_save_LIBS |
| 4141 | fi |
| 4142 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4143 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4144 | if test $ac_cv_lib_socket_socket = yes; then |
| 4145 | cat >>confdefs.h <<_ACEOF |
| 4146 | #define HAVE_LIBSOCKET 1 |
| 4147 | _ACEOF |
| 4148 | |
| 4149 | LIBS="-lsocket $LIBS" |
| 4150 | |
| 4151 | fi |
| 4152 | |
| 4153 | ;; |
| 4154 | *-freebsd3.2) |
| 4155 | cat >>confdefs.h <<\_ACEOF |
| 4156 | #define FREEBSD_32 1 |
| 4157 | _ACEOF |
| 4158 | |
| 4159 | ;; |
| 4160 | *-openbsd*) |
| 4161 | opsys=openbsd |
| 4162 | cat >>confdefs.h <<\_ACEOF |
| 4163 | #define OPEN_BSD 1 |
| 4164 | _ACEOF |
| 4165 | |
| 4166 | ;; |
| 4167 | *-bsdi*) |
| 4168 | opsys=bsdi |
| 4169 | OTHER_METHOD="mtu_kvm.o" |
| 4170 | |
| 4171 | echo "$as_me:$LINENO: checking for main in -lkvm" >&5 |
| 4172 | echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 |
| 4173 | if test "${ac_cv_lib_kvm_main+set}" = set; then |
| 4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4175 | else |
| 4176 | ac_check_lib_save_LIBS=$LIBS |
| 4177 | LIBS="-lkvm $LIBS" |
| 4178 | cat >conftest.$ac_ext <<_ACEOF |
| 4179 | #line $LINENO "configure" |
| 4180 | #include "confdefs.h" |
| 4181 | |
| 4182 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4183 | #ifdef F77_DUMMY_MAIN |
| 4184 | # ifdef __cplusplus |
| 4185 | extern "C" |
| 4186 | # endif |
| 4187 | int F77_DUMMY_MAIN() { return 1; } |
| 4188 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4189 | int |
| 4190 | main () |
| 4191 | { |
| 4192 | main (); |
| 4193 | ; |
| 4194 | return 0; |
| 4195 | } |
| 4196 | _ACEOF |
| 4197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4199 | (eval $ac_link) 2>&5 |
| 4200 | ac_status=$? |
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4202 | (exit $ac_status); } && |
| 4203 | { ac_try='test -s conftest$ac_exeext' |
| 4204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4205 | (eval $ac_try) 2>&5 |
| 4206 | ac_status=$? |
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4208 | (exit $ac_status); }; }; then |
| 4209 | ac_cv_lib_kvm_main=yes |
| 4210 | else |
| 4211 | echo "$as_me: failed program was:" >&5 |
| 4212 | cat conftest.$ac_ext >&5 |
| 4213 | ac_cv_lib_kvm_main=no |
| 4214 | fi |
| 4215 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4216 | LIBS=$ac_check_lib_save_LIBS |
| 4217 | fi |
| 4218 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5 |
| 4219 | echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 |
| 4220 | if test $ac_cv_lib_kvm_main = yes; then |
| 4221 | cat >>confdefs.h <<_ACEOF |
| 4222 | #define HAVE_LIBKVM 1 |
| 4223 | _ACEOF |
| 4224 | |
| 4225 | LIBS="-lkvm $LIBS" |
| 4226 | |
| 4227 | fi |
| 4228 | |
| 4229 | ;; |
| 4230 | esac |
| 4231 | |
| 4232 | case "${host_cpu}-${host_os}" in |
| 4233 | i?86-solaris*) |
| 4234 | cat >>confdefs.h <<\_ACEOF |
| 4235 | #define SOLARIS_X86 1 |
| 4236 | _ACEOF |
| 4237 | |
| 4238 | ;; |
| 4239 | esac |
| 4240 | |
| 4241 | case "${enable_vtysh}" in |
| 4242 | "yes") VTYSH="vtysh"; |
| 4243 | cat >>confdefs.h <<\_ACEOF |
| 4244 | #define VTYSH 1 |
| 4245 | _ACEOF |
| 4246 | |
| 4247 | |
| 4248 | echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5 |
| 4249 | echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6 |
| 4250 | if test "${ac_cv_lib_tinfo_tputs+set}" = set; then |
| 4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4252 | else |
| 4253 | ac_check_lib_save_LIBS=$LIBS |
| 4254 | LIBS="-ltinfo $LIBS" |
| 4255 | cat >conftest.$ac_ext <<_ACEOF |
| 4256 | #line $LINENO "configure" |
| 4257 | #include "confdefs.h" |
| 4258 | |
| 4259 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4260 | #ifdef __cplusplus |
| 4261 | extern "C" |
| 4262 | #endif |
| 4263 | /* We use char because int might match the return type of a gcc2 |
| 4264 | builtin and then its argument prototype would still apply. */ |
| 4265 | char tputs (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4266 | #ifdef F77_DUMMY_MAIN |
| 4267 | # ifdef __cplusplus |
| 4268 | extern "C" |
| 4269 | # endif |
| 4270 | int F77_DUMMY_MAIN() { return 1; } |
| 4271 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4272 | int |
| 4273 | main () |
| 4274 | { |
| 4275 | tputs (); |
| 4276 | ; |
| 4277 | return 0; |
| 4278 | } |
| 4279 | _ACEOF |
| 4280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4282 | (eval $ac_link) 2>&5 |
| 4283 | ac_status=$? |
| 4284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4285 | (exit $ac_status); } && |
| 4286 | { ac_try='test -s conftest$ac_exeext' |
| 4287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4288 | (eval $ac_try) 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); }; }; then |
| 4292 | ac_cv_lib_tinfo_tputs=yes |
| 4293 | else |
| 4294 | echo "$as_me: failed program was:" >&5 |
| 4295 | cat conftest.$ac_ext >&5 |
| 4296 | ac_cv_lib_tinfo_tputs=no |
| 4297 | fi |
| 4298 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4299 | LIBS=$ac_check_lib_save_LIBS |
| 4300 | fi |
| 4301 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5 |
| 4302 | echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6 |
| 4303 | if test $ac_cv_lib_tinfo_tputs = yes; then |
| 4304 | cat >>confdefs.h <<_ACEOF |
| 4305 | #define HAVE_LIBTINFO 1 |
| 4306 | _ACEOF |
| 4307 | |
| 4308 | LIBS="-ltinfo $LIBS" |
| 4309 | |
| 4310 | else |
| 4311 | |
| 4312 | echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5 |
| 4313 | echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6 |
| 4314 | if test "${ac_cv_lib_ncurses_tputs+set}" = set; then |
| 4315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4316 | else |
| 4317 | ac_check_lib_save_LIBS=$LIBS |
| 4318 | LIBS="-lncurses $LIBS" |
| 4319 | cat >conftest.$ac_ext <<_ACEOF |
| 4320 | #line $LINENO "configure" |
| 4321 | #include "confdefs.h" |
| 4322 | |
| 4323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4324 | #ifdef __cplusplus |
| 4325 | extern "C" |
| 4326 | #endif |
| 4327 | /* We use char because int might match the return type of a gcc2 |
| 4328 | builtin and then its argument prototype would still apply. */ |
| 4329 | char tputs (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4330 | #ifdef F77_DUMMY_MAIN |
| 4331 | # ifdef __cplusplus |
| 4332 | extern "C" |
| 4333 | # endif |
| 4334 | int F77_DUMMY_MAIN() { return 1; } |
| 4335 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4336 | int |
| 4337 | main () |
| 4338 | { |
| 4339 | tputs (); |
| 4340 | ; |
| 4341 | return 0; |
| 4342 | } |
| 4343 | _ACEOF |
| 4344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4346 | (eval $ac_link) 2>&5 |
| 4347 | ac_status=$? |
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4349 | (exit $ac_status); } && |
| 4350 | { ac_try='test -s conftest$ac_exeext' |
| 4351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4352 | (eval $ac_try) 2>&5 |
| 4353 | ac_status=$? |
| 4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4355 | (exit $ac_status); }; }; then |
| 4356 | ac_cv_lib_ncurses_tputs=yes |
| 4357 | else |
| 4358 | echo "$as_me: failed program was:" >&5 |
| 4359 | cat conftest.$ac_ext >&5 |
| 4360 | ac_cv_lib_ncurses_tputs=no |
| 4361 | fi |
| 4362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4363 | LIBS=$ac_check_lib_save_LIBS |
| 4364 | fi |
| 4365 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5 |
| 4366 | echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6 |
| 4367 | if test $ac_cv_lib_ncurses_tputs = yes; then |
| 4368 | cat >>confdefs.h <<_ACEOF |
| 4369 | #define HAVE_LIBNCURSES 1 |
| 4370 | _ACEOF |
| 4371 | |
| 4372 | LIBS="-lncurses $LIBS" |
| 4373 | |
| 4374 | fi |
| 4375 | |
| 4376 | fi |
| 4377 | |
| 4378 | |
| 4379 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
| 4380 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
| 4381 | if test "${ac_cv_lib_readline_main+set}" = set; then |
| 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4383 | else |
| 4384 | ac_check_lib_save_LIBS=$LIBS |
| 4385 | LIBS="-lreadline $LIBS" |
| 4386 | cat >conftest.$ac_ext <<_ACEOF |
| 4387 | #line $LINENO "configure" |
| 4388 | #include "confdefs.h" |
| 4389 | |
| 4390 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4391 | #ifdef F77_DUMMY_MAIN |
| 4392 | # ifdef __cplusplus |
| 4393 | extern "C" |
| 4394 | # endif |
| 4395 | int F77_DUMMY_MAIN() { return 1; } |
| 4396 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | main (); |
| 4401 | ; |
| 4402 | return 0; |
| 4403 | } |
| 4404 | _ACEOF |
| 4405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4407 | (eval $ac_link) 2>&5 |
| 4408 | ac_status=$? |
| 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4410 | (exit $ac_status); } && |
| 4411 | { ac_try='test -s conftest$ac_exeext' |
| 4412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4413 | (eval $ac_try) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); }; }; then |
| 4417 | ac_cv_lib_readline_main=yes |
| 4418 | else |
| 4419 | echo "$as_me: failed program was:" >&5 |
| 4420 | cat conftest.$ac_ext >&5 |
| 4421 | ac_cv_lib_readline_main=no |
| 4422 | fi |
| 4423 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4424 | LIBS=$ac_check_lib_save_LIBS |
| 4425 | fi |
| 4426 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 |
| 4427 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
| 4428 | if test $ac_cv_lib_readline_main = yes; then |
| 4429 | cat >>confdefs.h <<_ACEOF |
| 4430 | #define HAVE_LIBREADLINE 1 |
| 4431 | _ACEOF |
| 4432 | |
| 4433 | LIBS="-lreadline $LIBS" |
| 4434 | |
| 4435 | fi |
| 4436 | |
| 4437 | if test $ac_cv_lib_readline_main = no; then |
| 4438 | { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5 |
| 4439 | echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;} |
| 4440 | { (exit 1); exit 1; }; } |
| 4441 | fi |
| 4442 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4443 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4444 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4445 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4447 | fi |
| 4448 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4449 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4450 | else |
| 4451 | # Is the header compilable? |
| 4452 | echo "$as_me:$LINENO: checking readline/history.h usability" >&5 |
| 4453 | echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6 |
| 4454 | cat >conftest.$ac_ext <<_ACEOF |
| 4455 | #line $LINENO "configure" |
| 4456 | #include "confdefs.h" |
| 4457 | $ac_includes_default |
| 4458 | #include <readline/history.h> |
| 4459 | _ACEOF |
| 4460 | rm -f conftest.$ac_objext |
| 4461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4462 | (eval $ac_compile) 2>&5 |
| 4463 | ac_status=$? |
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); } && |
| 4466 | { ac_try='test -s conftest.$ac_objext' |
| 4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4468 | (eval $ac_try) 2>&5 |
| 4469 | ac_status=$? |
| 4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4471 | (exit $ac_status); }; }; then |
| 4472 | ac_header_compiler=yes |
| 4473 | else |
| 4474 | echo "$as_me: failed program was:" >&5 |
| 4475 | cat conftest.$ac_ext >&5 |
| 4476 | ac_header_compiler=no |
| 4477 | fi |
| 4478 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4479 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4480 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4481 | |
| 4482 | # Is the header present? |
| 4483 | echo "$as_me:$LINENO: checking readline/history.h presence" >&5 |
| 4484 | echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6 |
| 4485 | cat >conftest.$ac_ext <<_ACEOF |
| 4486 | #line $LINENO "configure" |
| 4487 | #include "confdefs.h" |
| 4488 | #include <readline/history.h> |
| 4489 | _ACEOF |
| 4490 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4491 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4492 | ac_status=$? |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4493 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4494 | rm -f conftest.er1 |
| 4495 | cat conftest.err >&5 |
| 4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4497 | (exit $ac_status); } >/dev/null; then |
| 4498 | if test -s conftest.err; then |
| 4499 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4500 | else |
| 4501 | ac_cpp_err= |
| 4502 | fi |
| 4503 | else |
| 4504 | ac_cpp_err=yes |
| 4505 | fi |
| 4506 | if test -z "$ac_cpp_err"; then |
| 4507 | ac_header_preproc=yes |
| 4508 | else |
| 4509 | echo "$as_me: failed program was:" >&5 |
| 4510 | cat conftest.$ac_ext >&5 |
| 4511 | ac_header_preproc=no |
| 4512 | fi |
| 4513 | rm -f conftest.err conftest.$ac_ext |
| 4514 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4515 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4516 | |
| 4517 | # So? What about this header? |
| 4518 | case $ac_header_compiler:$ac_header_preproc in |
| 4519 | yes:no ) |
| 4520 | { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4521 | echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4522 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4523 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4524 | no:yes ) |
| 4525 | { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 |
| 4526 | echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} |
| 4527 | { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 |
| 4528 | echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} |
| 4529 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4530 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4531 | esac |
| 4532 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4533 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4534 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4536 | else |
| 4537 | ac_cv_header_readline_history_h=$ac_header_preproc |
| 4538 | fi |
| 4539 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4540 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4541 | |
| 4542 | fi |
| 4543 | |
| 4544 | |
| 4545 | if test $ac_cv_header_readline_history_h = no;then |
| 4546 | { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5 |
| 4547 | echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;} |
| 4548 | { (exit 1); exit 1; }; } |
| 4549 | fi |
| 4550 | ;; |
| 4551 | "no" ) VTYSH="";; |
| 4552 | * ) ;; |
| 4553 | esac |
| 4554 | |
| 4555 | if test "$with_libpam" = "yes"; then |
| 4556 | echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
| 4557 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 |
| 4558 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4560 | else |
| 4561 | ac_check_lib_save_LIBS=$LIBS |
| 4562 | LIBS="-lpam $LIBS" |
| 4563 | cat >conftest.$ac_ext <<_ACEOF |
| 4564 | #line $LINENO "configure" |
| 4565 | #include "confdefs.h" |
| 4566 | |
| 4567 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4568 | #ifdef __cplusplus |
| 4569 | extern "C" |
| 4570 | #endif |
| 4571 | /* We use char because int might match the return type of a gcc2 |
| 4572 | builtin and then its argument prototype would still apply. */ |
| 4573 | char pam_start (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4574 | #ifdef F77_DUMMY_MAIN |
| 4575 | # ifdef __cplusplus |
| 4576 | extern "C" |
| 4577 | # endif |
| 4578 | int F77_DUMMY_MAIN() { return 1; } |
| 4579 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4580 | int |
| 4581 | main () |
| 4582 | { |
| 4583 | pam_start (); |
| 4584 | ; |
| 4585 | return 0; |
| 4586 | } |
| 4587 | _ACEOF |
| 4588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4590 | (eval $ac_link) 2>&5 |
| 4591 | ac_status=$? |
| 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4593 | (exit $ac_status); } && |
| 4594 | { ac_try='test -s conftest$ac_exeext' |
| 4595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4596 | (eval $ac_try) 2>&5 |
| 4597 | ac_status=$? |
| 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4599 | (exit $ac_status); }; }; then |
| 4600 | ac_cv_lib_pam_pam_start=yes |
| 4601 | else |
| 4602 | echo "$as_me: failed program was:" >&5 |
| 4603 | cat conftest.$ac_ext >&5 |
| 4604 | ac_cv_lib_pam_pam_start=no |
| 4605 | fi |
| 4606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4607 | LIBS=$ac_check_lib_save_LIBS |
| 4608 | fi |
| 4609 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
| 4610 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 |
| 4611 | if test $ac_cv_lib_pam_pam_start = yes; then |
| 4612 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4613 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4614 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4616 | else |
| 4617 | ac_check_lib_save_LIBS=$LIBS |
| 4618 | LIBS="-lpam $LIBS" |
| 4619 | cat >conftest.$ac_ext <<_ACEOF |
| 4620 | #line $LINENO "configure" |
| 4621 | #include "confdefs.h" |
| 4622 | |
| 4623 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4624 | #ifdef __cplusplus |
| 4625 | extern "C" |
| 4626 | #endif |
| 4627 | /* We use char because int might match the return type of a gcc2 |
| 4628 | builtin and then its argument prototype would still apply. */ |
| 4629 | char misc_conv (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4630 | #ifdef F77_DUMMY_MAIN |
| 4631 | # ifdef __cplusplus |
| 4632 | extern "C" |
| 4633 | # endif |
| 4634 | int F77_DUMMY_MAIN() { return 1; } |
| 4635 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4636 | int |
| 4637 | main () |
| 4638 | { |
| 4639 | misc_conv (); |
| 4640 | ; |
| 4641 | return 0; |
| 4642 | } |
| 4643 | _ACEOF |
| 4644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4646 | (eval $ac_link) 2>&5 |
| 4647 | ac_status=$? |
| 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4649 | (exit $ac_status); } && |
| 4650 | { ac_try='test -s conftest$ac_exeext' |
| 4651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4652 | (eval $ac_try) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; }; then |
| 4656 | ac_cv_lib_pam_misc_conv=yes |
| 4657 | else |
| 4658 | echo "$as_me: failed program was:" >&5 |
| 4659 | cat conftest.$ac_ext >&5 |
| 4660 | ac_cv_lib_pam_misc_conv=no |
| 4661 | fi |
| 4662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4663 | LIBS=$ac_check_lib_save_LIBS |
| 4664 | fi |
| 4665 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4666 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4667 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4668 | cat >>confdefs.h <<\_ACEOF |
| 4669 | #define USE_PAM 1 |
| 4670 | _ACEOF |
| 4671 | |
| 4672 | LIBPAM="-lpam" |
| 4673 | else |
| 4674 | cat >>confdefs.h <<\_ACEOF |
| 4675 | #define USE_PAM 1 |
| 4676 | _ACEOF |
| 4677 | |
| 4678 | LIBPAM="-lpam -lpam_misc" |
| 4679 | |
| 4680 | fi |
| 4681 | |
| 4682 | |
| 4683 | else |
| 4684 | echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5 |
| 4685 | echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6 |
| 4686 | if test "${ac_cv_lib_pam_pam_end+set}" = set; then |
| 4687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4688 | else |
| 4689 | ac_check_lib_save_LIBS=$LIBS |
| 4690 | LIBS="-lpam -ldl $LIBS" |
| 4691 | cat >conftest.$ac_ext <<_ACEOF |
| 4692 | #line $LINENO "configure" |
| 4693 | #include "confdefs.h" |
| 4694 | |
| 4695 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4696 | #ifdef __cplusplus |
| 4697 | extern "C" |
| 4698 | #endif |
| 4699 | /* We use char because int might match the return type of a gcc2 |
| 4700 | builtin and then its argument prototype would still apply. */ |
| 4701 | char pam_end (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4702 | #ifdef F77_DUMMY_MAIN |
| 4703 | # ifdef __cplusplus |
| 4704 | extern "C" |
| 4705 | # endif |
| 4706 | int F77_DUMMY_MAIN() { return 1; } |
| 4707 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4708 | int |
| 4709 | main () |
| 4710 | { |
| 4711 | pam_end (); |
| 4712 | ; |
| 4713 | return 0; |
| 4714 | } |
| 4715 | _ACEOF |
| 4716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4718 | (eval $ac_link) 2>&5 |
| 4719 | ac_status=$? |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); } && |
| 4722 | { ac_try='test -s conftest$ac_exeext' |
| 4723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4724 | (eval $ac_try) 2>&5 |
| 4725 | ac_status=$? |
| 4726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4727 | (exit $ac_status); }; }; then |
| 4728 | ac_cv_lib_pam_pam_end=yes |
| 4729 | else |
| 4730 | echo "$as_me: failed program was:" >&5 |
| 4731 | cat conftest.$ac_ext >&5 |
| 4732 | ac_cv_lib_pam_pam_end=no |
| 4733 | fi |
| 4734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4735 | LIBS=$ac_check_lib_save_LIBS |
| 4736 | fi |
| 4737 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5 |
| 4738 | echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6 |
| 4739 | if test $ac_cv_lib_pam_pam_end = yes; then |
| 4740 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4741 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4742 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4744 | else |
| 4745 | ac_check_lib_save_LIBS=$LIBS |
| 4746 | LIBS="-lpam $LIBS" |
| 4747 | cat >conftest.$ac_ext <<_ACEOF |
| 4748 | #line $LINENO "configure" |
| 4749 | #include "confdefs.h" |
| 4750 | |
| 4751 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4752 | #ifdef __cplusplus |
| 4753 | extern "C" |
| 4754 | #endif |
| 4755 | /* We use char because int might match the return type of a gcc2 |
| 4756 | builtin and then its argument prototype would still apply. */ |
| 4757 | char misc_conv (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4758 | #ifdef F77_DUMMY_MAIN |
| 4759 | # ifdef __cplusplus |
| 4760 | extern "C" |
| 4761 | # endif |
| 4762 | int F77_DUMMY_MAIN() { return 1; } |
| 4763 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4764 | int |
| 4765 | main () |
| 4766 | { |
| 4767 | misc_conv (); |
| 4768 | ; |
| 4769 | return 0; |
| 4770 | } |
| 4771 | _ACEOF |
| 4772 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4774 | (eval $ac_link) 2>&5 |
| 4775 | ac_status=$? |
| 4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4777 | (exit $ac_status); } && |
| 4778 | { ac_try='test -s conftest$ac_exeext' |
| 4779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4780 | (eval $ac_try) 2>&5 |
| 4781 | ac_status=$? |
| 4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4783 | (exit $ac_status); }; }; then |
| 4784 | ac_cv_lib_pam_misc_conv=yes |
| 4785 | else |
| 4786 | echo "$as_me: failed program was:" >&5 |
| 4787 | cat conftest.$ac_ext >&5 |
| 4788 | ac_cv_lib_pam_misc_conv=no |
| 4789 | fi |
| 4790 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4791 | LIBS=$ac_check_lib_save_LIBS |
| 4792 | fi |
| 4793 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4794 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4795 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4796 | cat >>confdefs.h <<\_ACEOF |
| 4797 | #define USE_PAM 1 |
| 4798 | _ACEOF |
| 4799 | |
| 4800 | LIBPAM="-lpam -ldl" |
| 4801 | else |
| 4802 | cat >>confdefs.h <<\_ACEOF |
| 4803 | #define USE_PAM 1 |
| 4804 | _ACEOF |
| 4805 | |
| 4806 | LIBPAM="-lpam -ldl -lpam_misc" |
| 4807 | |
| 4808 | fi |
| 4809 | |
| 4810 | |
| 4811 | else |
| 4812 | { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5 |
| 4813 | echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} |
| 4814 | fi |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | fi |
| 4819 | |
| 4820 | fi |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
| 4838 | for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs |
| 4839 | do |
| 4840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4843 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4845 | else |
| 4846 | cat >conftest.$ac_ext <<_ACEOF |
| 4847 | #line $LINENO "configure" |
| 4848 | #include "confdefs.h" |
| 4849 | /* System header to define __stub macros and hopefully few prototypes, |
| 4850 | which can conflict with char $ac_func (); below. */ |
| 4851 | #include <assert.h> |
| 4852 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4853 | #ifdef __cplusplus |
| 4854 | extern "C" |
| 4855 | #endif |
| 4856 | /* We use char because int might match the return type of a gcc2 |
| 4857 | builtin and then its argument prototype would still apply. */ |
| 4858 | char $ac_func (); |
| 4859 | char (*f) (); |
| 4860 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4861 | #ifdef F77_DUMMY_MAIN |
| 4862 | # ifdef __cplusplus |
| 4863 | extern "C" |
| 4864 | # endif |
| 4865 | int F77_DUMMY_MAIN() { return 1; } |
| 4866 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4867 | int |
| 4868 | main () |
| 4869 | { |
| 4870 | /* The GNU C library defines this for functions which it implements |
| 4871 | to always fail with ENOSYS. Some functions are actually named |
| 4872 | something starting with __ and the normal name is an alias. */ |
| 4873 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4874 | choke me |
| 4875 | #else |
| 4876 | f = $ac_func; |
| 4877 | #endif |
| 4878 | |
| 4879 | ; |
| 4880 | return 0; |
| 4881 | } |
| 4882 | _ACEOF |
| 4883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4885 | (eval $ac_link) 2>&5 |
| 4886 | ac_status=$? |
| 4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4888 | (exit $ac_status); } && |
| 4889 | { ac_try='test -s conftest$ac_exeext' |
| 4890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4891 | (eval $ac_try) 2>&5 |
| 4892 | ac_status=$? |
| 4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4894 | (exit $ac_status); }; }; then |
| 4895 | eval "$as_ac_var=yes" |
| 4896 | else |
| 4897 | echo "$as_me: failed program was:" >&5 |
| 4898 | cat conftest.$ac_ext >&5 |
| 4899 | eval "$as_ac_var=no" |
| 4900 | fi |
| 4901 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4902 | fi |
| 4903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4904 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4905 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4906 | cat >>confdefs.h <<_ACEOF |
| 4907 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4908 | _ACEOF |
| 4909 | |
| 4910 | fi |
| 4911 | done |
| 4912 | |
| 4913 | |
| 4914 | for ac_func in setproctitle |
| 4915 | do |
| 4916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4917 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4919 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4921 | else |
| 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | #line $LINENO "configure" |
| 4924 | #include "confdefs.h" |
| 4925 | /* System header to define __stub macros and hopefully few prototypes, |
| 4926 | which can conflict with char $ac_func (); below. */ |
| 4927 | #include <assert.h> |
| 4928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4929 | #ifdef __cplusplus |
| 4930 | extern "C" |
| 4931 | #endif |
| 4932 | /* We use char because int might match the return type of a gcc2 |
| 4933 | builtin and then its argument prototype would still apply. */ |
| 4934 | char $ac_func (); |
| 4935 | char (*f) (); |
| 4936 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 4937 | #ifdef F77_DUMMY_MAIN |
| 4938 | # ifdef __cplusplus |
| 4939 | extern "C" |
| 4940 | # endif |
| 4941 | int F77_DUMMY_MAIN() { return 1; } |
| 4942 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4943 | int |
| 4944 | main () |
| 4945 | { |
| 4946 | /* The GNU C library defines this for functions which it implements |
| 4947 | to always fail with ENOSYS. Some functions are actually named |
| 4948 | something starting with __ and the normal name is an alias. */ |
| 4949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4950 | choke me |
| 4951 | #else |
| 4952 | f = $ac_func; |
| 4953 | #endif |
| 4954 | |
| 4955 | ; |
| 4956 | return 0; |
| 4957 | } |
| 4958 | _ACEOF |
| 4959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4961 | (eval $ac_link) 2>&5 |
| 4962 | ac_status=$? |
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4964 | (exit $ac_status); } && |
| 4965 | { ac_try='test -s conftest$ac_exeext' |
| 4966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4967 | (eval $ac_try) 2>&5 |
| 4968 | ac_status=$? |
| 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4970 | (exit $ac_status); }; }; then |
| 4971 | eval "$as_ac_var=yes" |
| 4972 | else |
| 4973 | echo "$as_me: failed program was:" >&5 |
| 4974 | cat conftest.$ac_ext >&5 |
| 4975 | eval "$as_ac_var=no" |
| 4976 | fi |
| 4977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4978 | fi |
| 4979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4980 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4981 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4982 | cat >>confdefs.h <<_ACEOF |
| 4983 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4984 | _ACEOF |
| 4985 | |
| 4986 | else |
| 4987 | echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5 |
| 4988 | echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 |
| 4989 | if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
| 4990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4991 | else |
| 4992 | ac_check_lib_save_LIBS=$LIBS |
| 4993 | LIBS="-lutil $LIBS" |
| 4994 | cat >conftest.$ac_ext <<_ACEOF |
| 4995 | #line $LINENO "configure" |
| 4996 | #include "confdefs.h" |
| 4997 | |
| 4998 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4999 | #ifdef __cplusplus |
| 5000 | extern "C" |
| 5001 | #endif |
| 5002 | /* We use char because int might match the return type of a gcc2 |
| 5003 | builtin and then its argument prototype would still apply. */ |
| 5004 | char setproctitle (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5005 | #ifdef F77_DUMMY_MAIN |
| 5006 | # ifdef __cplusplus |
| 5007 | extern "C" |
| 5008 | # endif |
| 5009 | int F77_DUMMY_MAIN() { return 1; } |
| 5010 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5011 | int |
| 5012 | main () |
| 5013 | { |
| 5014 | setproctitle (); |
| 5015 | ; |
| 5016 | return 0; |
| 5017 | } |
| 5018 | _ACEOF |
| 5019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5021 | (eval $ac_link) 2>&5 |
| 5022 | ac_status=$? |
| 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5024 | (exit $ac_status); } && |
| 5025 | { ac_try='test -s conftest$ac_exeext' |
| 5026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5027 | (eval $ac_try) 2>&5 |
| 5028 | ac_status=$? |
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5030 | (exit $ac_status); }; }; then |
| 5031 | ac_cv_lib_util_setproctitle=yes |
| 5032 | else |
| 5033 | echo "$as_me: failed program was:" >&5 |
| 5034 | cat conftest.$ac_ext >&5 |
| 5035 | ac_cv_lib_util_setproctitle=no |
| 5036 | fi |
| 5037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5038 | LIBS=$ac_check_lib_save_LIBS |
| 5039 | fi |
| 5040 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5 |
| 5041 | echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 |
| 5042 | if test $ac_cv_lib_util_setproctitle = yes; then |
| 5043 | LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF |
| 5044 | #define HAVE_SETPROCTITLE 1 |
| 5045 | _ACEOF |
| 5046 | |
| 5047 | fi |
| 5048 | |
| 5049 | fi |
| 5050 | done |
| 5051 | |
| 5052 | |
| 5053 | echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5 |
| 5054 | echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6 |
| 5055 | if test x"$opsys" = x"gnu-linux"; then |
| 5056 | if test "${enable_netlink}" = "yes";then |
| 5057 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5058 | echo "${ECHO_T}netlink" >&6 |
| 5059 | RT_METHOD=rt_netlink.o |
| 5060 | cat >>confdefs.h <<\_ACEOF |
| 5061 | #define HAVE_NETLINK 1 |
| 5062 | _ACEOF |
| 5063 | |
| 5064 | netlink=yes |
| 5065 | elif test "${enable_netlink}" = "no"; then |
| 5066 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5067 | echo "${ECHO_T}ioctl" >&6 |
| 5068 | RT_METHOD=rt_ioctl.o |
| 5069 | netlink=no |
| 5070 | else |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5071 | echo "$as_me:$LINENO: result: netlink" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5072 | echo "${ECHO_T}netlink" >&6 |
| 5073 | RT_METHOD=rt_netlink.o |
| 5074 | cat >>confdefs.h <<\_ACEOF |
| 5075 | #define HAVE_NETLINK 1 |
| 5076 | _ACEOF |
| 5077 | |
| 5078 | netlink=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5079 | fi |
| 5080 | else |
| 5081 | if test "$opsys" = "sol2-6";then |
| 5082 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5083 | echo "${ECHO_T}solaris" >&6 |
| 5084 | KERNEL_METHOD="kernel_socket.o" |
| 5085 | RT_METHOD="rt_socket.o" |
| 5086 | else |
| 5087 | if test "$cross_compiling" = yes; then |
| 5088 | KERNEL_METHOD=kernel_socket.o |
| 5089 | RT_METHOD=rt_socket.o |
| 5090 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5091 | echo "${ECHO_T}socket" >&6 |
| 5092 | else |
| 5093 | cat >conftest.$ac_ext <<_ACEOF |
| 5094 | #line $LINENO "configure" |
| 5095 | #include "confdefs.h" |
| 5096 | #include <errno.h> |
| 5097 | #include <sys/types.h> |
| 5098 | #include <sys/socket.h> |
| 5099 | |
| 5100 | main () |
| 5101 | { |
| 5102 | int ac_sock; |
| 5103 | |
| 5104 | ac_sock = socket (AF_ROUTE, SOCK_RAW, 0); |
| 5105 | if (ac_sock < 0 && errno == EINVAL) |
| 5106 | exit (1); |
| 5107 | exit (0); |
| 5108 | } |
| 5109 | _ACEOF |
| 5110 | rm -f conftest$ac_exeext |
| 5111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5112 | (eval $ac_link) 2>&5 |
| 5113 | ac_status=$? |
| 5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5117 | (eval $ac_try) 2>&5 |
| 5118 | ac_status=$? |
| 5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5120 | (exit $ac_status); }; }; then |
| 5121 | cat >>confdefs.h <<\_ACEOF |
| 5122 | #define HAVE_AF_ROUTE 1 |
| 5123 | _ACEOF |
| 5124 | |
| 5125 | KERNEL_METHOD=kernel_socket.o |
| 5126 | RT_METHOD=rt_socket.o |
| 5127 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5128 | echo "${ECHO_T}socket" >&6 |
| 5129 | else |
| 5130 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5131 | echo "$as_me: failed program was:" >&5 |
| 5132 | cat conftest.$ac_ext >&5 |
| 5133 | ( exit $ac_status ) |
| 5134 | RT_METHOD=rt_ioctl.o |
| 5135 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5136 | echo "${ECHO_T}ioctl" >&6 |
| 5137 | fi |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5138 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5139 | fi |
| 5140 | fi |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | |
| 5145 | |
| 5146 | echo "$as_me:$LINENO: checking route read method check" >&5 |
| 5147 | echo $ECHO_N "checking route read method check... $ECHO_C" >&6 |
| 5148 | if test "${zebra_rtread+set}" = set; then |
| 5149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5150 | else |
| 5151 | if test "$netlink" = yes; then |
| 5152 | RTREAD_METHOD="rtread_netlink.o" |
| 5153 | zebra_rtread="netlink" |
| 5154 | else |
| 5155 | for zebra_rtread in /proc/net/route /dev/ip /dev/null; |
| 5156 | do |
| 5157 | test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break |
| 5158 | done |
| 5159 | case $zebra_rtread in |
| 5160 | "/proc/net/route") RTREAD_METHOD="rtread_proc.o" |
| 5161 | zebra_rtread="proc";; |
| 5162 | "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" |
| 5163 | zebra_rtread="getmsg";; |
| 5164 | *) RTREAD_METHOD="rtread_sysctl.o" |
| 5165 | zebra_rtread="sysctl";; |
| 5166 | esac |
| 5167 | fi |
| 5168 | fi |
| 5169 | echo "$as_me:$LINENO: result: $zebra_rtread" >&5 |
| 5170 | echo "${ECHO_T}$zebra_rtread" >&6 |
| 5171 | |
| 5172 | |
| 5173 | echo "$as_me:$LINENO: checking interface looking up method" >&5 |
| 5174 | echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6 |
| 5175 | if test "$netlink" = yes; then |
| 5176 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5177 | echo "${ECHO_T}netlink" >&6 |
| 5178 | IF_METHOD=if_netlink.o |
| 5179 | else |
| 5180 | if test "$opsys" = "sol2-6";then |
| 5181 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5182 | echo "${ECHO_T}solaris" >&6 |
| 5183 | IF_METHOD=if_ioctl.o |
| 5184 | elif test "$opsys" = "openbsd";then |
| 5185 | echo "$as_me:$LINENO: result: openbsd" >&5 |
| 5186 | echo "${ECHO_T}openbsd" >&6 |
| 5187 | IF_METHOD=if_ioctl.o |
| 5188 | elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then |
| 5189 | echo "$as_me:$LINENO: result: sysctl" >&5 |
| 5190 | echo "${ECHO_T}sysctl" >&6 |
| 5191 | IF_METHOD=if_sysctl.o |
| 5192 | cat >>confdefs.h <<\_ACEOF |
| 5193 | #define HAVE_NET_RT_IFLIST 1 |
| 5194 | _ACEOF |
| 5195 | |
| 5196 | else |
| 5197 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5198 | echo "${ECHO_T}ioctl" >&6 |
| 5199 | IF_METHOD=if_ioctl.o |
| 5200 | fi |
| 5201 | fi |
| 5202 | |
| 5203 | |
| 5204 | if test -r /proc/net/dev; then |
| 5205 | cat >>confdefs.h <<\_ACEOF |
| 5206 | #define HAVE_PROC_NET_DEV 1 |
| 5207 | _ACEOF |
| 5208 | |
| 5209 | IF_PROC=if_proc.o |
| 5210 | fi |
| 5211 | |
| 5212 | if test -r /proc/net/if_inet6; then |
| 5213 | cat >>confdefs.h <<\_ACEOF |
| 5214 | #define HAVE_PROC_NET_IF_INET6 1 |
| 5215 | _ACEOF |
| 5216 | |
| 5217 | IF_PROC=if_proc.o |
| 5218 | fi |
| 5219 | |
| 5220 | |
| 5221 | echo "$as_me:$LINENO: checking ipforward method check" >&5 |
| 5222 | echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6 |
| 5223 | if test "${zebra_ipforward_path+set}" = set; then |
| 5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5225 | else |
| 5226 | for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null; |
| 5227 | do |
| 5228 | test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break |
| 5229 | done |
| 5230 | case $zebra_ipforward_path in |
| 5231 | "/proc/net/snmp") IPFORWARD=ipforward_proc.o |
| 5232 | zebra_ipforward_path="proc";; |
| 5233 | "/dev/ip") |
| 5234 | case "$host" in |
| 5235 | *-nec-sysv4*) IPFORWARD=ipforward_ews.o |
| 5236 | zebra_ipforward_path="ews";; |
| 5237 | *) IPFORWARD=ipforward_solaris.o |
| 5238 | zebra_ipforward_path="solaris";; |
| 5239 | esac;; |
| 5240 | *) IPFORWARD=ipforward_sysctl.o |
| 5241 | zebra_ipforward_path="sysctl";; |
| 5242 | esac |
| 5243 | fi |
| 5244 | echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5 |
| 5245 | echo "${ECHO_T}$zebra_ipforward_path" >&6 |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | for ac_func in getaddrinfo |
| 5250 | do |
| 5251 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5252 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5253 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5254 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5256 | else |
| 5257 | cat >conftest.$ac_ext <<_ACEOF |
| 5258 | #line $LINENO "configure" |
| 5259 | #include "confdefs.h" |
| 5260 | /* System header to define __stub macros and hopefully few prototypes, |
| 5261 | which can conflict with char $ac_func (); below. */ |
| 5262 | #include <assert.h> |
| 5263 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5264 | #ifdef __cplusplus |
| 5265 | extern "C" |
| 5266 | #endif |
| 5267 | /* We use char because int might match the return type of a gcc2 |
| 5268 | builtin and then its argument prototype would still apply. */ |
| 5269 | char $ac_func (); |
| 5270 | char (*f) (); |
| 5271 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5272 | #ifdef F77_DUMMY_MAIN |
| 5273 | # ifdef __cplusplus |
| 5274 | extern "C" |
| 5275 | # endif |
| 5276 | int F77_DUMMY_MAIN() { return 1; } |
| 5277 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5278 | int |
| 5279 | main () |
| 5280 | { |
| 5281 | /* The GNU C library defines this for functions which it implements |
| 5282 | to always fail with ENOSYS. Some functions are actually named |
| 5283 | something starting with __ and the normal name is an alias. */ |
| 5284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5285 | choke me |
| 5286 | #else |
| 5287 | f = $ac_func; |
| 5288 | #endif |
| 5289 | |
| 5290 | ; |
| 5291 | return 0; |
| 5292 | } |
| 5293 | _ACEOF |
| 5294 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5296 | (eval $ac_link) 2>&5 |
| 5297 | ac_status=$? |
| 5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5299 | (exit $ac_status); } && |
| 5300 | { ac_try='test -s conftest$ac_exeext' |
| 5301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5302 | (eval $ac_try) 2>&5 |
| 5303 | ac_status=$? |
| 5304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5305 | (exit $ac_status); }; }; then |
| 5306 | eval "$as_ac_var=yes" |
| 5307 | else |
| 5308 | echo "$as_me: failed program was:" >&5 |
| 5309 | cat conftest.$ac_ext >&5 |
| 5310 | eval "$as_ac_var=no" |
| 5311 | fi |
| 5312 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5313 | fi |
| 5314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5315 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5316 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5317 | cat >>confdefs.h <<_ACEOF |
| 5318 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5319 | _ACEOF |
| 5320 | have_getaddrinfo=yes |
| 5321 | else |
| 5322 | have_getaddrinfo=no |
| 5323 | fi |
| 5324 | done |
| 5325 | |
| 5326 | |
| 5327 | echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5 |
| 5328 | echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6 |
| 5329 | if test "${enable_ipv6}" = "no"; then |
| 5330 | echo "$as_me:$LINENO: result: disabled" >&5 |
| 5331 | echo "${ECHO_T}disabled" >&6 |
| 5332 | else |
| 5333 | if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then |
| 5334 | zebra_cv_ipv6=yes |
| 5335 | cat >>confdefs.h <<\_ACEOF |
| 5336 | #define HAVE_IPV6 1 |
| 5337 | _ACEOF |
| 5338 | |
| 5339 | cat >>confdefs.h <<\_ACEOF |
| 5340 | #define INRIA_IPV6 1 |
| 5341 | _ACEOF |
| 5342 | |
| 5343 | RIPNGD="ripngd" |
| 5344 | OSPF6D="ospf6d" |
| 5345 | LIB_IPV6="" |
| 5346 | echo "$as_me:$LINENO: result: INRIA IPv6" >&5 |
| 5347 | echo "${ECHO_T}INRIA IPv6" >&6 |
| 5348 | fi |
| 5349 | if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5350 | zebra_cv_ipv6=yes |
| 5351 | cat >>confdefs.h <<\_ACEOF |
| 5352 | #define HAVE_IPV6 1 |
| 5353 | _ACEOF |
| 5354 | |
| 5355 | cat >>confdefs.h <<\_ACEOF |
| 5356 | #define KAME 1 |
| 5357 | _ACEOF |
| 5358 | |
| 5359 | RIPNGD="ripngd" |
| 5360 | OSPF6D="ospf6d" |
| 5361 | if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then |
| 5362 | LIB_IPV6="-L/usr/local/v6/lib -linet6" |
| 5363 | fi |
| 5364 | echo "$as_me:$LINENO: result: KAME" >&5 |
| 5365 | echo "${ECHO_T}KAME" >&6 |
| 5366 | fi |
| 5367 | if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5368 | zebra_cv_ipv6=yes |
| 5369 | cat >>confdefs.h <<\_ACEOF |
| 5370 | #define HAVE_IPV6 1 |
| 5371 | _ACEOF |
| 5372 | |
| 5373 | cat >>confdefs.h <<\_ACEOF |
| 5374 | #define NRL 1 |
| 5375 | _ACEOF |
| 5376 | |
| 5377 | RIPNGD="ripngd" |
| 5378 | OSPF6D="ospf6d" |
| 5379 | if test x"$opsys" = x"bsdi";then |
| 5380 | cat >>confdefs.h <<\_ACEOF |
| 5381 | #define BSDI_NRL 1 |
| 5382 | _ACEOF |
| 5383 | |
| 5384 | echo "$as_me:$LINENO: result: BSDI_NRL" >&5 |
| 5385 | echo "${ECHO_T}BSDI_NRL" >&6 |
| 5386 | else |
| 5387 | echo "$as_me:$LINENO: result: NRL" >&5 |
| 5388 | echo "${ECHO_T}NRL" >&6 |
| 5389 | fi |
| 5390 | fi |
| 5391 | |
| 5392 | if test "${enable_ipv6}" = "yes"; then |
| 5393 | cat >conftest.$ac_ext <<_ACEOF |
| 5394 | #line $LINENO "configure" |
| 5395 | #include "confdefs.h" |
| 5396 | |
| 5397 | #include <linux/version.h> |
| 5398 | /* 2.1.128 or later */ |
| 5399 | #if LINUX_VERSION_CODE >= 0x020180 |
| 5400 | yes |
| 5401 | #endif |
| 5402 | _ACEOF |
| 5403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5404 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5405 | zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5406 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5407 | fi |
| 5408 | rm -f conftest* |
| 5409 | |
| 5410 | else |
| 5411 | if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route" |
| 5412 | then |
| 5413 | zebra_cv_ipv6=yes |
| 5414 | zebra_cv_linux_ipv6=yes |
| 5415 | echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5416 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5417 | fi |
| 5418 | fi |
| 5419 | |
| 5420 | if test "$zebra_cv_linux_ipv6" = "yes";then |
| 5421 | cat >>confdefs.h <<\_ACEOF |
| 5422 | #define HAVE_IPV6 1 |
| 5423 | _ACEOF |
| 5424 | |
| 5425 | echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5 |
| 5426 | echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6 |
| 5427 | cat >conftest.$ac_ext <<_ACEOF |
| 5428 | #line $LINENO "configure" |
| 5429 | #include "confdefs.h" |
| 5430 | |
| 5431 | #include <features.h> |
| 5432 | #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 5433 | yes |
| 5434 | #endif |
| 5435 | _ACEOF |
| 5436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5437 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5438 | glibc=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 5439 | echo "${ECHO_T}yes" >&6 |
| 5440 | else |
| 5441 | echo "$as_me:$LINENO: result: no" >&5 |
| 5442 | echo "${ECHO_T}no" >&6 |
| 5443 | fi |
| 5444 | rm -f conftest* |
| 5445 | |
| 5446 | cat >>confdefs.h <<\_ACEOF |
| 5447 | #define LINUX_IPV6 1 |
| 5448 | _ACEOF |
| 5449 | |
| 5450 | RIPNGD="ripngd" |
| 5451 | OSPF6D="ospf6d" |
| 5452 | if test "$glibc" != "yes"; then |
| 5453 | INCLUDES="-I/usr/inet6/include" |
| 5454 | if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then |
| 5455 | LIB_IPV6="-L/usr/inet6/lib -linet6" |
| 5456 | fi |
| 5457 | fi |
| 5458 | fi |
| 5459 | |
| 5460 | LIBS="$LIB_IPV6 $LIBS" |
| 5461 | |
| 5462 | |
| 5463 | if test x"$RIPNGD" = x""; then |
| 5464 | echo "$as_me:$LINENO: result: IPv4 only" >&5 |
| 5465 | echo "${ECHO_T}IPv4 only" >&6 |
| 5466 | fi |
| 5467 | fi |
| 5468 | |
| 5469 | if test "${enable_zebra}" = "no";then |
| 5470 | ZEBRA="" |
| 5471 | else |
| 5472 | ZEBRA="zebra" |
| 5473 | fi |
| 5474 | |
| 5475 | if test "${enable_bgpd}" = "no";then |
| 5476 | BGPD="" |
| 5477 | else |
| 5478 | BGPD="bgpd" |
| 5479 | fi |
| 5480 | |
| 5481 | if test "${enable_ripd}" = "no";then |
| 5482 | RIPD="" |
| 5483 | else |
| 5484 | RIPD="ripd" |
| 5485 | fi |
| 5486 | |
| 5487 | if test "${enable_ospfd}" = "no";then |
| 5488 | OSPFD="" |
| 5489 | else |
| 5490 | OSPFD="ospfd" |
| 5491 | fi |
| 5492 | |
| 5493 | case "${enable_ripngd}" in |
| 5494 | "yes") RIPNGD="ripngd";; |
| 5495 | "no" ) RIPNGD="";; |
| 5496 | * ) ;; |
| 5497 | esac |
| 5498 | |
| 5499 | case "${enable_ospf6d}" in |
| 5500 | "yes") OSPF6D="ospf6d";; |
| 5501 | "no" ) OSPF6D="";; |
| 5502 | * ) ;; |
| 5503 | esac |
| 5504 | |
| 5505 | if test "${enable_bgp_announce}" = "no";then |
| 5506 | cat >>confdefs.h <<\_ACEOF |
| 5507 | #define DISABLE_BGP_ANNOUNCE 1 |
| 5508 | _ACEOF |
| 5509 | |
| 5510 | fi |
| 5511 | |
| 5512 | |
| 5513 | |
| 5514 | |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 | echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5 |
| 5522 | echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6 |
| 5523 | if test "${ac_cv_lib_c_inet_ntop+set}" = set; then |
| 5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5525 | else |
| 5526 | ac_check_lib_save_LIBS=$LIBS |
| 5527 | LIBS="-lc $LIBS" |
| 5528 | cat >conftest.$ac_ext <<_ACEOF |
| 5529 | #line $LINENO "configure" |
| 5530 | #include "confdefs.h" |
| 5531 | |
| 5532 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5533 | #ifdef __cplusplus |
| 5534 | extern "C" |
| 5535 | #endif |
| 5536 | /* We use char because int might match the return type of a gcc2 |
| 5537 | builtin and then its argument prototype would still apply. */ |
| 5538 | char inet_ntop (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5539 | #ifdef F77_DUMMY_MAIN |
| 5540 | # ifdef __cplusplus |
| 5541 | extern "C" |
| 5542 | # endif |
| 5543 | int F77_DUMMY_MAIN() { return 1; } |
| 5544 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5545 | int |
| 5546 | main () |
| 5547 | { |
| 5548 | inet_ntop (); |
| 5549 | ; |
| 5550 | return 0; |
| 5551 | } |
| 5552 | _ACEOF |
| 5553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5555 | (eval $ac_link) 2>&5 |
| 5556 | ac_status=$? |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } && |
| 5559 | { ac_try='test -s conftest$ac_exeext' |
| 5560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5561 | (eval $ac_try) 2>&5 |
| 5562 | ac_status=$? |
| 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5564 | (exit $ac_status); }; }; then |
| 5565 | ac_cv_lib_c_inet_ntop=yes |
| 5566 | else |
| 5567 | echo "$as_me: failed program was:" >&5 |
| 5568 | cat conftest.$ac_ext >&5 |
| 5569 | ac_cv_lib_c_inet_ntop=no |
| 5570 | fi |
| 5571 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5572 | LIBS=$ac_check_lib_save_LIBS |
| 5573 | fi |
| 5574 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5 |
| 5575 | echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6 |
| 5576 | if test $ac_cv_lib_c_inet_ntop = yes; then |
| 5577 | cat >>confdefs.h <<\_ACEOF |
| 5578 | #define HAVE_INET_NTOP 1 |
| 5579 | _ACEOF |
| 5580 | |
| 5581 | fi |
| 5582 | |
| 5583 | echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5 |
| 5584 | echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6 |
| 5585 | if test "${ac_cv_lib_c_inet_pton+set}" = set; then |
| 5586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5587 | else |
| 5588 | ac_check_lib_save_LIBS=$LIBS |
| 5589 | LIBS="-lc $LIBS" |
| 5590 | cat >conftest.$ac_ext <<_ACEOF |
| 5591 | #line $LINENO "configure" |
| 5592 | #include "confdefs.h" |
| 5593 | |
| 5594 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5595 | #ifdef __cplusplus |
| 5596 | extern "C" |
| 5597 | #endif |
| 5598 | /* We use char because int might match the return type of a gcc2 |
| 5599 | builtin and then its argument prototype would still apply. */ |
| 5600 | char inet_pton (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5601 | #ifdef F77_DUMMY_MAIN |
| 5602 | # ifdef __cplusplus |
| 5603 | extern "C" |
| 5604 | # endif |
| 5605 | int F77_DUMMY_MAIN() { return 1; } |
| 5606 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5607 | int |
| 5608 | main () |
| 5609 | { |
| 5610 | inet_pton (); |
| 5611 | ; |
| 5612 | return 0; |
| 5613 | } |
| 5614 | _ACEOF |
| 5615 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5617 | (eval $ac_link) 2>&5 |
| 5618 | ac_status=$? |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); } && |
| 5621 | { ac_try='test -s conftest$ac_exeext' |
| 5622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5623 | (eval $ac_try) 2>&5 |
| 5624 | ac_status=$? |
| 5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5626 | (exit $ac_status); }; }; then |
| 5627 | ac_cv_lib_c_inet_pton=yes |
| 5628 | else |
| 5629 | echo "$as_me: failed program was:" >&5 |
| 5630 | cat conftest.$ac_ext >&5 |
| 5631 | ac_cv_lib_c_inet_pton=no |
| 5632 | fi |
| 5633 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5634 | LIBS=$ac_check_lib_save_LIBS |
| 5635 | fi |
| 5636 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5 |
| 5637 | echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6 |
| 5638 | if test $ac_cv_lib_c_inet_pton = yes; then |
| 5639 | cat >>confdefs.h <<\_ACEOF |
| 5640 | #define HAVE_INET_PTON 1 |
| 5641 | _ACEOF |
| 5642 | |
| 5643 | fi |
| 5644 | |
| 5645 | |
| 5646 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
| 5647 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
| 5648 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
| 5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5650 | else |
| 5651 | ac_check_lib_save_LIBS=$LIBS |
| 5652 | LIBS="-lcrypt $LIBS" |
| 5653 | cat >conftest.$ac_ext <<_ACEOF |
| 5654 | #line $LINENO "configure" |
| 5655 | #include "confdefs.h" |
| 5656 | |
| 5657 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5658 | #ifdef __cplusplus |
| 5659 | extern "C" |
| 5660 | #endif |
| 5661 | /* We use char because int might match the return type of a gcc2 |
| 5662 | builtin and then its argument prototype would still apply. */ |
| 5663 | char crypt (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5664 | #ifdef F77_DUMMY_MAIN |
| 5665 | # ifdef __cplusplus |
| 5666 | extern "C" |
| 5667 | # endif |
| 5668 | int F77_DUMMY_MAIN() { return 1; } |
| 5669 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5670 | int |
| 5671 | main () |
| 5672 | { |
| 5673 | crypt (); |
| 5674 | ; |
| 5675 | return 0; |
| 5676 | } |
| 5677 | _ACEOF |
| 5678 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5680 | (eval $ac_link) 2>&5 |
| 5681 | ac_status=$? |
| 5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5683 | (exit $ac_status); } && |
| 5684 | { ac_try='test -s conftest$ac_exeext' |
| 5685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5686 | (eval $ac_try) 2>&5 |
| 5687 | ac_status=$? |
| 5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5689 | (exit $ac_status); }; }; then |
| 5690 | ac_cv_lib_crypt_crypt=yes |
| 5691 | else |
| 5692 | echo "$as_me: failed program was:" >&5 |
| 5693 | cat conftest.$ac_ext >&5 |
| 5694 | ac_cv_lib_crypt_crypt=no |
| 5695 | fi |
| 5696 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5697 | LIBS=$ac_check_lib_save_LIBS |
| 5698 | fi |
| 5699 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
| 5700 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
| 5701 | if test $ac_cv_lib_crypt_crypt = yes; then |
| 5702 | cat >>confdefs.h <<_ACEOF |
| 5703 | #define HAVE_LIBCRYPT 1 |
| 5704 | _ACEOF |
| 5705 | |
| 5706 | LIBS="-lcrypt $LIBS" |
| 5707 | |
| 5708 | fi |
| 5709 | |
| 5710 | |
| 5711 | echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5 |
| 5712 | echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6 |
| 5713 | if test "${ac_cv_lib_resolv_res_init+set}" = set; then |
| 5714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5715 | else |
| 5716 | ac_check_lib_save_LIBS=$LIBS |
| 5717 | LIBS="-lresolv $LIBS" |
| 5718 | cat >conftest.$ac_ext <<_ACEOF |
| 5719 | #line $LINENO "configure" |
| 5720 | #include "confdefs.h" |
| 5721 | |
| 5722 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5723 | #ifdef __cplusplus |
| 5724 | extern "C" |
| 5725 | #endif |
| 5726 | /* We use char because int might match the return type of a gcc2 |
| 5727 | builtin and then its argument prototype would still apply. */ |
| 5728 | char res_init (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5729 | #ifdef F77_DUMMY_MAIN |
| 5730 | # ifdef __cplusplus |
| 5731 | extern "C" |
| 5732 | # endif |
| 5733 | int F77_DUMMY_MAIN() { return 1; } |
| 5734 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5735 | int |
| 5736 | main () |
| 5737 | { |
| 5738 | res_init (); |
| 5739 | ; |
| 5740 | return 0; |
| 5741 | } |
| 5742 | _ACEOF |
| 5743 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5745 | (eval $ac_link) 2>&5 |
| 5746 | ac_status=$? |
| 5747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5748 | (exit $ac_status); } && |
| 5749 | { ac_try='test -s conftest$ac_exeext' |
| 5750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5751 | (eval $ac_try) 2>&5 |
| 5752 | ac_status=$? |
| 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5754 | (exit $ac_status); }; }; then |
| 5755 | ac_cv_lib_resolv_res_init=yes |
| 5756 | else |
| 5757 | echo "$as_me: failed program was:" >&5 |
| 5758 | cat conftest.$ac_ext >&5 |
| 5759 | ac_cv_lib_resolv_res_init=no |
| 5760 | fi |
| 5761 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5762 | LIBS=$ac_check_lib_save_LIBS |
| 5763 | fi |
| 5764 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5 |
| 5765 | echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6 |
| 5766 | if test $ac_cv_lib_resolv_res_init = yes; then |
| 5767 | cat >>confdefs.h <<_ACEOF |
| 5768 | #define HAVE_LIBRESOLV 1 |
| 5769 | _ACEOF |
| 5770 | |
| 5771 | LIBS="-lresolv $LIBS" |
| 5772 | |
| 5773 | fi |
| 5774 | |
| 5775 | |
| 5776 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 5777 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 5778 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 5779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5780 | else |
| 5781 | ac_check_lib_save_LIBS=$LIBS |
| 5782 | LIBS="-lm $LIBS" |
| 5783 | cat >conftest.$ac_ext <<_ACEOF |
| 5784 | #line $LINENO "configure" |
| 5785 | #include "confdefs.h" |
| 5786 | |
| 5787 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5788 | #ifdef F77_DUMMY_MAIN |
| 5789 | # ifdef __cplusplus |
| 5790 | extern "C" |
| 5791 | # endif |
| 5792 | int F77_DUMMY_MAIN() { return 1; } |
| 5793 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5794 | int |
| 5795 | main () |
| 5796 | { |
| 5797 | main (); |
| 5798 | ; |
| 5799 | return 0; |
| 5800 | } |
| 5801 | _ACEOF |
| 5802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5804 | (eval $ac_link) 2>&5 |
| 5805 | ac_status=$? |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); } && |
| 5808 | { ac_try='test -s conftest$ac_exeext' |
| 5809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5810 | (eval $ac_try) 2>&5 |
| 5811 | ac_status=$? |
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5813 | (exit $ac_status); }; }; then |
| 5814 | ac_cv_lib_m_main=yes |
| 5815 | else |
| 5816 | echo "$as_me: failed program was:" >&5 |
| 5817 | cat conftest.$ac_ext >&5 |
| 5818 | ac_cv_lib_m_main=no |
| 5819 | fi |
| 5820 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5821 | LIBS=$ac_check_lib_save_LIBS |
| 5822 | fi |
| 5823 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 5824 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 5825 | if test $ac_cv_lib_m_main = yes; then |
| 5826 | cat >>confdefs.h <<_ACEOF |
| 5827 | #define HAVE_LIBM 1 |
| 5828 | _ACEOF |
| 5829 | |
| 5830 | LIBS="-lm $LIBS" |
| 5831 | |
| 5832 | fi |
| 5833 | |
| 5834 | |
| 5835 | echo "$as_me:$LINENO: checking for __inet_ntop" >&5 |
| 5836 | echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6 |
| 5837 | if test "${ac_cv_func___inet_ntop+set}" = set; then |
| 5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5839 | else |
| 5840 | cat >conftest.$ac_ext <<_ACEOF |
| 5841 | #line $LINENO "configure" |
| 5842 | #include "confdefs.h" |
| 5843 | /* System header to define __stub macros and hopefully few prototypes, |
| 5844 | which can conflict with char __inet_ntop (); below. */ |
| 5845 | #include <assert.h> |
| 5846 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5847 | #ifdef __cplusplus |
| 5848 | extern "C" |
| 5849 | #endif |
| 5850 | /* We use char because int might match the return type of a gcc2 |
| 5851 | builtin and then its argument prototype would still apply. */ |
| 5852 | char __inet_ntop (); |
| 5853 | char (*f) (); |
| 5854 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5855 | #ifdef F77_DUMMY_MAIN |
| 5856 | # ifdef __cplusplus |
| 5857 | extern "C" |
| 5858 | # endif |
| 5859 | int F77_DUMMY_MAIN() { return 1; } |
| 5860 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5861 | int |
| 5862 | main () |
| 5863 | { |
| 5864 | /* The GNU C library defines this for functions which it implements |
| 5865 | to always fail with ENOSYS. Some functions are actually named |
| 5866 | something starting with __ and the normal name is an alias. */ |
| 5867 | #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop) |
| 5868 | choke me |
| 5869 | #else |
| 5870 | f = __inet_ntop; |
| 5871 | #endif |
| 5872 | |
| 5873 | ; |
| 5874 | return 0; |
| 5875 | } |
| 5876 | _ACEOF |
| 5877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5879 | (eval $ac_link) 2>&5 |
| 5880 | ac_status=$? |
| 5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5882 | (exit $ac_status); } && |
| 5883 | { ac_try='test -s conftest$ac_exeext' |
| 5884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5885 | (eval $ac_try) 2>&5 |
| 5886 | ac_status=$? |
| 5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5888 | (exit $ac_status); }; }; then |
| 5889 | ac_cv_func___inet_ntop=yes |
| 5890 | else |
| 5891 | echo "$as_me: failed program was:" >&5 |
| 5892 | cat conftest.$ac_ext >&5 |
| 5893 | ac_cv_func___inet_ntop=no |
| 5894 | fi |
| 5895 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5896 | fi |
| 5897 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5 |
| 5898 | echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6 |
| 5899 | if test $ac_cv_func___inet_ntop = yes; then |
| 5900 | cat >>confdefs.h <<\_ACEOF |
| 5901 | #define HAVE_INET_NTOP 1 |
| 5902 | _ACEOF |
| 5903 | |
| 5904 | fi |
| 5905 | |
| 5906 | echo "$as_me:$LINENO: checking for __inet_pton" >&5 |
| 5907 | echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6 |
| 5908 | if test "${ac_cv_func___inet_pton+set}" = set; then |
| 5909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5910 | else |
| 5911 | cat >conftest.$ac_ext <<_ACEOF |
| 5912 | #line $LINENO "configure" |
| 5913 | #include "confdefs.h" |
| 5914 | /* System header to define __stub macros and hopefully few prototypes, |
| 5915 | which can conflict with char __inet_pton (); below. */ |
| 5916 | #include <assert.h> |
| 5917 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5918 | #ifdef __cplusplus |
| 5919 | extern "C" |
| 5920 | #endif |
| 5921 | /* We use char because int might match the return type of a gcc2 |
| 5922 | builtin and then its argument prototype would still apply. */ |
| 5923 | char __inet_pton (); |
| 5924 | char (*f) (); |
| 5925 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5926 | #ifdef F77_DUMMY_MAIN |
| 5927 | # ifdef __cplusplus |
| 5928 | extern "C" |
| 5929 | # endif |
| 5930 | int F77_DUMMY_MAIN() { return 1; } |
| 5931 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5932 | int |
| 5933 | main () |
| 5934 | { |
| 5935 | /* The GNU C library defines this for functions which it implements |
| 5936 | to always fail with ENOSYS. Some functions are actually named |
| 5937 | something starting with __ and the normal name is an alias. */ |
| 5938 | #if defined (__stub___inet_pton) || defined (__stub_____inet_pton) |
| 5939 | choke me |
| 5940 | #else |
| 5941 | f = __inet_pton; |
| 5942 | #endif |
| 5943 | |
| 5944 | ; |
| 5945 | return 0; |
| 5946 | } |
| 5947 | _ACEOF |
| 5948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5950 | (eval $ac_link) 2>&5 |
| 5951 | ac_status=$? |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); } && |
| 5954 | { ac_try='test -s conftest$ac_exeext' |
| 5955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5956 | (eval $ac_try) 2>&5 |
| 5957 | ac_status=$? |
| 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5959 | (exit $ac_status); }; }; then |
| 5960 | ac_cv_func___inet_pton=yes |
| 5961 | else |
| 5962 | echo "$as_me: failed program was:" >&5 |
| 5963 | cat conftest.$ac_ext >&5 |
| 5964 | ac_cv_func___inet_pton=no |
| 5965 | fi |
| 5966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5967 | fi |
| 5968 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5 |
| 5969 | echo "${ECHO_T}$ac_cv_func___inet_pton" >&6 |
| 5970 | if test $ac_cv_func___inet_pton = yes; then |
| 5971 | cat >>confdefs.h <<\_ACEOF |
| 5972 | #define HAVE_INET_PTON 1 |
| 5973 | _ACEOF |
| 5974 | |
| 5975 | fi |
| 5976 | |
| 5977 | echo "$as_me:$LINENO: checking for __inet_aton" >&5 |
| 5978 | echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6 |
| 5979 | if test "${ac_cv_func___inet_aton+set}" = set; then |
| 5980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5981 | else |
| 5982 | cat >conftest.$ac_ext <<_ACEOF |
| 5983 | #line $LINENO "configure" |
| 5984 | #include "confdefs.h" |
| 5985 | /* System header to define __stub macros and hopefully few prototypes, |
| 5986 | which can conflict with char __inet_aton (); below. */ |
| 5987 | #include <assert.h> |
| 5988 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5989 | #ifdef __cplusplus |
| 5990 | extern "C" |
| 5991 | #endif |
| 5992 | /* We use char because int might match the return type of a gcc2 |
| 5993 | builtin and then its argument prototype would still apply. */ |
| 5994 | char __inet_aton (); |
| 5995 | char (*f) (); |
| 5996 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 5997 | #ifdef F77_DUMMY_MAIN |
| 5998 | # ifdef __cplusplus |
| 5999 | extern "C" |
| 6000 | # endif |
| 6001 | int F77_DUMMY_MAIN() { return 1; } |
| 6002 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6003 | int |
| 6004 | main () |
| 6005 | { |
| 6006 | /* The GNU C library defines this for functions which it implements |
| 6007 | to always fail with ENOSYS. Some functions are actually named |
| 6008 | something starting with __ and the normal name is an alias. */ |
| 6009 | #if defined (__stub___inet_aton) || defined (__stub_____inet_aton) |
| 6010 | choke me |
| 6011 | #else |
| 6012 | f = __inet_aton; |
| 6013 | #endif |
| 6014 | |
| 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6021 | (eval $ac_link) 2>&5 |
| 6022 | ac_status=$? |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); } && |
| 6025 | { ac_try='test -s conftest$ac_exeext' |
| 6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6027 | (eval $ac_try) 2>&5 |
| 6028 | ac_status=$? |
| 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6030 | (exit $ac_status); }; }; then |
| 6031 | ac_cv_func___inet_aton=yes |
| 6032 | else |
| 6033 | echo "$as_me: failed program was:" >&5 |
| 6034 | cat conftest.$ac_ext >&5 |
| 6035 | ac_cv_func___inet_aton=no |
| 6036 | fi |
| 6037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6038 | fi |
| 6039 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5 |
| 6040 | echo "${ECHO_T}$ac_cv_func___inet_aton" >&6 |
| 6041 | if test $ac_cv_func___inet_aton = yes; then |
| 6042 | cat >>confdefs.h <<\_ACEOF |
| 6043 | #define HAVE_INET_ATON 1 |
| 6044 | _ACEOF |
| 6045 | |
| 6046 | fi |
| 6047 | |
| 6048 | |
| 6049 | echo "$as_me:$LINENO: checking for regexec in -lc" >&5 |
| 6050 | echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6 |
| 6051 | if test "${ac_cv_lib_c_regexec+set}" = set; then |
| 6052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6053 | else |
| 6054 | ac_check_lib_save_LIBS=$LIBS |
| 6055 | LIBS="-lc $LIBS" |
| 6056 | cat >conftest.$ac_ext <<_ACEOF |
| 6057 | #line $LINENO "configure" |
| 6058 | #include "confdefs.h" |
| 6059 | |
| 6060 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6061 | #ifdef __cplusplus |
| 6062 | extern "C" |
| 6063 | #endif |
| 6064 | /* We use char because int might match the return type of a gcc2 |
| 6065 | builtin and then its argument prototype would still apply. */ |
| 6066 | char regexec (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6067 | #ifdef F77_DUMMY_MAIN |
| 6068 | # ifdef __cplusplus |
| 6069 | extern "C" |
| 6070 | # endif |
| 6071 | int F77_DUMMY_MAIN() { return 1; } |
| 6072 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6073 | int |
| 6074 | main () |
| 6075 | { |
| 6076 | regexec (); |
| 6077 | ; |
| 6078 | return 0; |
| 6079 | } |
| 6080 | _ACEOF |
| 6081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6083 | (eval $ac_link) 2>&5 |
| 6084 | ac_status=$? |
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); } && |
| 6087 | { ac_try='test -s conftest$ac_exeext' |
| 6088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6089 | (eval $ac_try) 2>&5 |
| 6090 | ac_status=$? |
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6092 | (exit $ac_status); }; }; then |
| 6093 | ac_cv_lib_c_regexec=yes |
| 6094 | else |
| 6095 | echo "$as_me: failed program was:" >&5 |
| 6096 | cat conftest.$ac_ext >&5 |
| 6097 | ac_cv_lib_c_regexec=no |
| 6098 | fi |
| 6099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6100 | LIBS=$ac_check_lib_save_LIBS |
| 6101 | fi |
| 6102 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5 |
| 6103 | echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6 |
| 6104 | if test $ac_cv_lib_c_regexec = yes; then |
| 6105 | cat >>confdefs.h <<\_ACEOF |
| 6106 | #define HAVE_GNU_REGEX 1 |
| 6107 | _ACEOF |
| 6108 | |
| 6109 | LIB_REGEX="" |
| 6110 | else |
| 6111 | LIB_REGEX="regex.o" |
| 6112 | fi |
| 6113 | |
| 6114 | |
| 6115 | |
| 6116 | |
| 6117 | if test "${enable_snmp}" = "yes";then |
| 6118 | old_libs="${LIBS}" |
| 6119 | LIBS="-L/usr/local/lib" |
| 6120 | unset ac_cv_lib_snmp_asn_parse_int |
| 6121 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6122 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6123 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | ac_check_lib_save_LIBS=$LIBS |
| 6127 | LIBS="-lsnmp $LIBS" |
| 6128 | cat >conftest.$ac_ext <<_ACEOF |
| 6129 | #line $LINENO "configure" |
| 6130 | #include "confdefs.h" |
| 6131 | |
| 6132 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6133 | #ifdef __cplusplus |
| 6134 | extern "C" |
| 6135 | #endif |
| 6136 | /* We use char because int might match the return type of a gcc2 |
| 6137 | builtin and then its argument prototype would still apply. */ |
| 6138 | char asn_parse_int (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6139 | #ifdef F77_DUMMY_MAIN |
| 6140 | # ifdef __cplusplus |
| 6141 | extern "C" |
| 6142 | # endif |
| 6143 | int F77_DUMMY_MAIN() { return 1; } |
| 6144 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6145 | int |
| 6146 | main () |
| 6147 | { |
| 6148 | asn_parse_int (); |
| 6149 | ; |
| 6150 | return 0; |
| 6151 | } |
| 6152 | _ACEOF |
| 6153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6155 | (eval $ac_link) 2>&5 |
| 6156 | ac_status=$? |
| 6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6158 | (exit $ac_status); } && |
| 6159 | { ac_try='test -s conftest$ac_exeext' |
| 6160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6161 | (eval $ac_try) 2>&5 |
| 6162 | ac_status=$? |
| 6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6164 | (exit $ac_status); }; }; then |
| 6165 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6166 | else |
| 6167 | echo "$as_me: failed program was:" >&5 |
| 6168 | cat conftest.$ac_ext >&5 |
| 6169 | ac_cv_lib_snmp_asn_parse_int=no |
| 6170 | fi |
| 6171 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6172 | LIBS=$ac_check_lib_save_LIBS |
| 6173 | fi |
| 6174 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6175 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6176 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6177 | HAVE_SNMP=yes |
| 6178 | fi |
| 6179 | |
| 6180 | if test "${HAVE_SNMP}" = ""; then |
| 6181 | unset ac_cv_lib_snmp_asn_parse_int |
| 6182 | echo "$as_me:$LINENO: checking for main in -lcrypto" >&5 |
| 6183 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 6184 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6186 | else |
| 6187 | ac_check_lib_save_LIBS=$LIBS |
| 6188 | LIBS="-lcrypto $LIBS" |
| 6189 | cat >conftest.$ac_ext <<_ACEOF |
| 6190 | #line $LINENO "configure" |
| 6191 | #include "confdefs.h" |
| 6192 | |
| 6193 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6194 | #ifdef F77_DUMMY_MAIN |
| 6195 | # ifdef __cplusplus |
| 6196 | extern "C" |
| 6197 | # endif |
| 6198 | int F77_DUMMY_MAIN() { return 1; } |
| 6199 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6200 | int |
| 6201 | main () |
| 6202 | { |
| 6203 | main (); |
| 6204 | ; |
| 6205 | return 0; |
| 6206 | } |
| 6207 | _ACEOF |
| 6208 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6210 | (eval $ac_link) 2>&5 |
| 6211 | ac_status=$? |
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6213 | (exit $ac_status); } && |
| 6214 | { ac_try='test -s conftest$ac_exeext' |
| 6215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6216 | (eval $ac_try) 2>&5 |
| 6217 | ac_status=$? |
| 6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6219 | (exit $ac_status); }; }; then |
| 6220 | ac_cv_lib_crypto_main=yes |
| 6221 | else |
| 6222 | echo "$as_me: failed program was:" >&5 |
| 6223 | cat conftest.$ac_ext >&5 |
| 6224 | ac_cv_lib_crypto_main=no |
| 6225 | fi |
| 6226 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6227 | LIBS=$ac_check_lib_save_LIBS |
| 6228 | fi |
| 6229 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5 |
| 6230 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 6231 | if test $ac_cv_lib_crypto_main = yes; then |
| 6232 | NEED_CRYPTO=yes |
| 6233 | fi |
| 6234 | |
| 6235 | if test "${NEED_CRYPTO}" = ""; then |
| 6236 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6237 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6238 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6240 | else |
| 6241 | ac_check_lib_save_LIBS=$LIBS |
| 6242 | LIBS="-lsnmp $LIBS" |
| 6243 | cat >conftest.$ac_ext <<_ACEOF |
| 6244 | #line $LINENO "configure" |
| 6245 | #include "confdefs.h" |
| 6246 | |
| 6247 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6248 | #ifdef __cplusplus |
| 6249 | extern "C" |
| 6250 | #endif |
| 6251 | /* We use char because int might match the return type of a gcc2 |
| 6252 | builtin and then its argument prototype would still apply. */ |
| 6253 | char asn_parse_int (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6254 | #ifdef F77_DUMMY_MAIN |
| 6255 | # ifdef __cplusplus |
| 6256 | extern "C" |
| 6257 | # endif |
| 6258 | int F77_DUMMY_MAIN() { return 1; } |
| 6259 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6260 | int |
| 6261 | main () |
| 6262 | { |
| 6263 | asn_parse_int (); |
| 6264 | ; |
| 6265 | return 0; |
| 6266 | } |
| 6267 | _ACEOF |
| 6268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6270 | (eval $ac_link) 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); } && |
| 6274 | { ac_try='test -s conftest$ac_exeext' |
| 6275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6276 | (eval $ac_try) 2>&5 |
| 6277 | ac_status=$? |
| 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 | (exit $ac_status); }; }; then |
| 6280 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6281 | else |
| 6282 | echo "$as_me: failed program was:" >&5 |
| 6283 | cat conftest.$ac_ext >&5 |
| 6284 | ac_cv_lib_snmp_asn_parse_int=no |
| 6285 | fi |
| 6286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6287 | LIBS=$ac_check_lib_save_LIBS |
| 6288 | fi |
| 6289 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6290 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6291 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6292 | HAVE_SNMP=yes; NEED_CRYPTO=yes |
| 6293 | fi |
| 6294 | |
| 6295 | else |
| 6296 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6297 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6298 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6300 | else |
| 6301 | ac_check_lib_save_LIBS=$LIBS |
| 6302 | LIBS="-lsnmp "-lcrypto" $LIBS" |
| 6303 | cat >conftest.$ac_ext <<_ACEOF |
| 6304 | #line $LINENO "configure" |
| 6305 | #include "confdefs.h" |
| 6306 | |
| 6307 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6308 | #ifdef __cplusplus |
| 6309 | extern "C" |
| 6310 | #endif |
| 6311 | /* We use char because int might match the return type of a gcc2 |
| 6312 | builtin and then its argument prototype would still apply. */ |
| 6313 | char asn_parse_int (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6314 | #ifdef F77_DUMMY_MAIN |
| 6315 | # ifdef __cplusplus |
| 6316 | extern "C" |
| 6317 | # endif |
| 6318 | int F77_DUMMY_MAIN() { return 1; } |
| 6319 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6320 | int |
| 6321 | main () |
| 6322 | { |
| 6323 | asn_parse_int (); |
| 6324 | ; |
| 6325 | return 0; |
| 6326 | } |
| 6327 | _ACEOF |
| 6328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6330 | (eval $ac_link) 2>&5 |
| 6331 | ac_status=$? |
| 6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6333 | (exit $ac_status); } && |
| 6334 | { ac_try='test -s conftest$ac_exeext' |
| 6335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6336 | (eval $ac_try) 2>&5 |
| 6337 | ac_status=$? |
| 6338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6339 | (exit $ac_status); }; }; then |
| 6340 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6341 | else |
| 6342 | echo "$as_me: failed program was:" >&5 |
| 6343 | cat conftest.$ac_ext >&5 |
| 6344 | ac_cv_lib_snmp_asn_parse_int=no |
| 6345 | fi |
| 6346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6347 | LIBS=$ac_check_lib_save_LIBS |
| 6348 | fi |
| 6349 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6350 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6351 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6352 | HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto" |
| 6353 | fi |
| 6354 | |
| 6355 | fi |
| 6356 | fi |
| 6357 | LIBS="${old_libs}" |
| 6358 | |
| 6359 | if test "${HAVE_SNMP}" = ""; then |
| 6360 | old_libs="${LIBS}" |
| 6361 | LIBS="-L/usr/local/lib" |
| 6362 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6363 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6364 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6366 | else |
| 6367 | ac_check_lib_save_LIBS=$LIBS |
| 6368 | LIBS="-lsnmp $LIBS" |
| 6369 | cat >conftest.$ac_ext <<_ACEOF |
| 6370 | #line $LINENO "configure" |
| 6371 | #include "confdefs.h" |
| 6372 | |
| 6373 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6374 | #ifdef __cplusplus |
| 6375 | extern "C" |
| 6376 | #endif |
| 6377 | /* We use char because int might match the return type of a gcc2 |
| 6378 | builtin and then its argument prototype would still apply. */ |
| 6379 | char asn_parse_int (); |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6380 | #ifdef F77_DUMMY_MAIN |
| 6381 | # ifdef __cplusplus |
| 6382 | extern "C" |
| 6383 | # endif |
| 6384 | int F77_DUMMY_MAIN() { return 1; } |
| 6385 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6386 | int |
| 6387 | main () |
| 6388 | { |
| 6389 | asn_parse_int (); |
| 6390 | ; |
| 6391 | return 0; |
| 6392 | } |
| 6393 | _ACEOF |
| 6394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6396 | (eval $ac_link) 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); } && |
| 6400 | { ac_try='test -s conftest$ac_exeext' |
| 6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6402 | (eval $ac_try) 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; }; then |
| 6406 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6407 | else |
| 6408 | echo "$as_me: failed program was:" >&5 |
| 6409 | cat conftest.$ac_ext >&5 |
| 6410 | ac_cv_lib_snmp_asn_parse_int=no |
| 6411 | fi |
| 6412 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6413 | LIBS=$ac_check_lib_save_LIBS |
| 6414 | fi |
| 6415 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6416 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6417 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6418 | HAVE_SNMP=yes |
| 6419 | fi |
| 6420 | |
| 6421 | LIBS="${old_libs}" |
| 6422 | fi |
| 6423 | if test "${HAVE_SNMP}" = "yes"; then |
| 6424 | for ac_snmp in /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null |
| 6425 | do |
| 6426 | test -f "${ac_snmp}" && break |
| 6427 | done |
| 6428 | case ${ac_snmp} in |
| 6429 | /usr/include/ucd-snmp/*) |
| 6430 | cat >>confdefs.h <<\_ACEOF |
| 6431 | #define HAVE_SNMP 1 |
| 6432 | _ACEOF |
| 6433 | |
| 6434 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 6435 | LIBS="${LIBS} -lsnmp" |
| 6436 | ;; |
| 6437 | /usr/local/include/ucd-snmp/*) |
| 6438 | cat >>confdefs.h <<\_ACEOF |
| 6439 | #define HAVE_SNMP 1 |
| 6440 | _ACEOF |
| 6441 | |
| 6442 | CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp" |
| 6443 | LIBS="${LIBS} -L/usr/local/lib -lsnmp" |
| 6444 | ;; |
| 6445 | esac |
| 6446 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6447 | LIBS="${LIBS} -lcrypto" |
| 6448 | fi |
| 6449 | fi |
| 6450 | fi |
| 6451 | |
| 6452 | echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5 |
| 6453 | echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6 |
| 6454 | cat >conftest.$ac_ext <<_ACEOF |
| 6455 | #line $LINENO "configure" |
| 6456 | #include "confdefs.h" |
| 6457 | #include <sys/types.h> |
| 6458 | #include <sys/socket.h> |
| 6459 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6460 | #ifdef F77_DUMMY_MAIN |
| 6461 | # ifdef __cplusplus |
| 6462 | extern "C" |
| 6463 | # endif |
| 6464 | int F77_DUMMY_MAIN() { return 1; } |
| 6465 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6466 | int |
| 6467 | main () |
| 6468 | { |
| 6469 | static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len); |
| 6470 | ; |
| 6471 | return 0; |
| 6472 | } |
| 6473 | _ACEOF |
| 6474 | rm -f conftest.$ac_objext |
| 6475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6476 | (eval $ac_compile) 2>&5 |
| 6477 | ac_status=$? |
| 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6479 | (exit $ac_status); } && |
| 6480 | { ac_try='test -s conftest.$ac_objext' |
| 6481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6482 | (eval $ac_try) 2>&5 |
| 6483 | ac_status=$? |
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6485 | (exit $ac_status); }; }; then |
| 6486 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6487 | echo "${ECHO_T}yes" >&6 |
| 6488 | cat >>confdefs.h <<\_ACEOF |
| 6489 | #define HAVE_SA_LEN 1 |
| 6490 | _ACEOF |
| 6491 | |
| 6492 | else |
| 6493 | echo "$as_me: failed program was:" >&5 |
| 6494 | cat conftest.$ac_ext >&5 |
| 6495 | echo "$as_me:$LINENO: result: no" >&5 |
| 6496 | echo "${ECHO_T}no" >&6 |
| 6497 | fi |
| 6498 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6499 | |
| 6500 | echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5 |
| 6501 | echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6 |
| 6502 | cat >conftest.$ac_ext <<_ACEOF |
| 6503 | #line $LINENO "configure" |
| 6504 | #include "confdefs.h" |
| 6505 | #include <sys/types.h> |
| 6506 | #include <netinet/in.h> |
| 6507 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6508 | #ifdef F77_DUMMY_MAIN |
| 6509 | # ifdef __cplusplus |
| 6510 | extern "C" |
| 6511 | # endif |
| 6512 | int F77_DUMMY_MAIN() { return 1; } |
| 6513 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6514 | int |
| 6515 | main () |
| 6516 | { |
| 6517 | static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len); |
| 6518 | ; |
| 6519 | return 0; |
| 6520 | } |
| 6521 | _ACEOF |
| 6522 | rm -f conftest.$ac_objext |
| 6523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6524 | (eval $ac_compile) 2>&5 |
| 6525 | ac_status=$? |
| 6526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6527 | (exit $ac_status); } && |
| 6528 | { ac_try='test -s conftest.$ac_objext' |
| 6529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6530 | (eval $ac_try) 2>&5 |
| 6531 | ac_status=$? |
| 6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6533 | (exit $ac_status); }; }; then |
| 6534 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6535 | echo "${ECHO_T}yes" >&6 |
| 6536 | cat >>confdefs.h <<\_ACEOF |
| 6537 | #define HAVE_SIN_LEN 1 |
| 6538 | _ACEOF |
| 6539 | |
| 6540 | else |
| 6541 | echo "$as_me: failed program was:" >&5 |
| 6542 | cat conftest.$ac_ext >&5 |
| 6543 | echo "$as_me:$LINENO: result: no" >&5 |
| 6544 | echo "${ECHO_T}no" >&6 |
| 6545 | fi |
| 6546 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6547 | |
| 6548 | echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5 |
| 6549 | echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6 |
| 6550 | cat >conftest.$ac_ext <<_ACEOF |
| 6551 | #line $LINENO "configure" |
| 6552 | #include "confdefs.h" |
| 6553 | #include <sys/types.h> |
| 6554 | #include <sys/un.h> |
| 6555 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6556 | #ifdef F77_DUMMY_MAIN |
| 6557 | # ifdef __cplusplus |
| 6558 | extern "C" |
| 6559 | # endif |
| 6560 | int F77_DUMMY_MAIN() { return 1; } |
| 6561 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6562 | int |
| 6563 | main () |
| 6564 | { |
| 6565 | static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len); |
| 6566 | ; |
| 6567 | return 0; |
| 6568 | } |
| 6569 | _ACEOF |
| 6570 | rm -f conftest.$ac_objext |
| 6571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6572 | (eval $ac_compile) 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); } && |
| 6576 | { ac_try='test -s conftest.$ac_objext' |
| 6577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6578 | (eval $ac_try) 2>&5 |
| 6579 | ac_status=$? |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); }; }; then |
| 6582 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6583 | echo "${ECHO_T}yes" >&6 |
| 6584 | cat >>confdefs.h <<\_ACEOF |
| 6585 | #define HAVE_SUN_LEN 1 |
| 6586 | _ACEOF |
| 6587 | |
| 6588 | else |
| 6589 | echo "$as_me: failed program was:" >&5 |
| 6590 | cat conftest.$ac_ext >&5 |
| 6591 | echo "$as_me:$LINENO: result: no" >&5 |
| 6592 | echo "${ECHO_T}no" >&6 |
| 6593 | fi |
| 6594 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6595 | |
| 6596 | if test "$zebra_cv_ipv6" = yes; then |
| 6597 | echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 |
| 6598 | echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6 |
| 6599 | cat >conftest.$ac_ext <<_ACEOF |
| 6600 | #line $LINENO "configure" |
| 6601 | #include "confdefs.h" |
| 6602 | #include <sys/types.h> |
| 6603 | #include <netinet/in.h> |
| 6604 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6605 | #ifdef F77_DUMMY_MAIN |
| 6606 | # ifdef __cplusplus |
| 6607 | extern "C" |
| 6608 | # endif |
| 6609 | int F77_DUMMY_MAIN() { return 1; } |
| 6610 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6611 | int |
| 6612 | main () |
| 6613 | { |
| 6614 | static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id); |
| 6615 | ; |
| 6616 | return 0; |
| 6617 | } |
| 6618 | _ACEOF |
| 6619 | rm -f conftest.$ac_objext |
| 6620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6621 | (eval $ac_compile) 2>&5 |
| 6622 | ac_status=$? |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); } && |
| 6625 | { ac_try='test -s conftest.$ac_objext' |
| 6626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6627 | (eval $ac_try) 2>&5 |
| 6628 | ac_status=$? |
| 6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); }; }; then |
| 6631 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6632 | echo "${ECHO_T}yes" >&6 |
| 6633 | cat >>confdefs.h <<\_ACEOF |
| 6634 | #define HAVE_SIN6_SCOPE_ID 1 |
| 6635 | _ACEOF |
| 6636 | |
| 6637 | else |
| 6638 | echo "$as_me: failed program was:" >&5 |
| 6639 | cat conftest.$ac_ext >&5 |
| 6640 | echo "$as_me:$LINENO: result: no" >&5 |
| 6641 | echo "${ECHO_T}no" >&6 |
| 6642 | fi |
| 6643 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6644 | fi |
| 6645 | |
| 6646 | echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5 |
| 6647 | echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6 |
| 6648 | cat >conftest.$ac_ext <<_ACEOF |
| 6649 | #line $LINENO "configure" |
| 6650 | #include "confdefs.h" |
| 6651 | #include <sys/types.h> |
| 6652 | #include <sys/socket.h> |
| 6653 | #include <netinet/in.h> |
| 6654 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6655 | #ifdef F77_DUMMY_MAIN |
| 6656 | # ifdef __cplusplus |
| 6657 | extern "C" |
| 6658 | # endif |
| 6659 | int F77_DUMMY_MAIN() { return 1; } |
| 6660 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6661 | int |
| 6662 | main () |
| 6663 | { |
| 6664 | socklen_t ac_x; |
| 6665 | ; |
| 6666 | return 0; |
| 6667 | } |
| 6668 | _ACEOF |
| 6669 | rm -f conftest.$ac_objext |
| 6670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6671 | (eval $ac_compile) 2>&5 |
| 6672 | ac_status=$? |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); } && |
| 6675 | { ac_try='test -s conftest.$ac_objext' |
| 6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6677 | (eval $ac_try) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); }; }; then |
| 6681 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6682 | echo "${ECHO_T}yes" >&6 |
| 6683 | cat >>confdefs.h <<\_ACEOF |
| 6684 | #define HAVE_SOCKLEN_T 1 |
| 6685 | _ACEOF |
| 6686 | |
| 6687 | else |
| 6688 | echo "$as_me: failed program was:" >&5 |
| 6689 | cat conftest.$ac_ext >&5 |
| 6690 | echo "$as_me:$LINENO: result: no" >&5 |
| 6691 | echo "${ECHO_T}no" >&6 |
| 6692 | fi |
| 6693 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6694 | |
| 6695 | echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5 |
| 6696 | echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6 |
| 6697 | cat >conftest.$ac_ext <<_ACEOF |
| 6698 | #line $LINENO "configure" |
| 6699 | #include "confdefs.h" |
| 6700 | #include <net/if_dl.h> |
| 6701 | |
| 6702 | _ACEOF |
| 6703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6704 | egrep "sockaddr_dl" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6705 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6706 | echo "${ECHO_T}yes" >&6 |
| 6707 | cat >>confdefs.h <<\_ACEOF |
| 6708 | #define HAVE_SOCKADDR_DL 1 |
| 6709 | _ACEOF |
| 6710 | |
| 6711 | else |
| 6712 | echo "$as_me:$LINENO: result: no" >&5 |
| 6713 | echo "${ECHO_T}no" >&6 |
| 6714 | fi |
| 6715 | rm -f conftest* |
| 6716 | |
| 6717 | |
| 6718 | echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5 |
| 6719 | echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6 |
| 6720 | cat >conftest.$ac_ext <<_ACEOF |
| 6721 | #line $LINENO "configure" |
| 6722 | #include "confdefs.h" |
| 6723 | #include <net/if.h> |
| 6724 | |
| 6725 | _ACEOF |
| 6726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6727 | egrep "ifaliasreq" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6728 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6729 | echo "${ECHO_T}yes" >&6 |
| 6730 | cat >>confdefs.h <<\_ACEOF |
| 6731 | #define HAVE_IFALIASREQ 1 |
| 6732 | _ACEOF |
| 6733 | |
| 6734 | else |
| 6735 | echo "$as_me:$LINENO: result: no" >&5 |
| 6736 | echo "${ECHO_T}no" >&6 |
| 6737 | fi |
| 6738 | rm -f conftest* |
| 6739 | |
| 6740 | |
| 6741 | echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5 |
| 6742 | echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6 |
| 6743 | cat >conftest.$ac_ext <<_ACEOF |
| 6744 | #line $LINENO "configure" |
| 6745 | #include "confdefs.h" |
| 6746 | #include <netinet6/in6_var.h> |
| 6747 | |
| 6748 | _ACEOF |
| 6749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6750 | egrep "in6_aliasreq" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6751 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6752 | echo "${ECHO_T}yes" >&6 |
| 6753 | cat >>confdefs.h <<\_ACEOF |
| 6754 | #define HAVE_IN6_ALIASREQ 1 |
| 6755 | _ACEOF |
| 6756 | |
| 6757 | else |
| 6758 | echo "$as_me:$LINENO: result: no" >&5 |
| 6759 | echo "${ECHO_T}no" >&6 |
| 6760 | fi |
| 6761 | rm -f conftest* |
| 6762 | |
| 6763 | |
| 6764 | echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5 |
| 6765 | echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6 |
| 6766 | cat >conftest.$ac_ext <<_ACEOF |
| 6767 | #line $LINENO "configure" |
| 6768 | #include "confdefs.h" |
| 6769 | #include <net/route.h> |
| 6770 | |
| 6771 | _ACEOF |
| 6772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6773 | egrep "rt_addrinfo" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6774 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6775 | echo "${ECHO_T}yes" >&6 |
| 6776 | cat >>confdefs.h <<\_ACEOF |
| 6777 | #define HAVE_RT_ADDRINFO 1 |
| 6778 | _ACEOF |
| 6779 | |
| 6780 | else |
| 6781 | echo "$as_me:$LINENO: result: no" >&5 |
| 6782 | echo "${ECHO_T}no" >&6 |
| 6783 | fi |
| 6784 | rm -f conftest* |
| 6785 | |
| 6786 | |
| 6787 | echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5 |
| 6788 | echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6 |
| 6789 | cat >conftest.$ac_ext <<_ACEOF |
| 6790 | #line $LINENO "configure" |
| 6791 | #include "confdefs.h" |
| 6792 | #include <netinet/in.h> |
| 6793 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6794 | #ifdef F77_DUMMY_MAIN |
| 6795 | # ifdef __cplusplus |
| 6796 | extern "C" |
| 6797 | # endif |
| 6798 | int F77_DUMMY_MAIN() { return 1; } |
| 6799 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6800 | int |
| 6801 | main () |
| 6802 | { |
| 6803 | struct in_pktinfo ac_x; |
| 6804 | ; |
| 6805 | return 0; |
| 6806 | } |
| 6807 | _ACEOF |
| 6808 | rm -f conftest.$ac_objext |
| 6809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6810 | (eval $ac_compile) 2>&5 |
| 6811 | ac_status=$? |
| 6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6813 | (exit $ac_status); } && |
| 6814 | { ac_try='test -s conftest.$ac_objext' |
| 6815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6816 | (eval $ac_try) 2>&5 |
| 6817 | ac_status=$? |
| 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6819 | (exit $ac_status); }; }; then |
| 6820 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6821 | echo "${ECHO_T}yes" >&6 |
| 6822 | cat >>confdefs.h <<\_ACEOF |
| 6823 | #define HAVE_INPKTINFO 1 |
| 6824 | _ACEOF |
| 6825 | |
| 6826 | else |
| 6827 | echo "$as_me: failed program was:" >&5 |
| 6828 | cat conftest.$ac_ext >&5 |
| 6829 | echo "$as_me:$LINENO: result: no" >&5 |
| 6830 | echo "${ECHO_T}no" >&6 |
| 6831 | fi |
| 6832 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6833 | |
| 6834 | echo "$as_me:$LINENO: checking whether getrusage is available" >&5 |
| 6835 | echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6 |
| 6836 | cat >conftest.$ac_ext <<_ACEOF |
| 6837 | #line $LINENO "configure" |
| 6838 | #include "confdefs.h" |
| 6839 | #include <sys/resource.h> |
| 6840 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6841 | #ifdef F77_DUMMY_MAIN |
| 6842 | # ifdef __cplusplus |
| 6843 | extern "C" |
| 6844 | # endif |
| 6845 | int F77_DUMMY_MAIN() { return 1; } |
| 6846 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6847 | int |
| 6848 | main () |
| 6849 | { |
| 6850 | struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); |
| 6851 | ; |
| 6852 | return 0; |
| 6853 | } |
| 6854 | _ACEOF |
| 6855 | rm -f conftest.$ac_objext |
| 6856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6857 | (eval $ac_compile) 2>&5 |
| 6858 | ac_status=$? |
| 6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6860 | (exit $ac_status); } && |
| 6861 | { ac_try='test -s conftest.$ac_objext' |
| 6862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6863 | (eval $ac_try) 2>&5 |
| 6864 | ac_status=$? |
| 6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6866 | (exit $ac_status); }; }; then |
| 6867 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6868 | echo "${ECHO_T}yes" >&6 |
| 6869 | cat >>confdefs.h <<\_ACEOF |
| 6870 | #define HAVE_RUSAGE 1 |
| 6871 | _ACEOF |
| 6872 | |
| 6873 | else |
| 6874 | echo "$as_me: failed program was:" >&5 |
| 6875 | cat conftest.$ac_ext >&5 |
| 6876 | echo "$as_me:$LINENO: result: no" >&5 |
| 6877 | echo "${ECHO_T}no" >&6 |
| 6878 | fi |
| 6879 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6880 | |
| 6881 | file="${srcdir}/lib/version.h" |
| 6882 | VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file` |
| 6883 | |
| 6884 | |
| 6885 | echo "$as_me:$LINENO: checking pid file directory" >&5 |
| 6886 | echo $ECHO_N "checking pid file directory... $ECHO_C" >&6 |
| 6887 | if test "${ac_piddir+set}" = set; then |
| 6888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6889 | else |
| 6890 | for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null; |
| 6891 | do |
| 6892 | test -d $ZEBRA_PID_DIR && break |
| 6893 | done |
| 6894 | ac_piddir=$ZEBRA_PID_DIR |
| 6895 | if test $ZEBRA_PID_DIR = "/dev/null"; then |
| 6896 | echo "PID DIRECTORY NOT FOUND!" |
| 6897 | fi |
| 6898 | fi |
| 6899 | echo "$as_me:$LINENO: result: $ac_piddir" >&5 |
| 6900 | echo "${ECHO_T}$ac_piddir" >&6 |
| 6901 | cat >>confdefs.h <<_ACEOF |
| 6902 | #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid" |
| 6903 | _ACEOF |
| 6904 | |
| 6905 | cat >>confdefs.h <<_ACEOF |
| 6906 | #define PATH_RIPD_PID "$ac_piddir/ripd.pid" |
| 6907 | _ACEOF |
| 6908 | |
| 6909 | cat >>confdefs.h <<_ACEOF |
| 6910 | #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid" |
| 6911 | _ACEOF |
| 6912 | |
| 6913 | cat >>confdefs.h <<_ACEOF |
| 6914 | #define PATH_BGPD_PID "$ac_piddir/bgpd.pid" |
| 6915 | _ACEOF |
| 6916 | |
| 6917 | cat >>confdefs.h <<_ACEOF |
| 6918 | #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid" |
| 6919 | _ACEOF |
| 6920 | |
| 6921 | cat >>confdefs.h <<_ACEOF |
| 6922 | #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid" |
| 6923 | _ACEOF |
| 6924 | |
| 6925 | |
| 6926 | |
| 6927 | echo "$as_me:$LINENO: checking for working htonl" >&5 |
| 6928 | echo $ECHO_N "checking for working htonl... $ECHO_C" >&6 |
| 6929 | if test "${ac_cv_htonl_works+set}" = set; then |
| 6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6931 | else |
| 6932 | |
| 6933 | cat >conftest.$ac_ext <<_ACEOF |
| 6934 | #line $LINENO "configure" |
| 6935 | #include "confdefs.h" |
| 6936 | #ifdef HAVE_SYS_TYPES_H |
| 6937 | #include <sys/types.h> |
| 6938 | #endif |
| 6939 | #ifdef HAVE_NETDB_H |
| 6940 | #include <netdb.h> |
| 6941 | #endif |
| 6942 | #ifdef HAVE_NETINET_IN_H |
| 6943 | #include <netinet/in.h> |
| 6944 | #endif |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6945 | #ifdef F77_DUMMY_MAIN |
| 6946 | # ifdef __cplusplus |
| 6947 | extern "C" |
| 6948 | # endif |
| 6949 | int F77_DUMMY_MAIN() { return 1; } |
| 6950 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6951 | int |
| 6952 | main () |
| 6953 | { |
| 6954 | htonl (0); |
| 6955 | ; |
| 6956 | return 0; |
| 6957 | } |
| 6958 | _ACEOF |
| 6959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6961 | (eval $ac_link) 2>&5 |
| 6962 | ac_status=$? |
| 6963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6964 | (exit $ac_status); } && |
| 6965 | { ac_try='test -s conftest$ac_exeext' |
| 6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6967 | (eval $ac_try) 2>&5 |
| 6968 | ac_status=$? |
| 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6970 | (exit $ac_status); }; }; then |
| 6971 | ac_cv_htonl_works=yes |
| 6972 | else |
| 6973 | echo "$as_me: failed program was:" >&5 |
| 6974 | cat conftest.$ac_ext >&5 |
| 6975 | ac_cv_htonl_works=no |
| 6976 | fi |
| 6977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6978 | fi |
| 6979 | |
| 6980 | echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5 |
| 6981 | echo "${ECHO_T}$ac_cv_htonl_works" >&6 |
| 6982 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6983 | ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6984 | cat >confcache <<\_ACEOF |
| 6985 | # This file is a shell script that caches the results of configure |
| 6986 | # tests run on this system so they can be shared between configure |
| 6987 | # scripts and configure runs, see configure's option --config-cache. |
| 6988 | # It is not useful on other systems. If it contains results you don't |
| 6989 | # want to keep, you may remove or edit it. |
| 6990 | # |
| 6991 | # config.status only pays attention to the cache file if you give it |
| 6992 | # the --recheck option to rerun configure. |
| 6993 | # |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 6994 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6995 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6996 | # following values. |
| 6997 | |
| 6998 | _ACEOF |
| 6999 | |
| 7000 | # The following way of writing the cache mishandles newlines in values, |
| 7001 | # but we know of no workaround that is simple, portable, and efficient. |
| 7002 | # So, don't put newlines in cache variables' values. |
| 7003 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7004 | # and sets the high bit in the cache file unless we assign to the vars. |
| 7005 | { |
| 7006 | (set) 2>&1 | |
| 7007 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 7008 | *ac_space=\ *) |
| 7009 | # `set' does not quote correctly, so add quotes (double-quote |
| 7010 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 7011 | sed -n \ |
| 7012 | "s/'/'\\\\''/g; |
| 7013 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7014 | ;; |
| 7015 | *) |
| 7016 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7017 | sed -n \ |
| 7018 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 7019 | ;; |
| 7020 | esac; |
| 7021 | } | |
| 7022 | sed ' |
| 7023 | t clear |
| 7024 | : clear |
| 7025 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7026 | t end |
| 7027 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7028 | : end' >>confcache |
| 7029 | if cmp -s $cache_file confcache; then :; else |
| 7030 | if test -w $cache_file; then |
| 7031 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 7032 | cat confcache >$cache_file |
| 7033 | else |
| 7034 | echo "not updating unwritable cache $cache_file" |
| 7035 | fi |
| 7036 | fi |
| 7037 | rm -f confcache |
| 7038 | |
| 7039 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7040 | # Let make expand exec_prefix. |
| 7041 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7042 | |
| 7043 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7044 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7045 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7046 | # (actually we leave an empty line to preserve line numbers). |
| 7047 | if test "x$srcdir" = x.; then |
| 7048 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7049 | s/:*\$(srcdir):*/:/; |
| 7050 | s/:*\${srcdir}:*/:/; |
| 7051 | s/:*@srcdir@:*/:/; |
| 7052 | s/^\([^=]*=[ ]*\):*/\1/; |
| 7053 | s/:*$//; |
| 7054 | s/^[^=]*=[ ]*$//; |
| 7055 | }' |
| 7056 | fi |
| 7057 | |
| 7058 | DEFS=-DHAVE_CONFIG_H |
| 7059 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7060 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 7061 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 7062 | Usually this means the macro was only invoked conditionally." >&5 |
| 7063 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 7064 | Usually this means the macro was only invoked conditionally." >&2;} |
| 7065 | { (exit 1); exit 1; }; } |
| 7066 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7067 | |
| 7068 | : ${CONFIG_STATUS=./config.status} |
| 7069 | ac_clean_files_save=$ac_clean_files |
| 7070 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7071 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 7072 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7073 | cat >$CONFIG_STATUS <<_ACEOF |
| 7074 | #! $SHELL |
| 7075 | # Generated by $as_me. |
| 7076 | # Run this file to recreate the current configuration. |
| 7077 | # Compiler output produced by configure, useful for debugging |
| 7078 | # configure, is in config.log if it exists. |
| 7079 | |
| 7080 | debug=false |
| 7081 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7082 | _ACEOF |
| 7083 | |
| 7084 | cat >>$CONFIG_STATUS <<\_ACEOF |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7085 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7086 | ## --------------------- ## |
| 7087 | ## M4sh Initialization. ## |
| 7088 | ## --------------------- ## |
| 7089 | |
| 7090 | # Be Bourne compatible |
| 7091 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 7092 | emulate sh |
| 7093 | NULLCMD=: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7094 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 7095 | set -o posix |
| 7096 | fi |
| 7097 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7098 | # NLS nuisances. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7099 | # Support unset when possible. |
| 7100 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 7101 | as_unset=unset |
| 7102 | else |
| 7103 | as_unset=false |
| 7104 | fi |
| 7105 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7106 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 7107 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 7108 | { LANG=C; export LANG; } |
| 7109 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 7110 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 7111 | { LC_ALL=C; export LC_ALL; } |
| 7112 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 7113 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 7114 | { LC_TIME=C; export LC_TIME; } |
| 7115 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 7116 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 7117 | { LC_CTYPE=C; export LC_CTYPE; } |
| 7118 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 7119 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 7120 | { LANGUAGE=C; export LANGUAGE; } |
| 7121 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 7122 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 7123 | { LC_COLLATE=C; export LC_COLLATE; } |
| 7124 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 7125 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 7126 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 7127 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 7128 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 7129 | { LC_MESSAGES=C; export LC_MESSAGES; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7130 | |
| 7131 | |
| 7132 | # Name of the executable. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7133 | as_me=`(basename "$0") 2>/dev/null || |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7135 | X"$0" : 'X\(//\)$' \| \ |
| 7136 | X"$0" : 'X\(/\)$' \| \ |
| 7137 | . : '\(.\)' 2>/dev/null || |
| 7138 | echo X/"$0" | |
| 7139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 7140 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 7141 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 7142 | s/.*/./; q'` |
| 7143 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7144 | # PATH needs CR, and LINENO needs CR and PATH. |
| 7145 | # Avoid depending upon Character Ranges. |
| 7146 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7147 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7148 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7149 | as_cr_digits='0123456789' |
| 7150 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 7151 | |
| 7152 | # The user is always right. |
| 7153 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7154 | echo "#! /bin/sh" >conftest.sh |
| 7155 | echo "exit 0" >>conftest.sh |
| 7156 | chmod +x conftest.sh |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7157 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7158 | PATH_SEPARATOR=';' |
| 7159 | else |
| 7160 | PATH_SEPARATOR=: |
| 7161 | fi |
| 7162 | rm -f conftest.sh |
| 7163 | fi |
| 7164 | |
| 7165 | |
| 7166 | as_lineno_1=$LINENO |
| 7167 | as_lineno_2=$LINENO |
| 7168 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 7169 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 7170 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 7171 | # Find who we are. Look in the path if we contain no path at all |
| 7172 | # relative or not. |
| 7173 | case $0 in |
| 7174 | *[\\/]* ) as_myself=$0 ;; |
| 7175 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7176 | for as_dir in $PATH |
| 7177 | do |
| 7178 | IFS=$as_save_IFS |
| 7179 | test -z "$as_dir" && as_dir=. |
| 7180 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7181 | done |
| 7182 | |
| 7183 | ;; |
| 7184 | esac |
| 7185 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7186 | # in which case we are not to be found in the path. |
| 7187 | if test "x$as_myself" = x; then |
| 7188 | as_myself=$0 |
| 7189 | fi |
| 7190 | if test ! -f "$as_myself"; then |
| 7191 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 7192 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 7193 | { (exit 1); exit 1; }; } |
| 7194 | fi |
| 7195 | case $CONFIG_SHELL in |
| 7196 | '') |
| 7197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7198 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 7199 | do |
| 7200 | IFS=$as_save_IFS |
| 7201 | test -z "$as_dir" && as_dir=. |
| 7202 | for as_base in sh bash ksh sh5; do |
| 7203 | case $as_dir in |
| 7204 | /*) |
| 7205 | if ("$as_dir/$as_base" -c ' |
| 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" ') 2>/dev/null; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7211 | CONFIG_SHELL=$as_dir/$as_base |
| 7212 | export CONFIG_SHELL |
| 7213 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 7214 | fi;; |
| 7215 | esac |
| 7216 | done |
| 7217 | done |
| 7218 | ;; |
| 7219 | esac |
| 7220 | |
| 7221 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 7222 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 7223 | # line-number line before each line; the second 'sed' does the real |
| 7224 | # work. The second script uses 'N' to pair each line-number line |
| 7225 | # with the numbered line, and appends trailing '-' during |
| 7226 | # substitution so that $LINENO is not a special case at line end. |
| 7227 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 7228 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 7229 | sed '=' <$as_myself | |
| 7230 | sed ' |
| 7231 | N |
| 7232 | s,$,-, |
| 7233 | : loop |
| 7234 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 7235 | t loop |
| 7236 | s,-$,, |
| 7237 | s,^['$as_cr_digits']*\n,, |
| 7238 | ' >$as_me.lineno && |
| 7239 | chmod +x $as_me.lineno || |
| 7240 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 7241 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 7242 | { (exit 1); exit 1; }; } |
| 7243 | |
| 7244 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 7245 | # (the dirname of $[0] is not the place where we might find the |
| 7246 | # original and so on. Autoconf is especially sensible to this). |
| 7247 | . ./$as_me.lineno |
| 7248 | # Exit status is that of the last command. |
| 7249 | exit |
| 7250 | } |
| 7251 | |
| 7252 | |
| 7253 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 7254 | *c*,-n*) ECHO_N= ECHO_C=' |
| 7255 | ' ECHO_T=' ' ;; |
| 7256 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 7257 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 7258 | esac |
| 7259 | |
| 7260 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 7261 | as_expr=expr |
| 7262 | else |
| 7263 | as_expr=false |
| 7264 | fi |
| 7265 | |
| 7266 | rm -f conf$$ conf$$.exe conf$$.file |
| 7267 | echo >conf$$.file |
| 7268 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7269 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 7270 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 7271 | if test -f conf$$.exe; then |
| 7272 | # Don't use ln at all; we don't have any links |
| 7273 | as_ln_s='cp -p' |
| 7274 | else |
| 7275 | as_ln_s='ln -s' |
| 7276 | fi |
| 7277 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7278 | as_ln_s=ln |
| 7279 | else |
| 7280 | as_ln_s='cp -p' |
| 7281 | fi |
| 7282 | rm -f conf$$ conf$$.exe conf$$.file |
| 7283 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7284 | as_executable_p="test -f" |
| 7285 | |
| 7286 | # Sed expression to map a string onto a valid CPP name. |
| 7287 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 7288 | |
| 7289 | # Sed expression to map a string onto a valid variable name. |
| 7290 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 7291 | |
| 7292 | |
| 7293 | # IFS |
| 7294 | # We need space, tab and new line, in precisely that order. |
| 7295 | as_nl=' |
| 7296 | ' |
| 7297 | IFS=" $as_nl" |
| 7298 | |
| 7299 | # CDPATH. |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7300 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7301 | |
| 7302 | exec 6>&1 |
| 7303 | |
| 7304 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 7305 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7306 | # values after options handling. Logging --version etc. is OK. |
| 7307 | exec 5>>config.log |
| 7308 | { |
| 7309 | echo |
| 7310 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7311 | ## Running $as_me. ## |
| 7312 | _ASBOX |
| 7313 | } >&5 |
| 7314 | cat >&5 <<_CSEOF |
| 7315 | |
| 7316 | This file was extended by $as_me, which was |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7317 | generated by GNU Autoconf 2.53. Invocation command line was |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7318 | |
| 7319 | CONFIG_FILES = $CONFIG_FILES |
| 7320 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7321 | CONFIG_LINKS = $CONFIG_LINKS |
| 7322 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7323 | $ $0 $@ |
| 7324 | |
| 7325 | _CSEOF |
| 7326 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 7327 | echo >&5 |
| 7328 | _ACEOF |
| 7329 | |
| 7330 | # Files that config.status was made for. |
| 7331 | if test -n "$ac_config_files"; then |
| 7332 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 7333 | fi |
| 7334 | |
| 7335 | if test -n "$ac_config_headers"; then |
| 7336 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 7337 | fi |
| 7338 | |
| 7339 | if test -n "$ac_config_links"; then |
| 7340 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 7341 | fi |
| 7342 | |
| 7343 | if test -n "$ac_config_commands"; then |
| 7344 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 7345 | fi |
| 7346 | |
| 7347 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7348 | |
| 7349 | ac_cs_usage="\ |
| 7350 | \`$as_me' instantiates files from templates according to the |
| 7351 | current configuration. |
| 7352 | |
| 7353 | Usage: $0 [OPTIONS] [FILE]... |
| 7354 | |
| 7355 | -h, --help print this help, then exit |
| 7356 | -V, --version print version number, then exit |
| 7357 | -d, --debug don't remove temporary files |
| 7358 | --recheck update $as_me by reconfiguring in the same conditions |
| 7359 | --file=FILE[:TEMPLATE] |
| 7360 | instantiate the configuration file FILE |
| 7361 | --header=FILE[:TEMPLATE] |
| 7362 | instantiate the configuration header FILE |
| 7363 | |
| 7364 | Configuration files: |
| 7365 | $config_files |
| 7366 | |
| 7367 | Configuration headers: |
| 7368 | $config_headers |
| 7369 | |
| 7370 | Configuration commands: |
| 7371 | $config_commands |
| 7372 | |
| 7373 | Report bugs to <bug-autoconf@gnu.org>." |
| 7374 | _ACEOF |
| 7375 | |
| 7376 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7377 | ac_cs_version="\\ |
| 7378 | config.status |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7379 | configured by $0, generated by GNU Autoconf 2.53, |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7380 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 7381 | |
| 7382 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 7383 | Free Software Foundation, Inc. |
| 7384 | This config.status script is free software; the Free Software Foundation |
| 7385 | gives unlimited permission to copy, distribute and modify it." |
| 7386 | srcdir=$srcdir |
| 7387 | INSTALL="$INSTALL" |
| 7388 | _ACEOF |
| 7389 | |
| 7390 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7391 | # If no file are specified by the user, then we need to provide default |
| 7392 | # value. By we need to know if files were specified by the user. |
| 7393 | ac_need_defaults=: |
| 7394 | while test $# != 0 |
| 7395 | do |
| 7396 | case $1 in |
| 7397 | --*=*) |
| 7398 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 7399 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7400 | shift |
| 7401 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 7402 | shift |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7403 | ;; |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7404 | -*);; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7405 | *) # This is not an option, so the user has probably given explicit |
| 7406 | # arguments. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7407 | ac_need_defaults=false;; |
| 7408 | esac |
| 7409 | |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7410 | case $1 in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7411 | # Handling of the options. |
| 7412 | _ACEOF |
| 7413 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7414 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7415 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 7416 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 7417 | _ACEOF |
| 7418 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7419 | --version | --vers* | -V ) |
| 7420 | echo "$ac_cs_version"; exit 0 ;; |
| 7421 | --he | --h) |
| 7422 | # Conflict between --help and --header |
| 7423 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 7424 | Try \`$0 --help' for more information." >&5 |
| 7425 | echo "$as_me: error: ambiguous option: $1 |
| 7426 | Try \`$0 --help' for more information." >&2;} |
| 7427 | { (exit 1); exit 1; }; };; |
| 7428 | --help | --hel | -h ) |
| 7429 | echo "$ac_cs_usage"; exit 0 ;; |
| 7430 | --debug | --d* | -d ) |
| 7431 | debug=: ;; |
| 7432 | --file | --fil | --fi | --f ) |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7433 | shift |
| 7434 | CONFIG_FILES="$CONFIG_FILES $1" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7435 | ac_need_defaults=false;; |
| 7436 | --header | --heade | --head | --hea ) |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7437 | shift |
| 7438 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7439 | ac_need_defaults=false;; |
| 7440 | |
| 7441 | # This is an error. |
| 7442 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 7443 | Try \`$0 --help' for more information." >&5 |
| 7444 | echo "$as_me: error: unrecognized option: $1 |
| 7445 | Try \`$0 --help' for more information." >&2;} |
| 7446 | { (exit 1); exit 1; }; } ;; |
| 7447 | |
| 7448 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 7449 | |
| 7450 | esac |
| 7451 | shift |
| 7452 | done |
| 7453 | |
| 7454 | _ACEOF |
| 7455 | |
| 7456 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7457 | # |
| 7458 | # INIT-COMMANDS section. |
| 7459 | # |
| 7460 | |
| 7461 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7462 | |
| 7463 | _ACEOF |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7468 | for ac_config_target in $ac_config_targets |
| 7469 | do |
| 7470 | case "$ac_config_target" in |
| 7471 | # Handling of arguments. |
| 7472 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7473 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 7474 | "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;; |
| 7475 | "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;; |
| 7476 | "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;; |
| 7477 | "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;; |
| 7478 | "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;; |
| 7479 | "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;; |
| 7480 | "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;; |
| 7481 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 7482 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7483 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 7485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7486 | { (exit 1); exit 1; }; };; |
| 7487 | esac |
| 7488 | done |
| 7489 | |
| 7490 | # If the user did not use the arguments to specify the items to instantiate, |
| 7491 | # then the envvar interface is used. Set only those that are not. |
| 7492 | # We use the long form for the default assignment because of an extremely |
| 7493 | # bizarre bug on SunOS 4.1.3. |
| 7494 | if $ac_need_defaults; then |
| 7495 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7496 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7497 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7498 | fi |
| 7499 | |
| 7500 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7501 | $debug || |
| 7502 | { |
| 7503 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7504 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7505 | } |
| 7506 | |
| 7507 | # Create a (secure) tmp directory for tmp files. |
| 7508 | : ${TMPDIR=/tmp} |
| 7509 | { |
| 7510 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 7511 | test -n "$tmp" && test -d "$tmp" |
| 7512 | } || |
| 7513 | { |
| 7514 | tmp=$TMPDIR/cs$$-$RANDOM |
| 7515 | (umask 077 && mkdir $tmp) |
| 7516 | } || |
| 7517 | { |
| 7518 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 7519 | { (exit 1); exit 1; } |
| 7520 | } |
| 7521 | |
| 7522 | _ACEOF |
| 7523 | |
| 7524 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7525 | |
| 7526 | # |
| 7527 | # CONFIG_FILES section. |
| 7528 | # |
| 7529 | |
| 7530 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7531 | # This happens for instance when ./config.status config.h |
| 7532 | if test -n "\$CONFIG_FILES"; then |
| 7533 | # Protect against being on the right side of a sed subst in config.status. |
| 7534 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7535 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7536 | s,@SHELL@,$SHELL,;t t |
| 7537 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7538 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7539 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7540 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7541 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7542 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7543 | s,@exec_prefix@,$exec_prefix,;t t |
| 7544 | s,@prefix@,$prefix,;t t |
| 7545 | s,@program_transform_name@,$program_transform_name,;t t |
| 7546 | s,@bindir@,$bindir,;t t |
| 7547 | s,@sbindir@,$sbindir,;t t |
| 7548 | s,@libexecdir@,$libexecdir,;t t |
| 7549 | s,@datadir@,$datadir,;t t |
| 7550 | s,@sysconfdir@,$sysconfdir,;t t |
| 7551 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7552 | s,@localstatedir@,$localstatedir,;t t |
| 7553 | s,@libdir@,$libdir,;t t |
| 7554 | s,@includedir@,$includedir,;t t |
| 7555 | s,@oldincludedir@,$oldincludedir,;t t |
| 7556 | s,@infodir@,$infodir,;t t |
| 7557 | s,@mandir@,$mandir,;t t |
| 7558 | s,@build_alias@,$build_alias,;t t |
| 7559 | s,@host_alias@,$host_alias,;t t |
| 7560 | s,@target_alias@,$target_alias,;t t |
| 7561 | s,@DEFS@,$DEFS,;t t |
| 7562 | s,@ECHO_C@,$ECHO_C,;t t |
| 7563 | s,@ECHO_N@,$ECHO_N,;t t |
| 7564 | s,@ECHO_T@,$ECHO_T,;t t |
| 7565 | s,@LIBS@,$LIBS,;t t |
| 7566 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7567 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7568 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7569 | s,@PACKAGE@,$PACKAGE,;t t |
| 7570 | s,@VERSION@,$VERSION,;t t |
| 7571 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 7572 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 7573 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7574 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7575 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 7576 | s,@AMTAR@,$AMTAR,;t t |
| 7577 | s,@install_sh@,$install_sh,;t t |
| 7578 | s,@STRIP@,$STRIP,;t t |
| 7579 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 7580 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7581 | s,@AWK@,$AWK,;t t |
| 7582 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7583 | s,@build@,$build,;t t |
| 7584 | s,@build_cpu@,$build_cpu,;t t |
| 7585 | s,@build_vendor@,$build_vendor,;t t |
| 7586 | s,@build_os@,$build_os,;t t |
| 7587 | s,@host@,$host,;t t |
| 7588 | s,@host_cpu@,$host_cpu,;t t |
| 7589 | s,@host_vendor@,$host_vendor,;t t |
| 7590 | s,@host_os@,$host_os,;t t |
| 7591 | s,@CC@,$CC,;t t |
| 7592 | s,@CFLAGS@,$CFLAGS,;t t |
| 7593 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7594 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7595 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7596 | s,@EXEEXT@,$EXEEXT,;t t |
| 7597 | s,@OBJEXT@,$OBJEXT,;t t |
| 7598 | s,@DEPDIR@,$DEPDIR,;t t |
| 7599 | s,@am__include@,$am__include,;t t |
| 7600 | s,@am__quote@,$am__quote,;t t |
| 7601 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7602 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7603 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7604 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7605 | s,@CPP@,$CPP,;t t |
| 7606 | s,@AR@,$AR,;t t |
| 7607 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 7608 | s,@RANLIB@,$RANLIB,;t t |
| 7609 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7610 | s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t |
| 7611 | s,@LIBPAM@,$LIBPAM,;t t |
| 7612 | s,@RT_METHOD@,$RT_METHOD,;t t |
| 7613 | s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t |
| 7614 | s,@OTHER_METHOD@,$OTHER_METHOD,;t t |
| 7615 | s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t |
| 7616 | s,@IF_METHOD@,$IF_METHOD,;t t |
| 7617 | s,@IF_PROC@,$IF_PROC,;t t |
| 7618 | s,@IPFORWARD@,$IPFORWARD,;t t |
| 7619 | s,@LIB_IPV6@,$LIB_IPV6,;t t |
| 7620 | s,@ZEBRA@,$ZEBRA,;t t |
| 7621 | s,@BGPD@,$BGPD,;t t |
| 7622 | s,@RIPD@,$RIPD,;t t |
| 7623 | s,@RIPNGD@,$RIPNGD,;t t |
| 7624 | s,@OSPFD@,$OSPFD,;t t |
| 7625 | s,@OSPF6D@,$OSPF6D,;t t |
| 7626 | s,@VTYSH@,$VTYSH,;t t |
| 7627 | s,@INCLUDES@,$INCLUDES,;t t |
| 7628 | s,@CURSES@,$CURSES,;t t |
| 7629 | s,@LIB_REGEX@,$LIB_REGEX,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7630 | CEOF |
| 7631 | |
| 7632 | _ACEOF |
| 7633 | |
| 7634 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7635 | # Split the substitutions into bite-sized pieces for seds with |
| 7636 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7637 | ac_max_sed_lines=48 |
| 7638 | ac_sed_frag=1 # Number of current file. |
| 7639 | ac_beg=1 # First line for current file. |
| 7640 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7641 | ac_more_lines=: |
| 7642 | ac_sed_cmds= |
| 7643 | while $ac_more_lines; do |
| 7644 | if test $ac_beg -gt 1; then |
| 7645 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7646 | else |
| 7647 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7648 | fi |
| 7649 | if test ! -s $tmp/subs.frag; then |
| 7650 | ac_more_lines=false |
| 7651 | else |
| 7652 | # The purpose of the label and of the branching condition is to |
| 7653 | # speed up the sed processing (if there are no `@' at all, there |
| 7654 | # is no need to browse any of the substitutions). |
| 7655 | # These are the two extra sed commands mentioned above. |
| 7656 | (echo ':t |
| 7657 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7658 | if test -z "$ac_sed_cmds"; then |
| 7659 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7660 | else |
| 7661 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7662 | fi |
| 7663 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7664 | ac_beg=$ac_end |
| 7665 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7666 | fi |
| 7667 | done |
| 7668 | if test -z "$ac_sed_cmds"; then |
| 7669 | ac_sed_cmds=cat |
| 7670 | fi |
| 7671 | fi # test -n "$CONFIG_FILES" |
| 7672 | |
| 7673 | _ACEOF |
| 7674 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7675 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7676 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7677 | case $ac_file in |
| 7678 | - | *:- | *:-:* ) # input from stdin |
| 7679 | cat >$tmp/stdin |
| 7680 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7681 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7682 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7683 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7684 | * ) ac_file_in=$ac_file.in ;; |
| 7685 | esac |
| 7686 | |
| 7687 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7688 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7689 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7690 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7691 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7692 | X"$ac_file" : 'X\(/\)' \| \ |
| 7693 | . : '\(.\)' 2>/dev/null || |
| 7694 | echo X"$ac_file" | |
| 7695 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7696 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7697 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7698 | /^X\(\/\).*/{ s//\1/; q; } |
| 7699 | s/.*/./; q'` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7700 | { case "$ac_dir" in |
| 7701 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7702 | *) as_incr_dir=.;; |
| 7703 | esac |
| 7704 | as_dummy="$ac_dir" |
| 7705 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7706 | case $as_mkdir_dir in |
| 7707 | # Skip DOS drivespec |
| 7708 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 7709 | *) |
| 7710 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7711 | test -d "$as_incr_dir" || |
| 7712 | mkdir "$as_incr_dir" || |
| 7713 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 7714 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 7715 | { (exit 1); exit 1; }; } |
| 7716 | ;; |
| 7717 | esac |
| 7718 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7719 | |
| 7720 | ac_builddir=. |
| 7721 | |
| 7722 | if test "$ac_dir" != .; then |
| 7723 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7724 | # A "../" for each directory in $ac_dir_suffix. |
| 7725 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7726 | else |
| 7727 | ac_dir_suffix= ac_top_builddir= |
| 7728 | fi |
| 7729 | |
| 7730 | case $srcdir in |
| 7731 | .) # No --srcdir option. We are building in place. |
| 7732 | ac_srcdir=. |
| 7733 | if test -z "$ac_top_builddir"; then |
| 7734 | ac_top_srcdir=. |
| 7735 | else |
| 7736 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7737 | fi ;; |
| 7738 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7739 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7740 | ac_top_srcdir=$srcdir ;; |
| 7741 | *) # Relative path. |
| 7742 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7743 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7744 | esac |
| 7745 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 7746 | # absolute. |
| 7747 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7748 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7749 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 7750 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 7751 | |
| 7752 | |
| 7753 | case $INSTALL in |
| 7754 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7755 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 7756 | esac |
| 7757 | |
| 7758 | if test x"$ac_file" != x-; then |
| 7759 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7760 | echo "$as_me: creating $ac_file" >&6;} |
| 7761 | rm -f "$ac_file" |
| 7762 | fi |
| 7763 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7764 | # use $as_me), people would be surprised to read: |
| 7765 | # /* config.h. Generated by config.status. */ |
| 7766 | if test x"$ac_file" = x-; then |
| 7767 | configure_input= |
| 7768 | else |
| 7769 | configure_input="$ac_file. " |
| 7770 | fi |
| 7771 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 7772 | sed 's,.*/,,'` by configure." |
| 7773 | |
| 7774 | # First look for the input files in the build tree, otherwise in the |
| 7775 | # src tree. |
| 7776 | ac_file_inputs=`IFS=: |
| 7777 | for f in $ac_file_in; do |
| 7778 | case $f in |
| 7779 | -) echo $tmp/stdin ;; |
| 7780 | [\\/$]*) |
| 7781 | # Absolute (can't be DOS-style, as IFS=:) |
| 7782 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7783 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7784 | { (exit 1); exit 1; }; } |
| 7785 | echo $f;; |
| 7786 | *) # Relative |
| 7787 | if test -f "$f"; then |
| 7788 | # Build tree |
| 7789 | echo $f |
| 7790 | elif test -f "$srcdir/$f"; then |
| 7791 | # Source tree |
| 7792 | echo $srcdir/$f |
| 7793 | else |
| 7794 | # /dev/null tree |
| 7795 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7796 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7797 | { (exit 1); exit 1; }; } |
| 7798 | fi;; |
| 7799 | esac |
| 7800 | done` || { (exit 1); exit 1; } |
| 7801 | _ACEOF |
| 7802 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7803 | sed "$ac_vpsub |
| 7804 | $extrasub |
| 7805 | _ACEOF |
| 7806 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7807 | :t |
| 7808 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7809 | s,@configure_input@,$configure_input,;t t |
| 7810 | s,@srcdir@,$ac_srcdir,;t t |
| 7811 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 7812 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7813 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 7814 | s,@builddir@,$ac_builddir,;t t |
| 7815 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 7816 | s,@top_builddir@,$ac_top_builddir,;t t |
| 7817 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 7818 | s,@INSTALL@,$ac_INSTALL,;t t |
| 7819 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7820 | rm -f $tmp/stdin |
| 7821 | if test x"$ac_file" != x-; then |
| 7822 | mv $tmp/out $ac_file |
| 7823 | else |
| 7824 | cat $tmp/out |
| 7825 | rm -f $tmp/out |
| 7826 | fi |
| 7827 | |
| 7828 | done |
| 7829 | _ACEOF |
| 7830 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7831 | |
| 7832 | # |
| 7833 | # CONFIG_HEADER section. |
| 7834 | # |
| 7835 | |
| 7836 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7837 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7838 | # |
| 7839 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 7840 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7841 | ac_dB='[ ].*$,\1#\2' |
| 7842 | ac_dC=' ' |
| 7843 | ac_dD=',;t' |
| 7844 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7845 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7846 | ac_uB='$,\1#\2define\3' |
| 7847 | ac_uC=' ' |
| 7848 | ac_uD=',;t' |
| 7849 | |
| 7850 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 7851 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7852 | case $ac_file in |
| 7853 | - | *:- | *:-:* ) # input from stdin |
| 7854 | cat >$tmp/stdin |
| 7855 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7856 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7857 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7858 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7859 | * ) ac_file_in=$ac_file.in ;; |
| 7860 | esac |
| 7861 | |
| 7862 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7863 | echo "$as_me: creating $ac_file" >&6;} |
| 7864 | |
| 7865 | # First look for the input files in the build tree, otherwise in the |
| 7866 | # src tree. |
| 7867 | ac_file_inputs=`IFS=: |
| 7868 | for f in $ac_file_in; do |
| 7869 | case $f in |
| 7870 | -) echo $tmp/stdin ;; |
| 7871 | [\\/$]*) |
| 7872 | # Absolute (can't be DOS-style, as IFS=:) |
| 7873 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7874 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7875 | { (exit 1); exit 1; }; } |
| 7876 | echo $f;; |
| 7877 | *) # Relative |
| 7878 | if test -f "$f"; then |
| 7879 | # Build tree |
| 7880 | echo $f |
| 7881 | elif test -f "$srcdir/$f"; then |
| 7882 | # Source tree |
| 7883 | echo $srcdir/$f |
| 7884 | else |
| 7885 | # /dev/null tree |
| 7886 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7887 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7888 | { (exit 1); exit 1; }; } |
| 7889 | fi;; |
| 7890 | esac |
| 7891 | done` || { (exit 1); exit 1; } |
| 7892 | # Remove the trailing spaces. |
| 7893 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 7894 | |
| 7895 | _ACEOF |
| 7896 | |
| 7897 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7898 | # `conftest.undefs', that substitutes the proper values into |
| 7899 | # config.h.in to produce config.h. The first handles `#define' |
| 7900 | # templates, and the second `#undef' templates. |
| 7901 | # And first: Protect against being on the right side of a sed subst in |
| 7902 | # config.status. Protect against being in an unquoted here document |
| 7903 | # in config.status. |
| 7904 | rm -f conftest.defines conftest.undefs |
| 7905 | # Using a here document instead of a string reduces the quoting nightmare. |
| 7906 | # Putting comments in sed scripts is not portable. |
| 7907 | # |
| 7908 | # `end' is used to avoid that the second main sed command (meant for |
| 7909 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 7910 | # See the Autoconf documentation for `clear'. |
| 7911 | cat >confdef2sed.sed <<\_ACEOF |
| 7912 | s/[\\&,]/\\&/g |
| 7913 | s,[\\$`],\\&,g |
| 7914 | t clear |
| 7915 | : clear |
| 7916 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 7917 | t end |
| 7918 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7919 | : end |
| 7920 | _ACEOF |
| 7921 | # If some macros were called several times there might be several times |
| 7922 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 7923 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 7924 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7925 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7926 | rm -f confdef2sed.sed |
| 7927 | |
| 7928 | # This sed command replaces #undef with comments. This is necessary, for |
| 7929 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7930 | # on some systems where configure will not decide to define it. |
| 7931 | cat >>conftest.undefs <<\_ACEOF |
| 7932 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7933 | _ACEOF |
| 7934 | |
| 7935 | # Break up conftest.defines because some shells have a limit on the size |
| 7936 | # of here documents, and old seds have small limits too (100 cmds). |
| 7937 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7938 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7939 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7940 | echo ' :' >>$CONFIG_STATUS |
| 7941 | rm -f conftest.tail |
| 7942 | while grep . conftest.defines >/dev/null |
| 7943 | do |
| 7944 | # Write a limited-size here document to $tmp/defines.sed. |
| 7945 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7946 | # Speed up: don't consider the non `#define' lines. |
| 7947 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7948 | # Work around the forget-to-reset-the-flag bug. |
| 7949 | echo 't clr' >>$CONFIG_STATUS |
| 7950 | echo ': clr' >>$CONFIG_STATUS |
| 7951 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 7952 | echo 'CEOF |
| 7953 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7954 | rm -f $tmp/in |
| 7955 | mv $tmp/out $tmp/in |
| 7956 | ' >>$CONFIG_STATUS |
| 7957 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 7958 | rm -f conftest.defines |
| 7959 | mv conftest.tail conftest.defines |
| 7960 | done |
| 7961 | rm -f conftest.defines |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 7962 | echo ' fi # egrep' >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7963 | echo >>$CONFIG_STATUS |
| 7964 | |
| 7965 | # Break up conftest.undefs because some shells have a limit on the size |
| 7966 | # of here documents, and old seds have small limits too (100 cmds). |
| 7967 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 7968 | rm -f conftest.tail |
| 7969 | while grep . conftest.undefs >/dev/null |
| 7970 | do |
| 7971 | # Write a limited-size here document to $tmp/undefs.sed. |
| 7972 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 7973 | # Speed up: don't consider the non `#undef' |
| 7974 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 7975 | # Work around the forget-to-reset-the-flag bug. |
| 7976 | echo 't clr' >>$CONFIG_STATUS |
| 7977 | echo ': clr' >>$CONFIG_STATUS |
| 7978 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 7979 | echo 'CEOF |
| 7980 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 7981 | rm -f $tmp/in |
| 7982 | mv $tmp/out $tmp/in |
| 7983 | ' >>$CONFIG_STATUS |
| 7984 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 7985 | rm -f conftest.undefs |
| 7986 | mv conftest.tail conftest.undefs |
| 7987 | done |
| 7988 | rm -f conftest.undefs |
| 7989 | |
| 7990 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7991 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7992 | # use $as_me), people would be surprised to read: |
| 7993 | # /* config.h. Generated by config.status. */ |
| 7994 | if test x"$ac_file" = x-; then |
| 7995 | echo "/* Generated by configure. */" >$tmp/config.h |
| 7996 | else |
| 7997 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 7998 | fi |
| 7999 | cat $tmp/in >>$tmp/config.h |
| 8000 | rm -f $tmp/in |
| 8001 | if test x"$ac_file" != x-; then |
| 8002 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 8003 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 8004 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 8005 | else |
| 8006 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 8007 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8008 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8009 | X"$ac_file" : 'X\(//\)$' \| \ |
| 8010 | X"$ac_file" : 'X\(/\)' \| \ |
| 8011 | . : '\(.\)' 2>/dev/null || |
| 8012 | echo X"$ac_file" | |
| 8013 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8014 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8015 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8016 | /^X\(\/\).*/{ s//\1/; q; } |
| 8017 | s/.*/./; q'` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 8018 | { case "$ac_dir" in |
| 8019 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8020 | *) as_incr_dir=.;; |
| 8021 | esac |
| 8022 | as_dummy="$ac_dir" |
| 8023 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8024 | case $as_mkdir_dir in |
| 8025 | # Skip DOS drivespec |
| 8026 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8027 | *) |
| 8028 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8029 | test -d "$as_incr_dir" || |
| 8030 | mkdir "$as_incr_dir" || |
| 8031 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 8032 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 8033 | { (exit 1); exit 1; }; } |
| 8034 | ;; |
| 8035 | esac |
| 8036 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8037 | |
| 8038 | rm -f $ac_file |
| 8039 | mv $tmp/config.h $ac_file |
| 8040 | fi |
| 8041 | else |
| 8042 | cat $tmp/config.h |
| 8043 | rm -f $tmp/config.h |
| 8044 | fi |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 8045 | # Run the commands associated with the file. |
| 8046 | case $ac_file in |
| 8047 | config.h ) # update the timestamp |
| 8048 | echo 'timestamp for config.h' >"./stamp-h1" |
| 8049 | ;; |
| 8050 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8051 | done |
| 8052 | _ACEOF |
| 8053 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8054 | |
| 8055 | # |
| 8056 | # CONFIG_COMMANDS section. |
| 8057 | # |
| 8058 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 8059 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 8060 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 8061 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 8062 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8063 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 8064 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 8065 | X"$ac_dest" : 'X\(/\)' \| \ |
| 8066 | . : '\(.\)' 2>/dev/null || |
| 8067 | echo X"$ac_dest" | |
| 8068 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8069 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8070 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8071 | /^X\(\/\).*/{ s//\1/; q; } |
| 8072 | s/.*/./; q'` |
| 8073 | ac_builddir=. |
| 8074 | |
| 8075 | if test "$ac_dir" != .; then |
| 8076 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 8077 | # A "../" for each directory in $ac_dir_suffix. |
| 8078 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 8079 | else |
| 8080 | ac_dir_suffix= ac_top_builddir= |
| 8081 | fi |
| 8082 | |
| 8083 | case $srcdir in |
| 8084 | .) # No --srcdir option. We are building in place. |
| 8085 | ac_srcdir=. |
| 8086 | if test -z "$ac_top_builddir"; then |
| 8087 | ac_top_srcdir=. |
| 8088 | else |
| 8089 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 8090 | fi ;; |
| 8091 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 8092 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 8093 | ac_top_srcdir=$srcdir ;; |
| 8094 | *) # Relative path. |
| 8095 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 8096 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 8097 | esac |
| 8098 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 8099 | # absolute. |
| 8100 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 8101 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8102 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 8103 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 8104 | |
| 8105 | |
| 8106 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 8107 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 8108 | case $ac_dest in |
| 8109 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 8110 | # Strip MF so we end up with the name of the file. |
| 8111 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 8112 | # Check whether this is an Automake generated Makefile or not. |
| 8113 | # We used to match only the files named `Makefile.in', but |
| 8114 | # some people rename them; so instead we look at the file content. |
| 8115 | # Grep'ing the first line is not enough: some people post-process |
| 8116 | # each Makefile.in and add a new line on top of each file to say so. |
| 8117 | # So let's grep whole file. |
| 8118 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 8119 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 8120 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8121 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 8122 | X"$mf" : 'X\(//\)$' \| \ |
| 8123 | X"$mf" : 'X\(/\)' \| \ |
| 8124 | . : '\(.\)' 2>/dev/null || |
| 8125 | echo X"$mf" | |
| 8126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8127 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8128 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8129 | /^X\(\/\).*/{ s//\1/; q; } |
| 8130 | s/.*/./; q'` |
| 8131 | else |
| 8132 | continue |
| 8133 | fi |
| 8134 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 8135 | # Extract the definition of DEP_FILES from the Makefile without |
| 8136 | # running `make'. |
| 8137 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 8138 | test -z "$DEPDIR" && continue |
| 8139 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 8140 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 8141 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 8142 | # We invoke sed twice because it is the simplest approach to |
| 8143 | # changing $(DEPDIR) to its actual value in the expansion. |
| 8144 | for file in `sed -n -e ' |
| 8145 | /^DEP_FILES = .*\\\\$/ { |
| 8146 | s/^DEP_FILES = // |
| 8147 | :loop |
| 8148 | s/\\\\$// |
| 8149 | p |
| 8150 | n |
| 8151 | /\\\\$/ b loop |
| 8152 | p |
| 8153 | } |
| 8154 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 8155 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 8156 | # Make sure the directory exists. |
| 8157 | test -f "$dirpart/$file" && continue |
| 8158 | fdir=`(dirname "$file") 2>/dev/null || |
| 8159 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8160 | X"$file" : 'X\(//\)[^/]' \| \ |
| 8161 | X"$file" : 'X\(//\)$' \| \ |
| 8162 | X"$file" : 'X\(/\)' \| \ |
| 8163 | . : '\(.\)' 2>/dev/null || |
| 8164 | echo X"$file" | |
| 8165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8167 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8168 | /^X\(\/\).*/{ s//\1/; q; } |
| 8169 | s/.*/./; q'` |
paul | 619efcb | 2003-02-13 22:03:04 +0000 | [diff] [blame^] | 8170 | { case $dirpart/$fdir in |
| 8171 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8172 | *) as_incr_dir=.;; |
| 8173 | esac |
| 8174 | as_dummy=$dirpart/$fdir |
| 8175 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8176 | case $as_mkdir_dir in |
| 8177 | # Skip DOS drivespec |
| 8178 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8179 | *) |
| 8180 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8181 | test -d "$as_incr_dir" || |
| 8182 | mkdir "$as_incr_dir" || |
| 8183 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 |
| 8184 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} |
| 8185 | { (exit 1); exit 1; }; } |
| 8186 | ;; |
| 8187 | esac |
| 8188 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8189 | |
| 8190 | # echo "creating $dirpart/$file" |
| 8191 | echo '# dummy' > "$dirpart/$file" |
| 8192 | done |
| 8193 | done |
| 8194 | ;; |
| 8195 | esac |
| 8196 | done |
| 8197 | _ACEOF |
| 8198 | |
| 8199 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8200 | |
| 8201 | { (exit 0); exit 0; } |
| 8202 | _ACEOF |
| 8203 | chmod +x $CONFIG_STATUS |
| 8204 | ac_clean_files=$ac_clean_files_save |
| 8205 | |
| 8206 | |
| 8207 | # configure is writing to config.log, and then calls config.status. |
| 8208 | # config.status does its own redirection, appending to config.log. |
| 8209 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8210 | # by configure, so config.status won't be able to write to it; its |
| 8211 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8212 | # effectively closing config.log, so it can be properly (re)opened and |
| 8213 | # appended to by config.status. When coming back to configure, we |
| 8214 | # need to make the FD available again. |
| 8215 | if test "$no_create" != yes; then |
| 8216 | ac_cs_success=: |
| 8217 | exec 5>/dev/null |
| 8218 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 8219 | exec 5>>config.log |
| 8220 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8221 | # would make configure fail if this is the last instruction. |
| 8222 | $ac_cs_success || { (exit 1); exit 1; } |
| 8223 | fi |
| 8224 | |
| 8225 | |
| 8226 | echo " |
| 8227 | zebra configuration |
| 8228 | ------------------- |
| 8229 | zebra version : ${VERSION} |
| 8230 | host operationg system : ${host_os} |
| 8231 | source code location : ${srcdir} |
| 8232 | compiler : ${CC} |
| 8233 | compiler flags : ${CFLAGS} |
| 8234 | directory for pid files : ${ac_piddir} |
| 8235 | " |