… | |
… | |
10181 | |
10181 | |
10182 | fi |
10182 | fi |
10183 | done |
10183 | done |
10184 | |
10184 | |
10185 | |
10185 | |
10186 | UTMP_CHECK |
10186 | |
|
|
10187 | |
|
|
10188 | |
|
|
10189 | |
|
|
10190 | for ac_func in \ |
|
|
10191 | ttyslot \ |
|
|
10192 | updwtmp \ |
|
|
10193 | updwtmpx \ |
|
|
10194 | |
|
|
10195 | do |
|
|
10196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10199 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10201 | else |
|
|
10202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10203 | /* confdefs.h. */ |
|
|
10204 | _ACEOF |
|
|
10205 | cat confdefs.h >>conftest.$ac_ext |
|
|
10206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* end confdefs.h. */ |
|
|
10208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10210 | #define $ac_func innocuous_$ac_func |
|
|
10211 | |
|
|
10212 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10213 | which can conflict with char $ac_func (); below. |
|
|
10214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10215 | <limits.h> exists even on freestanding compilers. */ |
|
|
10216 | |
|
|
10217 | #ifdef __STDC__ |
|
|
10218 | # include <limits.h> |
|
|
10219 | #else |
|
|
10220 | # include <assert.h> |
|
|
10221 | #endif |
|
|
10222 | |
|
|
10223 | #undef $ac_func |
|
|
10224 | |
|
|
10225 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10226 | #ifdef __cplusplus |
|
|
10227 | extern "C" |
|
|
10228 | { |
|
|
10229 | #endif |
|
|
10230 | /* We use char because int might match the return type of a gcc2 |
|
|
10231 | builtin and then its argument prototype would still apply. */ |
|
|
10232 | char $ac_func (); |
|
|
10233 | /* The GNU C library defines this for functions which it implements |
|
|
10234 | to always fail with ENOSYS. Some functions are actually named |
|
|
10235 | something starting with __ and the normal name is an alias. */ |
|
|
10236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10237 | choke me |
|
|
10238 | #else |
|
|
10239 | char (*f) () = $ac_func; |
|
|
10240 | #endif |
|
|
10241 | #ifdef __cplusplus |
|
|
10242 | } |
|
|
10243 | #endif |
|
|
10244 | |
|
|
10245 | int |
|
|
10246 | main () |
|
|
10247 | { |
|
|
10248 | return f != $ac_func; |
|
|
10249 | ; |
|
|
10250 | return 0; |
|
|
10251 | } |
|
|
10252 | _ACEOF |
|
|
10253 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10255 | (eval $ac_link) 2>conftest.er1 |
|
|
10256 | ac_status=$? |
|
|
10257 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10258 | rm -f conftest.er1 |
|
|
10259 | cat conftest.err >&5 |
|
|
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10261 | (exit $ac_status); } && |
|
|
10262 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10264 | (eval $ac_try) 2>&5 |
|
|
10265 | ac_status=$? |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); }; } && |
|
|
10268 | { ac_try='test -s conftest$ac_exeext' |
|
|
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10270 | (eval $ac_try) 2>&5 |
|
|
10271 | ac_status=$? |
|
|
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10273 | (exit $ac_status); }; }; then |
|
|
10274 | eval "$as_ac_var=yes" |
|
|
10275 | else |
|
|
10276 | echo "$as_me: failed program was:" >&5 |
|
|
10277 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10278 | |
|
|
10279 | eval "$as_ac_var=no" |
|
|
10280 | fi |
|
|
10281 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10282 | conftest$ac_exeext conftest.$ac_ext |
|
|
10283 | fi |
|
|
10284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10286 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10287 | cat >>confdefs.h <<_ACEOF |
|
|
10288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10289 | _ACEOF |
|
|
10290 | |
|
|
10291 | fi |
|
|
10292 | done |
|
|
10293 | |
|
|
10294 | |
|
|
10295 | |
|
|
10296 | |
|
|
10297 | |
|
|
10298 | for ac_header in \ |
|
|
10299 | utmp.h \ |
|
|
10300 | utmpx.h \ |
|
|
10301 | lastlog.h \ |
|
|
10302 | |
|
|
10303 | do |
|
|
10304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10310 | fi |
|
|
10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10313 | else |
|
|
10314 | # Is the header compilable? |
|
|
10315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10318 | /* confdefs.h. */ |
|
|
10319 | _ACEOF |
|
|
10320 | cat confdefs.h >>conftest.$ac_ext |
|
|
10321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10322 | /* end confdefs.h. */ |
|
|
10323 | $ac_includes_default |
|
|
10324 | #include <$ac_header> |
|
|
10325 | _ACEOF |
|
|
10326 | rm -f conftest.$ac_objext |
|
|
10327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10328 | (eval $ac_compile) 2>conftest.er1 |
|
|
10329 | ac_status=$? |
|
|
10330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10331 | rm -f conftest.er1 |
|
|
10332 | cat conftest.err >&5 |
|
|
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10334 | (exit $ac_status); } && |
|
|
10335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10337 | (eval $ac_try) 2>&5 |
|
|
10338 | ac_status=$? |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); }; } && |
|
|
10341 | { ac_try='test -s conftest.$ac_objext' |
|
|
10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10343 | (eval $ac_try) 2>&5 |
|
|
10344 | ac_status=$? |
|
|
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10346 | (exit $ac_status); }; }; then |
|
|
10347 | ac_header_compiler=yes |
|
|
10348 | else |
|
|
10349 | echo "$as_me: failed program was:" >&5 |
|
|
10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10351 | |
|
|
10352 | ac_header_compiler=no |
|
|
10353 | fi |
|
|
10354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10356 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10357 | |
|
|
10358 | # Is the header present? |
|
|
10359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10362 | /* confdefs.h. */ |
|
|
10363 | _ACEOF |
|
|
10364 | cat confdefs.h >>conftest.$ac_ext |
|
|
10365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10366 | /* end confdefs.h. */ |
|
|
10367 | #include <$ac_header> |
|
|
10368 | _ACEOF |
|
|
10369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10371 | ac_status=$? |
|
|
10372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10373 | rm -f conftest.er1 |
|
|
10374 | cat conftest.err >&5 |
|
|
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10376 | (exit $ac_status); } >/dev/null; then |
|
|
10377 | if test -s conftest.err; then |
|
|
10378 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10379 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10380 | else |
|
|
10381 | ac_cpp_err= |
|
|
10382 | fi |
|
|
10383 | else |
|
|
10384 | ac_cpp_err=yes |
|
|
10385 | fi |
|
|
10386 | if test -z "$ac_cpp_err"; then |
|
|
10387 | ac_header_preproc=yes |
|
|
10388 | else |
|
|
10389 | echo "$as_me: failed program was:" >&5 |
|
|
10390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10391 | |
|
|
10392 | ac_header_preproc=no |
|
|
10393 | fi |
|
|
10394 | rm -f conftest.err conftest.$ac_ext |
|
|
10395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10396 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10397 | |
|
|
10398 | # So? What about this header? |
|
|
10399 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10400 | yes:no: ) |
|
|
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10404 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10405 | ac_header_preproc=yes |
|
|
10406 | ;; |
|
|
10407 | no:yes:* ) |
|
|
10408 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10409 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10410 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10411 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10412 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10413 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10420 | ( |
|
|
10421 | cat <<\_ASBOX |
|
|
10422 | ## ------------------------------------------ ## |
|
|
10423 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10424 | ## ------------------------------------------ ## |
|
|
10425 | _ASBOX |
|
|
10426 | ) | |
|
|
10427 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10428 | ;; |
|
|
10429 | esac |
|
|
10430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10434 | else |
|
|
10435 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10436 | fi |
|
|
10437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10439 | |
|
|
10440 | fi |
|
|
10441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10442 | cat >>confdefs.h <<_ACEOF |
|
|
10443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10444 | _ACEOF |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | |
|
|
10448 | done |
|
|
10449 | |
|
|
10450 | |
|
|
10451 | |
|
|
10452 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10453 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10454 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10455 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10457 | fi |
|
|
10458 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10459 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10460 | else |
|
|
10461 | # Is the header compilable? |
|
|
10462 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10463 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10464 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10465 | /* confdefs.h. */ |
|
|
10466 | _ACEOF |
|
|
10467 | cat confdefs.h >>conftest.$ac_ext |
|
|
10468 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10469 | /* end confdefs.h. */ |
|
|
10470 | $ac_includes_default |
|
|
10471 | #include <utmp.h> |
|
|
10472 | _ACEOF |
|
|
10473 | rm -f conftest.$ac_objext |
|
|
10474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10475 | (eval $ac_compile) 2>conftest.er1 |
|
|
10476 | ac_status=$? |
|
|
10477 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10478 | rm -f conftest.er1 |
|
|
10479 | cat conftest.err >&5 |
|
|
10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10481 | (exit $ac_status); } && |
|
|
10482 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10484 | (eval $ac_try) 2>&5 |
|
|
10485 | ac_status=$? |
|
|
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10487 | (exit $ac_status); }; } && |
|
|
10488 | { ac_try='test -s conftest.$ac_objext' |
|
|
10489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10490 | (eval $ac_try) 2>&5 |
|
|
10491 | ac_status=$? |
|
|
10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10493 | (exit $ac_status); }; }; then |
|
|
10494 | ac_header_compiler=yes |
|
|
10495 | else |
|
|
10496 | echo "$as_me: failed program was:" >&5 |
|
|
10497 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10498 | |
|
|
10499 | ac_header_compiler=no |
|
|
10500 | fi |
|
|
10501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10502 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10503 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10504 | |
|
|
10505 | # Is the header present? |
|
|
10506 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10507 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10508 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10509 | /* confdefs.h. */ |
|
|
10510 | _ACEOF |
|
|
10511 | cat confdefs.h >>conftest.$ac_ext |
|
|
10512 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10513 | /* end confdefs.h. */ |
|
|
10514 | #include <utmp.h> |
|
|
10515 | _ACEOF |
|
|
10516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10518 | ac_status=$? |
|
|
10519 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10520 | rm -f conftest.er1 |
|
|
10521 | cat conftest.err >&5 |
|
|
10522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10523 | (exit $ac_status); } >/dev/null; then |
|
|
10524 | if test -s conftest.err; then |
|
|
10525 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10526 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10527 | else |
|
|
10528 | ac_cpp_err= |
|
|
10529 | fi |
|
|
10530 | else |
|
|
10531 | ac_cpp_err=yes |
|
|
10532 | fi |
|
|
10533 | if test -z "$ac_cpp_err"; then |
|
|
10534 | ac_header_preproc=yes |
|
|
10535 | else |
|
|
10536 | echo "$as_me: failed program was:" >&5 |
|
|
10537 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10538 | |
|
|
10539 | ac_header_preproc=no |
|
|
10540 | fi |
|
|
10541 | rm -f conftest.err conftest.$ac_ext |
|
|
10542 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10543 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10544 | |
|
|
10545 | # So? What about this header? |
|
|
10546 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10547 | yes:no: ) |
|
|
10548 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10549 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10550 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10551 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10552 | ac_header_preproc=yes |
|
|
10553 | ;; |
|
|
10554 | no:yes:* ) |
|
|
10555 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10556 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10557 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10558 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10559 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10560 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10561 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10562 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10563 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10564 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10565 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10566 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10567 | ( |
|
|
10568 | cat <<\_ASBOX |
|
|
10569 | ## ------------------------------------------ ## |
|
|
10570 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10571 | ## ------------------------------------------ ## |
|
|
10572 | _ASBOX |
|
|
10573 | ) | |
|
|
10574 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10575 | ;; |
|
|
10576 | esac |
|
|
10577 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10578 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10579 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10581 | else |
|
|
10582 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10583 | fi |
|
|
10584 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10585 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10586 | |
|
|
10587 | fi |
|
|
10588 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10589 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10590 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10591 | if test "${struct_utmp+set}" = set; then |
|
|
10592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10593 | else |
|
|
10594 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10595 | /* confdefs.h. */ |
|
|
10596 | _ACEOF |
|
|
10597 | cat confdefs.h >>conftest.$ac_ext |
|
|
10598 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10599 | /* end confdefs.h. */ |
|
|
10600 | #include <sys/types.h> |
|
|
10601 | #include <utmp.h> |
|
|
10602 | int |
|
|
10603 | main () |
|
|
10604 | { |
|
|
10605 | struct utmp ut; |
|
|
10606 | ; |
|
|
10607 | return 0; |
|
|
10608 | } |
|
|
10609 | _ACEOF |
|
|
10610 | rm -f conftest.$ac_objext |
|
|
10611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10612 | (eval $ac_compile) 2>conftest.er1 |
|
|
10613 | ac_status=$? |
|
|
10614 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10615 | rm -f conftest.er1 |
|
|
10616 | cat conftest.err >&5 |
|
|
10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10618 | (exit $ac_status); } && |
|
|
10619 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10621 | (eval $ac_try) 2>&5 |
|
|
10622 | ac_status=$? |
|
|
10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10624 | (exit $ac_status); }; } && |
|
|
10625 | { ac_try='test -s conftest.$ac_objext' |
|
|
10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10627 | (eval $ac_try) 2>&5 |
|
|
10628 | ac_status=$? |
|
|
10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10630 | (exit $ac_status); }; }; then |
|
|
10631 | struct_utmp=yes |
|
|
10632 | else |
|
|
10633 | echo "$as_me: failed program was:" >&5 |
|
|
10634 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10635 | |
|
|
10636 | struct_utmp=no |
|
|
10637 | fi |
|
|
10638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10639 | fi |
|
|
10640 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
10641 | echo "${ECHO_T}$struct_utmp" >&6 |
|
|
10642 | if test x$struct_utmp = xyes; then |
|
|
10643 | |
|
|
10644 | cat >>confdefs.h <<\_ACEOF |
|
|
10645 | #define HAVE_STRUCT_UTMP 1 |
|
|
10646 | _ACEOF |
|
|
10647 | |
|
|
10648 | fi |
|
|
10649 | |
|
|
10650 | |
|
|
10651 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10652 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10653 | if test "${struct_utmp_host+set}" = set; then |
|
|
10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10655 | else |
|
|
10656 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10657 | /* confdefs.h. */ |
|
|
10658 | _ACEOF |
|
|
10659 | cat confdefs.h >>conftest.$ac_ext |
|
|
10660 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10661 | /* end confdefs.h. */ |
|
|
10662 | #include <sys/types.h> |
|
|
10663 | #include <utmp.h> |
|
|
10664 | int |
|
|
10665 | main () |
|
|
10666 | { |
|
|
10667 | struct utmp ut; ut.ut_host; |
|
|
10668 | ; |
|
|
10669 | return 0; |
|
|
10670 | } |
|
|
10671 | _ACEOF |
|
|
10672 | rm -f conftest.$ac_objext |
|
|
10673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10674 | (eval $ac_compile) 2>conftest.er1 |
|
|
10675 | ac_status=$? |
|
|
10676 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10677 | rm -f conftest.er1 |
|
|
10678 | cat conftest.err >&5 |
|
|
10679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10680 | (exit $ac_status); } && |
|
|
10681 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10683 | (eval $ac_try) 2>&5 |
|
|
10684 | ac_status=$? |
|
|
10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10686 | (exit $ac_status); }; } && |
|
|
10687 | { ac_try='test -s conftest.$ac_objext' |
|
|
10688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10689 | (eval $ac_try) 2>&5 |
|
|
10690 | ac_status=$? |
|
|
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10692 | (exit $ac_status); }; }; then |
|
|
10693 | struct_utmp_host=yes |
|
|
10694 | else |
|
|
10695 | echo "$as_me: failed program was:" >&5 |
|
|
10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10697 | |
|
|
10698 | struct_utmp_host=no |
|
|
10699 | fi |
|
|
10700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10701 | fi |
|
|
10702 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
10703 | echo "${ECHO_T}$struct_utmp_host" >&6 |
|
|
10704 | if test x$struct_utmp_host = xyes; then |
|
|
10705 | |
|
|
10706 | cat >>confdefs.h <<\_ACEOF |
|
|
10707 | #define HAVE_UTMP_HOST 1 |
|
|
10708 | _ACEOF |
|
|
10709 | |
|
|
10710 | fi |
|
|
10711 | |
|
|
10712 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10713 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10714 | if test "${struct_utmp_pid+set}" = set; then |
|
|
10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10716 | else |
|
|
10717 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10718 | /* confdefs.h. */ |
|
|
10719 | _ACEOF |
|
|
10720 | cat confdefs.h >>conftest.$ac_ext |
|
|
10721 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10722 | /* end confdefs.h. */ |
|
|
10723 | #include <sys/types.h> |
|
|
10724 | #include <utmp.h> |
|
|
10725 | int |
|
|
10726 | main () |
|
|
10727 | { |
|
|
10728 | struct utmp ut; ut.ut_pid; |
|
|
10729 | ; |
|
|
10730 | return 0; |
|
|
10731 | } |
|
|
10732 | _ACEOF |
|
|
10733 | rm -f conftest.$ac_objext |
|
|
10734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10735 | (eval $ac_compile) 2>conftest.er1 |
|
|
10736 | ac_status=$? |
|
|
10737 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10738 | rm -f conftest.er1 |
|
|
10739 | cat conftest.err >&5 |
|
|
10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10741 | (exit $ac_status); } && |
|
|
10742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10744 | (eval $ac_try) 2>&5 |
|
|
10745 | ac_status=$? |
|
|
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10747 | (exit $ac_status); }; } && |
|
|
10748 | { ac_try='test -s conftest.$ac_objext' |
|
|
10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10750 | (eval $ac_try) 2>&5 |
|
|
10751 | ac_status=$? |
|
|
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10753 | (exit $ac_status); }; }; then |
|
|
10754 | struct_utmp_pid=yes |
|
|
10755 | else |
|
|
10756 | echo "$as_me: failed program was:" >&5 |
|
|
10757 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10758 | |
|
|
10759 | struct_utmp_pid=no |
|
|
10760 | fi |
|
|
10761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10762 | fi |
|
|
10763 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
10764 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
|
|
10765 | if test x$struct_utmp_pid = xyes; then |
|
|
10766 | |
|
|
10767 | cat >>confdefs.h <<\_ACEOF |
|
|
10768 | #define HAVE_UTMP_PID 1 |
|
|
10769 | _ACEOF |
|
|
10770 | |
|
|
10771 | fi |
|
|
10772 | |
|
|
10773 | fi |
|
|
10774 | |
|
|
10775 | |
|
|
10776 | |
|
|
10777 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10778 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10779 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10780 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10782 | fi |
|
|
10783 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10784 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10785 | else |
|
|
10786 | # Is the header compilable? |
|
|
10787 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10788 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10789 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10790 | /* confdefs.h. */ |
|
|
10791 | _ACEOF |
|
|
10792 | cat confdefs.h >>conftest.$ac_ext |
|
|
10793 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10794 | /* end confdefs.h. */ |
|
|
10795 | $ac_includes_default |
|
|
10796 | #include <utmpx.h> |
|
|
10797 | _ACEOF |
|
|
10798 | rm -f conftest.$ac_objext |
|
|
10799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10800 | (eval $ac_compile) 2>conftest.er1 |
|
|
10801 | ac_status=$? |
|
|
10802 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10803 | rm -f conftest.er1 |
|
|
10804 | cat conftest.err >&5 |
|
|
10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10806 | (exit $ac_status); } && |
|
|
10807 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10809 | (eval $ac_try) 2>&5 |
|
|
10810 | ac_status=$? |
|
|
10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10812 | (exit $ac_status); }; } && |
|
|
10813 | { ac_try='test -s conftest.$ac_objext' |
|
|
10814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10815 | (eval $ac_try) 2>&5 |
|
|
10816 | ac_status=$? |
|
|
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10818 | (exit $ac_status); }; }; then |
|
|
10819 | ac_header_compiler=yes |
|
|
10820 | else |
|
|
10821 | echo "$as_me: failed program was:" >&5 |
|
|
10822 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10823 | |
|
|
10824 | ac_header_compiler=no |
|
|
10825 | fi |
|
|
10826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10828 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10829 | |
|
|
10830 | # Is the header present? |
|
|
10831 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10832 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10833 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10834 | /* confdefs.h. */ |
|
|
10835 | _ACEOF |
|
|
10836 | cat confdefs.h >>conftest.$ac_ext |
|
|
10837 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10838 | /* end confdefs.h. */ |
|
|
10839 | #include <utmpx.h> |
|
|
10840 | _ACEOF |
|
|
10841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10843 | ac_status=$? |
|
|
10844 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10845 | rm -f conftest.er1 |
|
|
10846 | cat conftest.err >&5 |
|
|
10847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10848 | (exit $ac_status); } >/dev/null; then |
|
|
10849 | if test -s conftest.err; then |
|
|
10850 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10851 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10852 | else |
|
|
10853 | ac_cpp_err= |
|
|
10854 | fi |
|
|
10855 | else |
|
|
10856 | ac_cpp_err=yes |
|
|
10857 | fi |
|
|
10858 | if test -z "$ac_cpp_err"; then |
|
|
10859 | ac_header_preproc=yes |
|
|
10860 | else |
|
|
10861 | echo "$as_me: failed program was:" >&5 |
|
|
10862 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10863 | |
|
|
10864 | ac_header_preproc=no |
|
|
10865 | fi |
|
|
10866 | rm -f conftest.err conftest.$ac_ext |
|
|
10867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10868 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10869 | |
|
|
10870 | # So? What about this header? |
|
|
10871 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10872 | yes:no: ) |
|
|
10873 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10874 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10875 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10876 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10877 | ac_header_preproc=yes |
|
|
10878 | ;; |
|
|
10879 | no:yes:* ) |
|
|
10880 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10881 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10882 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10883 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10884 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10885 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10886 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10887 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10888 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10889 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10890 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10891 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10892 | ( |
|
|
10893 | cat <<\_ASBOX |
|
|
10894 | ## ------------------------------------------ ## |
|
|
10895 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10896 | ## ------------------------------------------ ## |
|
|
10897 | _ASBOX |
|
|
10898 | ) | |
|
|
10899 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10900 | ;; |
|
|
10901 | esac |
|
|
10902 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10903 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10904 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10906 | else |
|
|
10907 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10908 | fi |
|
|
10909 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10910 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10911 | |
|
|
10912 | fi |
|
|
10913 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10914 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10915 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10916 | if test "${struct_utmpx+set}" = set; then |
|
|
10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10918 | else |
|
|
10919 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10920 | /* confdefs.h. */ |
|
|
10921 | _ACEOF |
|
|
10922 | cat confdefs.h >>conftest.$ac_ext |
|
|
10923 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10924 | /* end confdefs.h. */ |
|
|
10925 | #include <sys/types.h> |
|
|
10926 | #include <utmpx.h> |
|
|
10927 | int |
|
|
10928 | main () |
|
|
10929 | { |
|
|
10930 | struct utmpx ut; |
|
|
10931 | ; |
|
|
10932 | return 0; |
|
|
10933 | } |
|
|
10934 | _ACEOF |
|
|
10935 | rm -f conftest.$ac_objext |
|
|
10936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10937 | (eval $ac_compile) 2>conftest.er1 |
|
|
10938 | ac_status=$? |
|
|
10939 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10940 | rm -f conftest.er1 |
|
|
10941 | cat conftest.err >&5 |
|
|
10942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10943 | (exit $ac_status); } && |
|
|
10944 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10946 | (eval $ac_try) 2>&5 |
|
|
10947 | ac_status=$? |
|
|
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10949 | (exit $ac_status); }; } && |
|
|
10950 | { ac_try='test -s conftest.$ac_objext' |
|
|
10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10952 | (eval $ac_try) 2>&5 |
|
|
10953 | ac_status=$? |
|
|
10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10955 | (exit $ac_status); }; }; then |
|
|
10956 | struct_utmpx=yes |
|
|
10957 | else |
|
|
10958 | echo "$as_me: failed program was:" >&5 |
|
|
10959 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10960 | |
|
|
10961 | struct_utmpx=no |
|
|
10962 | fi |
|
|
10963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10964 | fi |
|
|
10965 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
10966 | echo "${ECHO_T}$struct_utmpx" >&6 |
|
|
10967 | if test x$struct_utmpx = xyes; then |
|
|
10968 | |
|
|
10969 | cat >>confdefs.h <<\_ACEOF |
|
|
10970 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10971 | _ACEOF |
|
|
10972 | |
|
|
10973 | fi |
|
|
10974 | |
|
|
10975 | |
|
|
10976 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10977 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10978 | if test "${struct_utmpx_host+set}" = set; then |
|
|
10979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10980 | else |
|
|
10981 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10982 | /* confdefs.h. */ |
|
|
10983 | _ACEOF |
|
|
10984 | cat confdefs.h >>conftest.$ac_ext |
|
|
10985 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10986 | /* end confdefs.h. */ |
|
|
10987 | #include <sys/types.h> |
|
|
10988 | #include <utmpx.h> |
|
|
10989 | int |
|
|
10990 | main () |
|
|
10991 | { |
|
|
10992 | struct utmpx utx; utx.ut_host; |
|
|
10993 | ; |
|
|
10994 | return 0; |
|
|
10995 | } |
|
|
10996 | _ACEOF |
|
|
10997 | rm -f conftest.$ac_objext |
|
|
10998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10999 | (eval $ac_compile) 2>conftest.er1 |
|
|
11000 | ac_status=$? |
|
|
11001 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11002 | rm -f conftest.er1 |
|
|
11003 | cat conftest.err >&5 |
|
|
11004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11005 | (exit $ac_status); } && |
|
|
11006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11008 | (eval $ac_try) 2>&5 |
|
|
11009 | ac_status=$? |
|
|
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11011 | (exit $ac_status); }; } && |
|
|
11012 | { ac_try='test -s conftest.$ac_objext' |
|
|
11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11014 | (eval $ac_try) 2>&5 |
|
|
11015 | ac_status=$? |
|
|
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11017 | (exit $ac_status); }; }; then |
|
|
11018 | struct_utmpx_host=yes |
|
|
11019 | else |
|
|
11020 | echo "$as_me: failed program was:" >&5 |
|
|
11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11022 | |
|
|
11023 | struct_utmpx_host=no |
|
|
11024 | fi |
|
|
11025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11026 | fi |
|
|
11027 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
11028 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
|
|
11029 | if test x$struct_utmpx_host = xyes; then |
|
|
11030 | |
|
|
11031 | cat >>confdefs.h <<\_ACEOF |
|
|
11032 | #define HAVE_UTMPX_HOST 1 |
|
|
11033 | _ACEOF |
|
|
11034 | |
|
|
11035 | fi |
|
|
11036 | |
|
|
11037 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11038 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
11039 | if test "${struct_utmpx_session+set}" = set; then |
|
|
11040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11041 | else |
|
|
11042 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11043 | /* confdefs.h. */ |
|
|
11044 | _ACEOF |
|
|
11045 | cat confdefs.h >>conftest.$ac_ext |
|
|
11046 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11047 | /* end confdefs.h. */ |
|
|
11048 | #include <sys/types.h> |
|
|
11049 | #include <utmpx.h> |
|
|
11050 | int |
|
|
11051 | main () |
|
|
11052 | { |
|
|
11053 | struct utmpx utx; utx.ut_session; |
|
|
11054 | ; |
|
|
11055 | return 0; |
|
|
11056 | } |
|
|
11057 | _ACEOF |
|
|
11058 | rm -f conftest.$ac_objext |
|
|
11059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11060 | (eval $ac_compile) 2>conftest.er1 |
|
|
11061 | ac_status=$? |
|
|
11062 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11063 | rm -f conftest.er1 |
|
|
11064 | cat conftest.err >&5 |
|
|
11065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11066 | (exit $ac_status); } && |
|
|
11067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11069 | (eval $ac_try) 2>&5 |
|
|
11070 | ac_status=$? |
|
|
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11072 | (exit $ac_status); }; } && |
|
|
11073 | { ac_try='test -s conftest.$ac_objext' |
|
|
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11075 | (eval $ac_try) 2>&5 |
|
|
11076 | ac_status=$? |
|
|
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11078 | (exit $ac_status); }; }; then |
|
|
11079 | struct_utmpx_session=yes |
|
|
11080 | else |
|
|
11081 | echo "$as_me: failed program was:" >&5 |
|
|
11082 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11083 | |
|
|
11084 | struct_utmpx_session=no |
|
|
11085 | fi |
|
|
11086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11087 | fi |
|
|
11088 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
11089 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
11090 | if test x$struct_utmpx_session = xyes; then |
|
|
11091 | |
|
|
11092 | cat >>confdefs.h <<\_ACEOF |
|
|
11093 | #define HAVE_UTMPX_SESSION 1 |
|
|
11094 | _ACEOF |
|
|
11095 | |
|
|
11096 | fi |
|
|
11097 | |
|
|
11098 | fi |
|
|
11099 | |
|
|
11100 | |
|
|
11101 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
11102 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
11103 | if test "${struct_lastlog+set}" = set; then |
|
|
11104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11105 | else |
|
|
11106 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11107 | /* confdefs.h. */ |
|
|
11108 | _ACEOF |
|
|
11109 | cat confdefs.h >>conftest.$ac_ext |
|
|
11110 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11111 | /* end confdefs.h. */ |
|
|
11112 | #include <sys/types.h> |
|
|
11113 | #include <utmp.h> |
|
|
11114 | #ifdef HAVE_LASTLOG_H |
|
|
11115 | #include <lastlog.h> |
|
|
11116 | #endif |
|
|
11117 | |
|
|
11118 | int |
|
|
11119 | main () |
|
|
11120 | { |
|
|
11121 | struct lastlog ll; |
|
|
11122 | ; |
|
|
11123 | return 0; |
|
|
11124 | } |
|
|
11125 | _ACEOF |
|
|
11126 | rm -f conftest.$ac_objext |
|
|
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11128 | (eval $ac_compile) 2>conftest.er1 |
|
|
11129 | ac_status=$? |
|
|
11130 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11131 | rm -f conftest.er1 |
|
|
11132 | cat conftest.err >&5 |
|
|
11133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11134 | (exit $ac_status); } && |
|
|
11135 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11137 | (eval $ac_try) 2>&5 |
|
|
11138 | ac_status=$? |
|
|
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11140 | (exit $ac_status); }; } && |
|
|
11141 | { ac_try='test -s conftest.$ac_objext' |
|
|
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11143 | (eval $ac_try) 2>&5 |
|
|
11144 | ac_status=$? |
|
|
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11146 | (exit $ac_status); }; }; then |
|
|
11147 | struct_lastlog=yes |
|
|
11148 | else |
|
|
11149 | echo "$as_me: failed program was:" >&5 |
|
|
11150 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11151 | |
|
|
11152 | struct_lastlog=no |
|
|
11153 | fi |
|
|
11154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11155 | fi |
|
|
11156 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
11157 | echo "${ECHO_T}$struct_lastlog" >&6 |
|
|
11158 | if test x$struct_lastlog = xyes; then |
|
|
11159 | |
|
|
11160 | cat >>confdefs.h <<\_ACEOF |
|
|
11161 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11162 | _ACEOF |
|
|
11163 | |
|
|
11164 | fi |
|
|
11165 | |
|
|
11166 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11167 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
11168 | if test "${struct_lastlogx+set}" = set; then |
|
|
11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11170 | else |
|
|
11171 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11172 | /* confdefs.h. */ |
|
|
11173 | _ACEOF |
|
|
11174 | cat confdefs.h >>conftest.$ac_ext |
|
|
11175 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11176 | /* end confdefs.h. */ |
|
|
11177 | #include <sys/types.h> |
|
|
11178 | #include <utmpx.h> |
|
|
11179 | #ifdef HAVE_LASTLOG_H |
|
|
11180 | #include <lastlog.h> |
|
|
11181 | #endif |
|
|
11182 | |
|
|
11183 | int |
|
|
11184 | main () |
|
|
11185 | { |
|
|
11186 | struct lastlogx ll; |
|
|
11187 | ; |
|
|
11188 | return 0; |
|
|
11189 | } |
|
|
11190 | _ACEOF |
|
|
11191 | rm -f conftest.$ac_objext |
|
|
11192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11193 | (eval $ac_compile) 2>conftest.er1 |
|
|
11194 | ac_status=$? |
|
|
11195 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11196 | rm -f conftest.er1 |
|
|
11197 | cat conftest.err >&5 |
|
|
11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11199 | (exit $ac_status); } && |
|
|
11200 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11202 | (eval $ac_try) 2>&5 |
|
|
11203 | ac_status=$? |
|
|
11204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11205 | (exit $ac_status); }; } && |
|
|
11206 | { ac_try='test -s conftest.$ac_objext' |
|
|
11207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11208 | (eval $ac_try) 2>&5 |
|
|
11209 | ac_status=$? |
|
|
11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11211 | (exit $ac_status); }; }; then |
|
|
11212 | struct_lastlogx=yes |
|
|
11213 | else |
|
|
11214 | echo "$as_me: failed program was:" >&5 |
|
|
11215 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11216 | |
|
|
11217 | struct_lastlogx=no |
|
|
11218 | fi |
|
|
11219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11220 | fi |
|
|
11221 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
11222 | echo "${ECHO_T}$struct_lastlogx" >&6 |
|
|
11223 | if test x$struct_lastlogx = xyes; then |
|
|
11224 | |
|
|
11225 | cat >>confdefs.h <<\_ACEOF |
|
|
11226 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11227 | _ACEOF |
|
|
11228 | |
|
|
11229 | fi |
|
|
11230 | |
|
|
11231 | |
|
|
11232 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11233 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
11234 | if test "${path_utmp+set}" = set; then |
|
|
11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11236 | else |
|
|
11237 | if test "$cross_compiling" = yes; then |
|
|
11238 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
11239 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
11240 | else |
|
|
11241 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11242 | /* confdefs.h. */ |
|
|
11243 | _ACEOF |
|
|
11244 | cat confdefs.h >>conftest.$ac_ext |
|
|
11245 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11246 | /* end confdefs.h. */ |
|
|
11247 | #include <stdio.h> |
|
|
11248 | #include <sys/types.h> |
|
|
11249 | #include <utmp.h> |
|
|
11250 | #include <errno.h> |
|
|
11251 | main() |
|
|
11252 | { |
|
|
11253 | char **u, *utmplist[] = { |
|
|
11254 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11255 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11256 | if (!f) exit(1); |
|
|
11257 | #ifdef UTMP_FILE |
|
|
11258 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11259 | exit(0); |
|
|
11260 | #endif |
|
|
11261 | #ifdef _PATH_UTMP |
|
|
11262 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11263 | exit(0); |
|
|
11264 | #endif |
|
|
11265 | for (u = utmplist; *u; u++) { |
|
|
11266 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11267 | fprintf(f, "%s\n", *u); |
|
|
11268 | exit(0); |
|
|
11269 | } |
|
|
11270 | } |
|
|
11271 | exit(0); |
|
|
11272 | } |
|
|
11273 | _ACEOF |
|
|
11274 | rm -f conftest$ac_exeext |
|
|
11275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11276 | (eval $ac_link) 2>&5 |
|
|
11277 | ac_status=$? |
|
|
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11281 | (eval $ac_try) 2>&5 |
|
|
11282 | ac_status=$? |
|
|
11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11284 | (exit $ac_status); }; }; then |
|
|
11285 | path_utmp=`cat conftestval` |
|
|
11286 | else |
|
|
11287 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11288 | echo "$as_me: failed program was:" >&5 |
|
|
11289 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11290 | |
|
|
11291 | ( exit $ac_status ) |
|
|
11292 | path_utmp= |
|
|
11293 | fi |
|
|
11294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11295 | fi |
|
|
11296 | fi |
|
|
11297 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
11298 | echo "${ECHO_T}$path_utmp" >&6 |
|
|
11299 | if test x$path_utmp != x; then |
|
|
11300 | |
|
|
11301 | cat >>confdefs.h <<_ACEOF |
|
|
11302 | #define UTMP_FILE "$path_utmp" |
|
|
11303 | _ACEOF |
|
|
11304 | |
|
|
11305 | fi |
|
|
11306 | |
|
|
11307 | |
|
|
11308 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11309 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11310 | if test "${path_utmpx+set}" = set; then |
|
|
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11312 | else |
|
|
11313 | if test "$cross_compiling" = yes; then |
|
|
11314 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
11315 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
11316 | else |
|
|
11317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11318 | /* confdefs.h. */ |
|
|
11319 | _ACEOF |
|
|
11320 | cat confdefs.h >>conftest.$ac_ext |
|
|
11321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11322 | /* end confdefs.h. */ |
|
|
11323 | #include <stdio.h> |
|
|
11324 | #include <sys/types.h> |
|
|
11325 | #include <utmpx.h> |
|
|
11326 | #include <errno.h> |
|
|
11327 | #include <sys/stat.h> |
|
|
11328 | #ifdef HAVE_STRING_H |
|
|
11329 | #include <string.h> |
|
|
11330 | #endif |
|
|
11331 | main() |
|
|
11332 | { |
|
|
11333 | char **u, *p, *utmplist[] = { |
|
|
11334 | #ifdef UTMPX_FILE |
|
|
11335 | UTMPX_FILE, |
|
|
11336 | #endif |
|
|
11337 | #ifdef _PATH_UTMPX |
|
|
11338 | _PATH_UTMPX, |
|
|
11339 | #endif |
|
|
11340 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11341 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11342 | struct stat statu, statux; |
|
|
11343 | if (!f) exit(1); |
|
|
11344 | for (u = utmplist; *u; u++) { |
|
|
11345 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11346 | if (stat(*u, &statux) < 0) |
|
|
11347 | continue; |
|
|
11348 | p = strdup(*u); |
|
|
11349 | p[strlen(p) - 1] = '\0'; |
|
|
11350 | if (stat(p, &statu) >= 0 |
|
|
11351 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11352 | continue; |
|
|
11353 | fprintf(f, "%s\n", *u); |
|
|
11354 | exit(0); |
|
|
11355 | } |
|
|
11356 | } |
|
|
11357 | exit(0); |
|
|
11358 | } |
|
|
11359 | _ACEOF |
|
|
11360 | rm -f conftest$ac_exeext |
|
|
11361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11362 | (eval $ac_link) 2>&5 |
|
|
11363 | ac_status=$? |
|
|
11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11367 | (eval $ac_try) 2>&5 |
|
|
11368 | ac_status=$? |
|
|
11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11370 | (exit $ac_status); }; }; then |
|
|
11371 | path_utmpx=`cat conftestval` |
|
|
11372 | else |
|
|
11373 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11374 | echo "$as_me: failed program was:" >&5 |
|
|
11375 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11376 | |
|
|
11377 | ( exit $ac_status ) |
|
|
11378 | path_utmpx= |
|
|
11379 | fi |
|
|
11380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11381 | fi |
|
|
11382 | fi |
|
|
11383 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
11384 | echo "${ECHO_T}$path_utmpx" >&6 |
|
|
11385 | if test x$path_utmpx != x; then |
|
|
11386 | |
|
|
11387 | cat >>confdefs.h <<_ACEOF |
|
|
11388 | #define UTMPX_FILE "$path_utmpx" |
|
|
11389 | _ACEOF |
|
|
11390 | |
|
|
11391 | fi |
|
|
11392 | |
|
|
11393 | |
|
|
11394 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11395 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11396 | if test "${path_wtmp+set}" = set; then |
|
|
11397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11398 | else |
|
|
11399 | if test "$cross_compiling" = yes; then |
|
|
11400 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
11401 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
11402 | else |
|
|
11403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11404 | /* confdefs.h. */ |
|
|
11405 | _ACEOF |
|
|
11406 | cat confdefs.h >>conftest.$ac_ext |
|
|
11407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11408 | /* end confdefs.h. */ |
|
|
11409 | #include <stdio.h> |
|
|
11410 | #include <sys/types.h> |
|
|
11411 | #ifdef HAVE_UTMP_H |
|
|
11412 | #include <utmp.h> |
|
|
11413 | #endif |
|
|
11414 | #include <errno.h> |
|
|
11415 | main() |
|
|
11416 | { |
|
|
11417 | char **w, *wtmplist[] = { |
|
|
11418 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11419 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11420 | if (!f) exit(1); |
|
|
11421 | #ifdef WTMP_FILE |
|
|
11422 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11423 | exit(0); |
|
|
11424 | #endif |
|
|
11425 | #ifdef _PATH_WTMP |
|
|
11426 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11427 | exit(0); |
|
|
11428 | #endif |
|
|
11429 | for (w = wtmplist; *w; w++) { |
|
|
11430 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11431 | fprintf(f, "%s\n", *w); |
|
|
11432 | exit(0); |
|
|
11433 | } |
|
|
11434 | } |
|
|
11435 | exit(0); |
|
|
11436 | } |
|
|
11437 | _ACEOF |
|
|
11438 | rm -f conftest$ac_exeext |
|
|
11439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11440 | (eval $ac_link) 2>&5 |
|
|
11441 | ac_status=$? |
|
|
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11445 | (eval $ac_try) 2>&5 |
|
|
11446 | ac_status=$? |
|
|
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11448 | (exit $ac_status); }; }; then |
|
|
11449 | path_wtmp=`cat conftestval` |
|
|
11450 | else |
|
|
11451 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11452 | echo "$as_me: failed program was:" >&5 |
|
|
11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11454 | |
|
|
11455 | ( exit $ac_status ) |
|
|
11456 | path_wtmp= |
|
|
11457 | fi |
|
|
11458 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11459 | fi |
|
|
11460 | fi |
|
|
11461 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
11462 | echo "${ECHO_T}$path_wtmp" >&6 |
|
|
11463 | if test x$path_wtmp != x; then |
|
|
11464 | |
|
|
11465 | cat >>confdefs.h <<_ACEOF |
|
|
11466 | #define WTMP_FILE "$path_wtmp" |
|
|
11467 | _ACEOF |
|
|
11468 | |
|
|
11469 | fi |
|
|
11470 | |
|
|
11471 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11472 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11473 | if test "${path_wtmpx+set}" = set; then |
|
|
11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11475 | else |
|
|
11476 | if test "$cross_compiling" = yes; then |
|
|
11477 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
11478 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
11479 | else |
|
|
11480 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11481 | /* confdefs.h. */ |
|
|
11482 | _ACEOF |
|
|
11483 | cat confdefs.h >>conftest.$ac_ext |
|
|
11484 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11485 | /* end confdefs.h. */ |
|
|
11486 | #include <stdio.h> |
|
|
11487 | #ifdef HAVE_UTMPX_H |
|
|
11488 | #include <utmpx.h> |
|
|
11489 | #endif |
|
|
11490 | #include <errno.h> |
|
|
11491 | main() |
|
|
11492 | { |
|
|
11493 | char **w, *wtmplist[] = { |
|
|
11494 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11495 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11496 | if (!f) exit(1); |
|
|
11497 | #ifdef WTMPX_FILE |
|
|
11498 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11499 | exit(0); |
|
|
11500 | #endif |
|
|
11501 | #ifdef _PATH_WTMPX |
|
|
11502 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11503 | exit(0); |
|
|
11504 | #endif |
|
|
11505 | for (w = wtmplist; *w; w++) { |
|
|
11506 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11507 | fprintf(f, "%s\n", *w); |
|
|
11508 | exit(0); |
|
|
11509 | } |
|
|
11510 | } |
|
|
11511 | exit(0); |
|
|
11512 | } |
|
|
11513 | _ACEOF |
|
|
11514 | rm -f conftest$ac_exeext |
|
|
11515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11516 | (eval $ac_link) 2>&5 |
|
|
11517 | ac_status=$? |
|
|
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11519 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11521 | (eval $ac_try) 2>&5 |
|
|
11522 | ac_status=$? |
|
|
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11524 | (exit $ac_status); }; }; then |
|
|
11525 | path_wtmpx=`cat conftestval` |
|
|
11526 | else |
|
|
11527 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11528 | echo "$as_me: failed program was:" >&5 |
|
|
11529 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11530 | |
|
|
11531 | ( exit $ac_status ) |
|
|
11532 | path_wtmpx= |
|
|
11533 | fi |
|
|
11534 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11535 | fi |
|
|
11536 | fi |
|
|
11537 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
11538 | echo "${ECHO_T}$path_wtmpx" >&6 |
|
|
11539 | if test x$path_wtmpx != x; then |
|
|
11540 | |
|
|
11541 | cat >>confdefs.h <<_ACEOF |
|
|
11542 | #define WTMPX_FILE "$path_wtmpx" |
|
|
11543 | _ACEOF |
|
|
11544 | |
|
|
11545 | fi |
|
|
11546 | |
|
|
11547 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11548 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11549 | if test "${path_lastlog+set}" = set; then |
|
|
11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11551 | else |
|
|
11552 | if test "$cross_compiling" = yes; then |
|
|
11553 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
11554 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
11555 | else |
|
|
11556 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11557 | /* confdefs.h. */ |
|
|
11558 | _ACEOF |
|
|
11559 | cat confdefs.h >>conftest.$ac_ext |
|
|
11560 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11561 | /* end confdefs.h. */ |
|
|
11562 | #include <stdio.h> |
|
|
11563 | #include <sys/types.h> |
|
|
11564 | #ifdef HAVE_UTMPX_H |
|
|
11565 | #include <utmpx.h> |
|
|
11566 | #elif defined(HAVE_UTMP_H) |
|
|
11567 | #include <utmp.h> |
|
|
11568 | #endif |
|
|
11569 | #ifdef HAVE_LASTLOG_H |
|
|
11570 | #include <lastlog.h> |
|
|
11571 | #endif |
|
|
11572 | #include <errno.h> |
|
|
11573 | main() |
|
|
11574 | { |
|
|
11575 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11576 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11577 | if (!f) exit(1); |
|
|
11578 | #ifdef LASTLOG_FILE |
|
|
11579 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11580 | exit(0); |
|
|
11581 | #endif |
|
|
11582 | #ifdef _PATH_LASTLOG |
|
|
11583 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11584 | exit(0); |
|
|
11585 | #endif |
|
|
11586 | for (w = lastloglist; *w; w++) { |
|
|
11587 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11588 | fprintf(f, "%s\n", *w); |
|
|
11589 | exit(0); |
|
|
11590 | } |
|
|
11591 | } |
|
|
11592 | exit(0); |
|
|
11593 | } |
|
|
11594 | _ACEOF |
|
|
11595 | rm -f conftest$ac_exeext |
|
|
11596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11597 | (eval $ac_link) 2>&5 |
|
|
11598 | ac_status=$? |
|
|
11599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11602 | (eval $ac_try) 2>&5 |
|
|
11603 | ac_status=$? |
|
|
11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11605 | (exit $ac_status); }; }; then |
|
|
11606 | path_lastlog=`cat conftestval` |
|
|
11607 | else |
|
|
11608 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11609 | echo "$as_me: failed program was:" >&5 |
|
|
11610 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11611 | |
|
|
11612 | ( exit $ac_status ) |
|
|
11613 | path_lastlog= |
|
|
11614 | fi |
|
|
11615 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11616 | fi |
|
|
11617 | fi |
|
|
11618 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
11619 | echo "${ECHO_T}$path_lastlog" >&6 |
|
|
11620 | if test x$path_lastlog != x; then |
|
|
11621 | |
|
|
11622 | cat >>confdefs.h <<_ACEOF |
|
|
11623 | #define LASTLOG_FILE "$path_lastlog" |
|
|
11624 | _ACEOF |
|
|
11625 | |
|
|
11626 | if test -d "$path_lastlog"; then |
|
|
11627 | |
|
|
11628 | cat >>confdefs.h <<\_ACEOF |
|
|
11629 | #define LASTLOG_IS_DIR 1 |
|
|
11630 | _ACEOF |
|
|
11631 | |
|
|
11632 | fi |
|
|
11633 | fi |
|
|
11634 | |
|
|
11635 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11636 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11637 | if test "${path_lastlogx+set}" = set; then |
|
|
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11639 | else |
|
|
11640 | if test "$cross_compiling" = yes; then |
|
|
11641 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
11642 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11643 | else |
|
|
11644 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11645 | /* confdefs.h. */ |
|
|
11646 | _ACEOF |
|
|
11647 | cat confdefs.h >>conftest.$ac_ext |
|
|
11648 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11649 | /* end confdefs.h. */ |
|
|
11650 | #include <stdio.h> |
|
|
11651 | #ifdef HAVE_UTMPX_H |
|
|
11652 | #include <utmpx.h> |
|
|
11653 | #endif |
|
|
11654 | #include <errno.h> |
|
|
11655 | main() |
|
|
11656 | { |
|
|
11657 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11658 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11659 | if (!f) exit(1); |
|
|
11660 | #ifdef LASTLOGX_FILE |
|
|
11661 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11662 | exit(0); |
|
|
11663 | #endif |
|
|
11664 | #ifdef _PATH_LASTLOGX |
|
|
11665 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11666 | exit(0); |
|
|
11667 | #endif |
|
|
11668 | for (w = wtmplist; *w; w++) { |
|
|
11669 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11670 | fprintf(f, "%s\n", *w); |
|
|
11671 | exit(0); |
|
|
11672 | } |
|
|
11673 | } |
|
|
11674 | exit(0); |
|
|
11675 | } |
|
|
11676 | _ACEOF |
|
|
11677 | rm -f conftest$ac_exeext |
|
|
11678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11679 | (eval $ac_link) 2>&5 |
|
|
11680 | ac_status=$? |
|
|
11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11684 | (eval $ac_try) 2>&5 |
|
|
11685 | ac_status=$? |
|
|
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11687 | (exit $ac_status); }; }; then |
|
|
11688 | path_lastlogx=`cat conftestval` |
|
|
11689 | else |
|
|
11690 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11691 | echo "$as_me: failed program was:" >&5 |
|
|
11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11693 | |
|
|
11694 | ( exit $ac_status ) |
|
|
11695 | path_lastlogx= |
|
|
11696 | fi |
|
|
11697 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11698 | fi |
|
|
11699 | fi |
|
|
11700 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
11701 | echo "${ECHO_T}$path_lastlogx" >&6 |
|
|
11702 | if test x$path_lastlogx != x; then |
|
|
11703 | |
|
|
11704 | cat >>confdefs.h <<_ACEOF |
|
|
11705 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
11706 | _ACEOF |
|
|
11707 | |
|
|
11708 | fi |
|
|
11709 | |
10187 | |
11710 | |
10188 | |
11711 | |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11712 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11713 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11714 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
10458 | #define HAVE_NL_LANGINFO 1 |
11981 | #define HAVE_NL_LANGINFO 1 |
10459 | _ACEOF |
11982 | _ACEOF |
10460 | |
11983 | |
10461 | fi |
11984 | fi |
10462 | |
11985 | |
10463 | SCM_RIGHTS_CHECK |
11986 | |
|
|
11987 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11988 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11989 | if test "${can_pass_fds+set}" = set; then |
|
|
11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11991 | else |
|
|
11992 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11993 | /* confdefs.h. */ |
|
|
11994 | _ACEOF |
|
|
11995 | cat confdefs.h >>conftest.$ac_ext |
|
|
11996 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11997 | /* end confdefs.h. */ |
|
|
11998 | |
|
|
11999 | #include <cstddef> // broken bsds (is that redundant) need this |
|
|
12000 | #include <sys/types.h> |
|
|
12001 | #include <sys/socket.h> |
|
|
12002 | #include <sys/uio.h> |
|
|
12003 | |
|
|
12004 | int |
|
|
12005 | main () |
|
|
12006 | { |
|
|
12007 | |
|
|
12008 | { |
|
|
12009 | msghdr msg; |
|
|
12010 | iovec iov; |
|
|
12011 | char buf [100]; |
|
|
12012 | char data = 0; |
|
|
12013 | |
|
|
12014 | iov.iov_base = &data; |
|
|
12015 | iov.iov_len = 1; |
|
|
12016 | |
|
|
12017 | msg.msg_iov = &iov; |
|
|
12018 | msg.msg_iovlen = 1; |
|
|
12019 | msg.msg_control = buf; |
|
|
12020 | msg.msg_controllen = sizeof buf; |
|
|
12021 | |
|
|
12022 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12023 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12024 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12025 | cmsg->cmsg_len = 100; |
|
|
12026 | |
|
|
12027 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12028 | |
|
|
12029 | return sendmsg (3, &msg, 0); |
|
|
12030 | } |
|
|
12031 | |
|
|
12032 | ; |
|
|
12033 | return 0; |
|
|
12034 | } |
|
|
12035 | _ACEOF |
|
|
12036 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12038 | (eval $ac_link) 2>conftest.er1 |
|
|
12039 | ac_status=$? |
|
|
12040 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12041 | rm -f conftest.er1 |
|
|
12042 | cat conftest.err >&5 |
|
|
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12044 | (exit $ac_status); } && |
|
|
12045 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12047 | (eval $ac_try) 2>&5 |
|
|
12048 | ac_status=$? |
|
|
12049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12050 | (exit $ac_status); }; } && |
|
|
12051 | { ac_try='test -s conftest$ac_exeext' |
|
|
12052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12053 | (eval $ac_try) 2>&5 |
|
|
12054 | ac_status=$? |
|
|
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12056 | (exit $ac_status); }; }; then |
|
|
12057 | can_pass_fds=yes |
|
|
12058 | else |
|
|
12059 | echo "$as_me: failed program was:" >&5 |
|
|
12060 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12061 | |
|
|
12062 | can_pass_fds=no |
|
|
12063 | fi |
|
|
12064 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12065 | conftest$ac_exeext conftest.$ac_ext |
|
|
12066 | fi |
|
|
12067 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
12068 | echo "${ECHO_T}$can_pass_fds" >&6 |
|
|
12069 | if test x$can_pass_fds = xyes; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<\_ACEOF |
|
|
12072 | #define HAVE_UNIX_FDPASS 1 |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | else |
|
|
12076 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
12077 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
12078 | { (exit 1); exit 1; }; } |
|
|
12079 | fi |
|
|
12080 | |
10464 | |
12081 | |
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
12082 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
12083 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
12084 | if test "${rxvt_broken_ximcb+set}" = set; then |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
10518 | #define XIMCB_PROTO_BROKEN 1 |
12135 | #define XIMCB_PROTO_BROKEN 1 |
10519 | _ACEOF |
12136 | _ACEOF |
10520 | |
12137 | |
10521 | fi |
12138 | fi |
10522 | |
12139 | |
10523 | PTY_CHECK |
12140 | |
|
|
12141 | |
|
|
12142 | |
|
|
12143 | |
|
|
12144 | |
|
|
12145 | |
|
|
12146 | for ac_header in \ |
|
|
12147 | pty.h \ |
|
|
12148 | util.h \ |
|
|
12149 | libutil.h \ |
|
|
12150 | sys/ioctl.h \ |
|
|
12151 | sys/stropts.h \ |
|
|
12152 | |
|
|
12153 | do |
|
|
12154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12160 | fi |
|
|
12161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12163 | else |
|
|
12164 | # Is the header compilable? |
|
|
12165 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12168 | /* confdefs.h. */ |
|
|
12169 | _ACEOF |
|
|
12170 | cat confdefs.h >>conftest.$ac_ext |
|
|
12171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12172 | /* end confdefs.h. */ |
|
|
12173 | $ac_includes_default |
|
|
12174 | #include <$ac_header> |
|
|
12175 | _ACEOF |
|
|
12176 | rm -f conftest.$ac_objext |
|
|
12177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12178 | (eval $ac_compile) 2>conftest.er1 |
|
|
12179 | ac_status=$? |
|
|
12180 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12181 | rm -f conftest.er1 |
|
|
12182 | cat conftest.err >&5 |
|
|
12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12184 | (exit $ac_status); } && |
|
|
12185 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12187 | (eval $ac_try) 2>&5 |
|
|
12188 | ac_status=$? |
|
|
12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12190 | (exit $ac_status); }; } && |
|
|
12191 | { ac_try='test -s conftest.$ac_objext' |
|
|
12192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12193 | (eval $ac_try) 2>&5 |
|
|
12194 | ac_status=$? |
|
|
12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12196 | (exit $ac_status); }; }; then |
|
|
12197 | ac_header_compiler=yes |
|
|
12198 | else |
|
|
12199 | echo "$as_me: failed program was:" >&5 |
|
|
12200 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12201 | |
|
|
12202 | ac_header_compiler=no |
|
|
12203 | fi |
|
|
12204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12206 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12207 | |
|
|
12208 | # Is the header present? |
|
|
12209 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12210 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12211 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12212 | /* confdefs.h. */ |
|
|
12213 | _ACEOF |
|
|
12214 | cat confdefs.h >>conftest.$ac_ext |
|
|
12215 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12216 | /* end confdefs.h. */ |
|
|
12217 | #include <$ac_header> |
|
|
12218 | _ACEOF |
|
|
12219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12221 | ac_status=$? |
|
|
12222 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12223 | rm -f conftest.er1 |
|
|
12224 | cat conftest.err >&5 |
|
|
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12226 | (exit $ac_status); } >/dev/null; then |
|
|
12227 | if test -s conftest.err; then |
|
|
12228 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12229 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12230 | else |
|
|
12231 | ac_cpp_err= |
|
|
12232 | fi |
|
|
12233 | else |
|
|
12234 | ac_cpp_err=yes |
|
|
12235 | fi |
|
|
12236 | if test -z "$ac_cpp_err"; then |
|
|
12237 | ac_header_preproc=yes |
|
|
12238 | else |
|
|
12239 | echo "$as_me: failed program was:" >&5 |
|
|
12240 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12241 | |
|
|
12242 | ac_header_preproc=no |
|
|
12243 | fi |
|
|
12244 | rm -f conftest.err conftest.$ac_ext |
|
|
12245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12246 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12247 | |
|
|
12248 | # So? What about this header? |
|
|
12249 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12250 | yes:no: ) |
|
|
12251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12254 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12255 | ac_header_preproc=yes |
|
|
12256 | ;; |
|
|
12257 | no:yes:* ) |
|
|
12258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12263 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12264 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12265 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12267 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12268 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12269 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12270 | ( |
|
|
12271 | cat <<\_ASBOX |
|
|
12272 | ## ------------------------------------------ ## |
|
|
12273 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12274 | ## ------------------------------------------ ## |
|
|
12275 | _ASBOX |
|
|
12276 | ) | |
|
|
12277 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12278 | ;; |
|
|
12279 | esac |
|
|
12280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12284 | else |
|
|
12285 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12286 | fi |
|
|
12287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12289 | |
|
|
12290 | fi |
|
|
12291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12292 | cat >>confdefs.h <<_ACEOF |
|
|
12293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12294 | _ACEOF |
|
|
12295 | |
|
|
12296 | fi |
|
|
12297 | |
|
|
12298 | done |
|
|
12299 | |
|
|
12300 | |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | |
|
|
12305 | |
|
|
12306 | for ac_func in \ |
|
|
12307 | revoke \ |
|
|
12308 | _getpty \ |
|
|
12309 | getpt \ |
|
|
12310 | posix_openpt \ |
|
|
12311 | isastream \ |
|
|
12312 | |
|
|
12313 | do |
|
|
12314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12317 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12319 | else |
|
|
12320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12321 | /* confdefs.h. */ |
|
|
12322 | _ACEOF |
|
|
12323 | cat confdefs.h >>conftest.$ac_ext |
|
|
12324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12325 | /* end confdefs.h. */ |
|
|
12326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12328 | #define $ac_func innocuous_$ac_func |
|
|
12329 | |
|
|
12330 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12331 | which can conflict with char $ac_func (); below. |
|
|
12332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12333 | <limits.h> exists even on freestanding compilers. */ |
|
|
12334 | |
|
|
12335 | #ifdef __STDC__ |
|
|
12336 | # include <limits.h> |
|
|
12337 | #else |
|
|
12338 | # include <assert.h> |
|
|
12339 | #endif |
|
|
12340 | |
|
|
12341 | #undef $ac_func |
|
|
12342 | |
|
|
12343 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12344 | #ifdef __cplusplus |
|
|
12345 | extern "C" |
|
|
12346 | { |
|
|
12347 | #endif |
|
|
12348 | /* We use char because int might match the return type of a gcc2 |
|
|
12349 | builtin and then its argument prototype would still apply. */ |
|
|
12350 | char $ac_func (); |
|
|
12351 | /* The GNU C library defines this for functions which it implements |
|
|
12352 | to always fail with ENOSYS. Some functions are actually named |
|
|
12353 | something starting with __ and the normal name is an alias. */ |
|
|
12354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12355 | choke me |
|
|
12356 | #else |
|
|
12357 | char (*f) () = $ac_func; |
|
|
12358 | #endif |
|
|
12359 | #ifdef __cplusplus |
|
|
12360 | } |
|
|
12361 | #endif |
|
|
12362 | |
|
|
12363 | int |
|
|
12364 | main () |
|
|
12365 | { |
|
|
12366 | return f != $ac_func; |
|
|
12367 | ; |
|
|
12368 | return 0; |
|
|
12369 | } |
|
|
12370 | _ACEOF |
|
|
12371 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12373 | (eval $ac_link) 2>conftest.er1 |
|
|
12374 | ac_status=$? |
|
|
12375 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12376 | rm -f conftest.er1 |
|
|
12377 | cat conftest.err >&5 |
|
|
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12379 | (exit $ac_status); } && |
|
|
12380 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12382 | (eval $ac_try) 2>&5 |
|
|
12383 | ac_status=$? |
|
|
12384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12385 | (exit $ac_status); }; } && |
|
|
12386 | { ac_try='test -s conftest$ac_exeext' |
|
|
12387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12388 | (eval $ac_try) 2>&5 |
|
|
12389 | ac_status=$? |
|
|
12390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12391 | (exit $ac_status); }; }; then |
|
|
12392 | eval "$as_ac_var=yes" |
|
|
12393 | else |
|
|
12394 | echo "$as_me: failed program was:" >&5 |
|
|
12395 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12396 | |
|
|
12397 | eval "$as_ac_var=no" |
|
|
12398 | fi |
|
|
12399 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12400 | conftest$ac_exeext conftest.$ac_ext |
|
|
12401 | fi |
|
|
12402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12403 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12404 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12405 | cat >>confdefs.h <<_ACEOF |
|
|
12406 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12407 | _ACEOF |
|
|
12408 | |
|
|
12409 | fi |
|
|
12410 | done |
|
|
12411 | |
|
|
12412 | |
|
|
12413 | have_clone=no |
|
|
12414 | |
|
|
12415 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12416 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12417 | if test -e /dev/ptym/clone; then |
|
|
12418 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12419 | echo "${ECHO_T}yes" >&6 |
|
|
12420 | |
|
|
12421 | cat >>confdefs.h <<\_ACEOF |
|
|
12422 | #define HAVE_DEV_CLONE 1 |
|
|
12423 | _ACEOF |
|
|
12424 | |
|
|
12425 | |
|
|
12426 | cat >>confdefs.h <<\_ACEOF |
|
|
12427 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12428 | _ACEOF |
|
|
12429 | |
|
|
12430 | have_clone=yes |
|
|
12431 | else |
|
|
12432 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12433 | echo "${ECHO_T}no" >&6 |
|
|
12434 | fi |
|
|
12435 | |
|
|
12436 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12437 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12438 | if test -e /dev/ptc; then |
|
|
12439 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12440 | echo "${ECHO_T}yes" >&6 |
|
|
12441 | |
|
|
12442 | cat >>confdefs.h <<\_ACEOF |
|
|
12443 | #define HAVE_DEV_PTC 1 |
|
|
12444 | _ACEOF |
|
|
12445 | |
|
|
12446 | |
|
|
12447 | cat >>confdefs.h <<\_ACEOF |
|
|
12448 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12449 | _ACEOF |
|
|
12450 | |
|
|
12451 | have_clone=yes |
|
|
12452 | else |
|
|
12453 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12454 | echo "${ECHO_T}no" >&6 |
|
|
12455 | fi |
|
|
12456 | |
|
|
12457 | case $host in |
|
|
12458 | *-*-cygwin*) |
|
|
12459 | have_clone=yes |
|
|
12460 | |
|
|
12461 | cat >>confdefs.h <<\_ACEOF |
|
|
12462 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12463 | _ACEOF |
|
|
12464 | |
|
|
12465 | ;; |
|
|
12466 | *) |
|
|
12467 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12468 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12469 | if test -e /dev/ptmx; then |
|
|
12470 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12471 | echo "${ECHO_T}yes" >&6 |
|
|
12472 | |
|
|
12473 | cat >>confdefs.h <<\_ACEOF |
|
|
12474 | #define HAVE_DEV_PTMX 1 |
|
|
12475 | _ACEOF |
|
|
12476 | |
|
|
12477 | |
|
|
12478 | cat >>confdefs.h <<\_ACEOF |
|
|
12479 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12480 | _ACEOF |
|
|
12481 | |
|
|
12482 | have_clone=yes |
|
|
12483 | else |
|
|
12484 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12485 | echo "${ECHO_T}no" >&6 |
|
|
12486 | fi |
|
|
12487 | ;; |
|
|
12488 | esac |
|
|
12489 | |
|
|
12490 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12491 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12492 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12493 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12494 | /* confdefs.h. */ |
|
|
12495 | _ACEOF |
|
|
12496 | cat confdefs.h >>conftest.$ac_ext |
|
|
12497 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12498 | /* end confdefs.h. */ |
|
|
12499 | #include <stdlib.h> |
|
|
12500 | int |
|
|
12501 | main () |
|
|
12502 | { |
|
|
12503 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12504 | ; |
|
|
12505 | return 0; |
|
|
12506 | } |
|
|
12507 | _ACEOF |
|
|
12508 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12510 | (eval $ac_link) 2>conftest.er1 |
|
|
12511 | ac_status=$? |
|
|
12512 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12513 | rm -f conftest.er1 |
|
|
12514 | cat conftest.err >&5 |
|
|
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12516 | (exit $ac_status); } && |
|
|
12517 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12519 | (eval $ac_try) 2>&5 |
|
|
12520 | ac_status=$? |
|
|
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12522 | (exit $ac_status); }; } && |
|
|
12523 | { ac_try='test -s conftest$ac_exeext' |
|
|
12524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12525 | (eval $ac_try) 2>&5 |
|
|
12526 | ac_status=$? |
|
|
12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12528 | (exit $ac_status); }; }; then |
|
|
12529 | unix98_pty=yes |
|
|
12530 | |
|
|
12531 | cat >>confdefs.h <<\_ACEOF |
|
|
12532 | #define UNIX98_PTY 1 |
|
|
12533 | _ACEOF |
|
|
12534 | |
|
|
12535 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12536 | echo "${ECHO_T}yes" >&6 |
|
|
12537 | else |
|
|
12538 | echo "$as_me: failed program was:" >&5 |
|
|
12539 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12540 | |
|
|
12541 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12542 | echo "${ECHO_T}no" >&6 |
|
|
12543 | fi |
|
|
12544 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12545 | conftest$ac_exeext conftest.$ac_ext |
|
|
12546 | fi |
|
|
12547 | |
|
|
12548 | if test -z "$unix98_pty"; then |
|
|
12549 | |
|
|
12550 | for ac_func in openpty |
|
|
12551 | do |
|
|
12552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12553 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12555 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12557 | else |
|
|
12558 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12559 | /* confdefs.h. */ |
|
|
12560 | _ACEOF |
|
|
12561 | cat confdefs.h >>conftest.$ac_ext |
|
|
12562 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12563 | /* end confdefs.h. */ |
|
|
12564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12566 | #define $ac_func innocuous_$ac_func |
|
|
12567 | |
|
|
12568 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12569 | which can conflict with char $ac_func (); below. |
|
|
12570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12571 | <limits.h> exists even on freestanding compilers. */ |
|
|
12572 | |
|
|
12573 | #ifdef __STDC__ |
|
|
12574 | # include <limits.h> |
|
|
12575 | #else |
|
|
12576 | # include <assert.h> |
|
|
12577 | #endif |
|
|
12578 | |
|
|
12579 | #undef $ac_func |
|
|
12580 | |
|
|
12581 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12582 | #ifdef __cplusplus |
|
|
12583 | extern "C" |
|
|
12584 | { |
|
|
12585 | #endif |
|
|
12586 | /* We use char because int might match the return type of a gcc2 |
|
|
12587 | builtin and then its argument prototype would still apply. */ |
|
|
12588 | char $ac_func (); |
|
|
12589 | /* The GNU C library defines this for functions which it implements |
|
|
12590 | to always fail with ENOSYS. Some functions are actually named |
|
|
12591 | something starting with __ and the normal name is an alias. */ |
|
|
12592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12593 | choke me |
|
|
12594 | #else |
|
|
12595 | char (*f) () = $ac_func; |
|
|
12596 | #endif |
|
|
12597 | #ifdef __cplusplus |
|
|
12598 | } |
|
|
12599 | #endif |
|
|
12600 | |
|
|
12601 | int |
|
|
12602 | main () |
|
|
12603 | { |
|
|
12604 | return f != $ac_func; |
|
|
12605 | ; |
|
|
12606 | return 0; |
|
|
12607 | } |
|
|
12608 | _ACEOF |
|
|
12609 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12611 | (eval $ac_link) 2>conftest.er1 |
|
|
12612 | ac_status=$? |
|
|
12613 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12614 | rm -f conftest.er1 |
|
|
12615 | cat conftest.err >&5 |
|
|
12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12617 | (exit $ac_status); } && |
|
|
12618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12620 | (eval $ac_try) 2>&5 |
|
|
12621 | ac_status=$? |
|
|
12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12623 | (exit $ac_status); }; } && |
|
|
12624 | { ac_try='test -s conftest$ac_exeext' |
|
|
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12626 | (eval $ac_try) 2>&5 |
|
|
12627 | ac_status=$? |
|
|
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12629 | (exit $ac_status); }; }; then |
|
|
12630 | eval "$as_ac_var=yes" |
|
|
12631 | else |
|
|
12632 | echo "$as_me: failed program was:" >&5 |
|
|
12633 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12634 | |
|
|
12635 | eval "$as_ac_var=no" |
|
|
12636 | fi |
|
|
12637 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12638 | conftest$ac_exeext conftest.$ac_ext |
|
|
12639 | fi |
|
|
12640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12641 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12642 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12643 | cat >>confdefs.h <<_ACEOF |
|
|
12644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12645 | _ACEOF |
|
|
12646 | |
|
|
12647 | else |
|
|
12648 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12649 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12650 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12652 | else |
|
|
12653 | ac_check_lib_save_LIBS=$LIBS |
|
|
12654 | LIBS="-lutil $LIBS" |
|
|
12655 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12656 | /* confdefs.h. */ |
|
|
12657 | _ACEOF |
|
|
12658 | cat confdefs.h >>conftest.$ac_ext |
|
|
12659 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12660 | /* end confdefs.h. */ |
|
|
12661 | |
|
|
12662 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12663 | #ifdef __cplusplus |
|
|
12664 | extern "C" |
|
|
12665 | #endif |
|
|
12666 | /* We use char because int might match the return type of a gcc2 |
|
|
12667 | builtin and then its argument prototype would still apply. */ |
|
|
12668 | char openpty (); |
|
|
12669 | int |
|
|
12670 | main () |
|
|
12671 | { |
|
|
12672 | openpty (); |
|
|
12673 | ; |
|
|
12674 | return 0; |
|
|
12675 | } |
|
|
12676 | _ACEOF |
|
|
12677 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12679 | (eval $ac_link) 2>conftest.er1 |
|
|
12680 | ac_status=$? |
|
|
12681 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12682 | rm -f conftest.er1 |
|
|
12683 | cat conftest.err >&5 |
|
|
12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12685 | (exit $ac_status); } && |
|
|
12686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12688 | (eval $ac_try) 2>&5 |
|
|
12689 | ac_status=$? |
|
|
12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12691 | (exit $ac_status); }; } && |
|
|
12692 | { ac_try='test -s conftest$ac_exeext' |
|
|
12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12694 | (eval $ac_try) 2>&5 |
|
|
12695 | ac_status=$? |
|
|
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12697 | (exit $ac_status); }; }; then |
|
|
12698 | ac_cv_lib_util_openpty=yes |
|
|
12699 | else |
|
|
12700 | echo "$as_me: failed program was:" >&5 |
|
|
12701 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12702 | |
|
|
12703 | ac_cv_lib_util_openpty=no |
|
|
12704 | fi |
|
|
12705 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12706 | conftest$ac_exeext conftest.$ac_ext |
|
|
12707 | LIBS=$ac_check_lib_save_LIBS |
|
|
12708 | fi |
|
|
12709 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12710 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12711 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12712 | cat >>confdefs.h <<\_ACEOF |
|
|
12713 | #define HAVE_OPENPTY 1 |
|
|
12714 | _ACEOF |
|
|
12715 | LIBS="$LIBS -lutil" |
|
|
12716 | fi |
|
|
12717 | |
|
|
12718 | fi |
|
|
12719 | done |
|
|
12720 | |
|
|
12721 | fi |
|
|
12722 | |
10524 | |
12723 | |
10525 | if test x$support_xft = xyes; then |
12724 | if test x$support_xft = xyes; then |
10526 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12725 | # Extract the first word of "pkg-config", so it can be a program name with args. |
10527 | set dummy pkg-config; ac_word=$2 |
12726 | set dummy pkg-config; ac_word=$2 |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |