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