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