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