Browse code
passing acct_mgmt handler test
Greg Wiley authored on 28/03/2017 22:16:50
Showing 8 changed files
Showing 8 changed files
- Makefile.am
- Makefile.in
- config.h.in
- configure
- configure.ac
- dual_control.c
- dual_control_test
- dual_control_test.c
... | ... |
@@ -86,7 +86,7 @@ POST_INSTALL = : |
86 | 86 |
NORMAL_UNINSTALL = : |
87 | 87 |
PRE_UNINSTALL = : |
88 | 88 |
POST_UNINSTALL = : |
89 |
-bin_PROGRAMS = hello$(EXEEXT) |
|
89 |
+bin_PROGRAMS = dual_control_test$(EXEEXT) |
|
90 | 90 |
subdir = . |
91 | 91 |
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
92 | 92 |
am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
... | ... |
@@ -102,9 +102,10 @@ CONFIG_CLEAN_FILES = |
102 | 102 |
CONFIG_CLEAN_VPATH_FILES = |
103 | 103 |
am__installdirs = "$(DESTDIR)$(bindir)" |
104 | 104 |
PROGRAMS = $(bin_PROGRAMS) |
105 |
-am_hello_OBJECTS = hello.$(OBJEXT) |
|
106 |
-hello_OBJECTS = $(am_hello_OBJECTS) |
|
107 |
-hello_LDADD = $(LDADD) |
|
105 |
+am_dual_control_test_OBJECTS = dual_control_test.$(OBJEXT) \ |
|
106 |
+ dual_control.$(OBJEXT) |
|
107 |
+dual_control_test_OBJECTS = $(am_dual_control_test_OBJECTS) |
|
108 |
+dual_control_test_LDADD = $(LDADD) |
|
108 | 109 |
AM_V_P = $(am__v_P_@AM_V@) |
109 | 110 |
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) |
110 | 111 |
am__v_P_0 = false |
... | ... |
@@ -133,8 +134,8 @@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
133 | 134 |
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
134 | 135 |
am__v_CCLD_0 = @echo " CCLD " $@; |
135 | 136 |
am__v_CCLD_1 = |
136 |
-SOURCES = $(hello_SOURCES) |
|
137 |
-DIST_SOURCES = $(hello_SOURCES) |
|
137 |
+SOURCES = $(dual_control_test_SOURCES) |
|
138 |
+DIST_SOURCES = $(dual_control_test_SOURCES) |
|
138 | 139 |
am__can_run_installinfo = \ |
139 | 140 |
case $$AM_UPDATE_INFO_DIR in \ |
140 | 141 |
n|no|NO) false;; \ |
... | ... |
@@ -192,7 +193,6 @@ AWK = @AWK@ |
192 | 193 |
CC = @CC@ |
193 | 194 |
CCDEPMODE = @CCDEPMODE@ |
194 | 195 |
CFLAGS = @CFLAGS@ |
195 |
-CPP = @CPP@ |
|
196 | 196 |
CPPFLAGS = @CPPFLAGS@ |
197 | 197 |
CYGPATH_W = @CYGPATH_W@ |
198 | 198 |
DEFS = @DEFS@ |
... | ... |
@@ -200,9 +200,7 @@ DEPDIR = @DEPDIR@ |
200 | 200 |
ECHO_C = @ECHO_C@ |
201 | 201 |
ECHO_N = @ECHO_N@ |
202 | 202 |
ECHO_T = @ECHO_T@ |
203 |
-EGREP = @EGREP@ |
|
204 | 203 |
EXEEXT = @EXEEXT@ |
205 |
-GREP = @GREP@ |
|
206 | 204 |
INSTALL = @INSTALL@ |
207 | 205 |
INSTALL_DATA = @INSTALL_DATA@ |
208 | 206 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
... | ... |
@@ -269,7 +267,7 @@ target_alias = @target_alias@ |
269 | 267 |
top_build_prefix = @top_build_prefix@ |
270 | 268 |
top_builddir = @top_builddir@ |
271 | 269 |
top_srcdir = @top_srcdir@ |
272 |
-hello_SOURCES = hello.c |
|
270 |
+dual_control_test_SOURCES = dual_control_test.c dual_control.c |
|
273 | 271 |
all: config.h |
274 | 272 |
$(MAKE) $(AM_MAKEFLAGS) all-am |
275 | 273 |
|
... | ... |
@@ -366,9 +364,9 @@ uninstall-binPROGRAMS: |
366 | 364 |
clean-binPROGRAMS: |
367 | 365 |
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) |
368 | 366 |
|
369 |
-hello$(EXEEXT): $(hello_OBJECTS) $(hello_DEPENDENCIES) $(EXTRA_hello_DEPENDENCIES) |
|
370 |
- @rm -f hello$(EXEEXT) |
|
371 |
- $(AM_V_CCLD)$(LINK) $(hello_OBJECTS) $(hello_LDADD) $(LIBS) |
|
367 |
+dual_control_test$(EXEEXT): $(dual_control_test_OBJECTS) $(dual_control_test_DEPENDENCIES) $(EXTRA_dual_control_test_DEPENDENCIES) |
|
368 |
+ @rm -f dual_control_test$(EXEEXT) |
|
369 |
+ $(AM_V_CCLD)$(LINK) $(dual_control_test_OBJECTS) $(dual_control_test_LDADD) $(LIBS) |
|
372 | 370 |
|
373 | 371 |
mostlyclean-compile: |
374 | 372 |
-rm -f *.$(OBJEXT) |
... | ... |
@@ -376,7 +374,8 @@ mostlyclean-compile: |
376 | 374 |
distclean-compile: |
377 | 375 |
-rm -f *.tab.c |
378 | 376 |
|
379 |
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hello.Po@am__quote@ |
|
377 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dual_control.Po@am__quote@ |
|
378 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dual_control_test.Po@am__quote@ |
|
380 | 379 |
|
381 | 380 |
.c.o: |
382 | 381 |
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
... | ... |
@@ -1,38 +1,5 @@ |
1 | 1 |
/* config.h.in. Generated from configure.ac by autoheader. */ |
2 | 2 |
|
3 |
-/* Define to 1 if you have the `gettimeofday' function. */ |
|
4 |
-#undef HAVE_GETTIMEOFDAY |
|
5 |
- |
|
6 |
-/* Define to 1 if you have the <inttypes.h> header file. */ |
|
7 |
-#undef HAVE_INTTYPES_H |
|
8 |
- |
|
9 |
-/* Define to 1 if you have the <memory.h> header file. */ |
|
10 |
-#undef HAVE_MEMORY_H |
|
11 |
- |
|
12 |
-/* Define to 1 if you have the <stdint.h> header file. */ |
|
13 |
-#undef HAVE_STDINT_H |
|
14 |
- |
|
15 |
-/* Define to 1 if you have the <stdlib.h> header file. */ |
|
16 |
-#undef HAVE_STDLIB_H |
|
17 |
- |
|
18 |
-/* Define to 1 if you have the <strings.h> header file. */ |
|
19 |
-#undef HAVE_STRINGS_H |
|
20 |
- |
|
21 |
-/* Define to 1 if you have the <string.h> header file. */ |
|
22 |
-#undef HAVE_STRING_H |
|
23 |
- |
|
24 |
-/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
25 |
-#undef HAVE_SYS_STAT_H |
|
26 |
- |
|
27 |
-/* Define to 1 if you have the <sys/time.h> header file. */ |
|
28 |
-#undef HAVE_SYS_TIME_H |
|
29 |
- |
|
30 |
-/* Define to 1 if you have the <sys/types.h> header file. */ |
|
31 |
-#undef HAVE_SYS_TYPES_H |
|
32 |
- |
|
33 |
-/* Define to 1 if you have the <unistd.h> header file. */ |
|
34 |
-#undef HAVE_UNISTD_H |
|
35 |
- |
|
36 | 3 |
/* Name of package */ |
37 | 4 |
#undef PACKAGE |
38 | 5 |
|
... | ... |
@@ -54,8 +21,5 @@ |
54 | 21 |
/* Define to the version of this package. */ |
55 | 22 |
#undef PACKAGE_VERSION |
56 | 23 |
|
57 |
-/* Define to 1 if you have the ANSI C header files. */ |
|
58 |
-#undef STDC_HEADERS |
|
59 |
- |
|
60 | 24 |
/* Version number of package */ |
61 | 25 |
#undef VERSION |
... | ... |
@@ -197,8 +197,7 @@ test -x / || exit 1" |
197 | 197 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | 198 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
199 | 199 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
200 |
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
201 |
-test \$(( 1 + 1 )) = 2 || exit 1" |
|
200 |
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
|
202 | 201 |
if (eval "$as_required") 2>/dev/null; then : |
203 | 202 |
as_have_required=yes |
204 | 203 |
else |
... | ... |
@@ -585,50 +584,11 @@ PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' |
585 | 584 |
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' |
586 | 585 |
PACKAGE_URL='' |
587 | 586 |
|
588 |
-ac_unique_file="hello.c" |
|
589 |
-# Factoring default headers for most tests. |
|
590 |
-ac_includes_default="\ |
|
591 |
-#include <stdio.h> |
|
592 |
-#ifdef HAVE_SYS_TYPES_H |
|
593 |
-# include <sys/types.h> |
|
594 |
-#endif |
|
595 |
-#ifdef HAVE_SYS_STAT_H |
|
596 |
-# include <sys/stat.h> |
|
597 |
-#endif |
|
598 |
-#ifdef STDC_HEADERS |
|
599 |
-# include <stdlib.h> |
|
600 |
-# include <stddef.h> |
|
601 |
-#else |
|
602 |
-# ifdef HAVE_STDLIB_H |
|
603 |
-# include <stdlib.h> |
|
604 |
-# endif |
|
605 |
-#endif |
|
606 |
-#ifdef HAVE_STRING_H |
|
607 |
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
608 |
-# include <memory.h> |
|
609 |
-# endif |
|
610 |
-# include <string.h> |
|
611 |
-#endif |
|
612 |
-#ifdef HAVE_STRINGS_H |
|
613 |
-# include <strings.h> |
|
614 |
-#endif |
|
615 |
-#ifdef HAVE_INTTYPES_H |
|
616 |
-# include <inttypes.h> |
|
617 |
-#endif |
|
618 |
-#ifdef HAVE_STDINT_H |
|
619 |
-# include <stdint.h> |
|
620 |
-#endif |
|
621 |
-#ifdef HAVE_UNISTD_H |
|
622 |
-# include <unistd.h> |
|
623 |
-#endif" |
|
624 |
- |
|
587 |
+ac_unique_file="config.h.in" |
|
625 | 588 |
ac_subst_vars='am__EXEEXT_FALSE |
626 | 589 |
am__EXEEXT_TRUE |
627 | 590 |
LTLIBOBJS |
628 | 591 |
LIBOBJS |
629 |
-EGREP |
|
630 |
-GREP |
|
631 |
-CPP |
|
632 | 592 |
am__fastdepCC_FALSE |
633 | 593 |
am__fastdepCC_TRUE |
634 | 594 |
CCDEPMODE |
... | ... |
@@ -724,8 +684,7 @@ CC |
724 | 684 |
CFLAGS |
725 | 685 |
LDFLAGS |
726 | 686 |
LIBS |
727 |
-CPPFLAGS |
|
728 |
-CPP' |
|
687 |
+CPPFLAGS' |
|
729 | 688 |
|
730 | 689 |
|
731 | 690 |
# Initialize some variables set by options. |
... | ... |
@@ -1356,7 +1315,6 @@ Some influential environment variables: |
1356 | 1315 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1357 | 1316 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1358 | 1317 |
you have headers in a nonstandard directory <include dir> |
1359 |
- CPP C preprocessor |
|
1360 | 1318 |
|
1361 | 1319 |
Use these variables to override the choices made by `configure' or to help |
1362 | 1320 |
it to find libraries and programs with nonstandard names/locations. |
... | ... |
@@ -1475,320 +1433,6 @@ fi |
1475 | 1433 |
as_fn_set_status $ac_retval |
1476 | 1434 |
|
1477 | 1435 |
} # ac_fn_c_try_compile |
1478 |
- |
|
1479 |
-# ac_fn_c_try_cpp LINENO |
|
1480 |
-# ---------------------- |
|
1481 |
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1482 |
-ac_fn_c_try_cpp () |
|
1483 |
-{ |
|
1484 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1485 |
- if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1486 |
-case "(($ac_try" in |
|
1487 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1488 |
- *) ac_try_echo=$ac_try;; |
|
1489 |
-esac |
|
1490 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1491 |
-$as_echo "$ac_try_echo"; } >&5 |
|
1492 |
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1493 |
- ac_status=$? |
|
1494 |
- if test -s conftest.err; then |
|
1495 |
- grep -v '^ *+' conftest.err >conftest.er1 |
|
1496 |
- cat conftest.er1 >&5 |
|
1497 |
- mv -f conftest.er1 conftest.err |
|
1498 |
- fi |
|
1499 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1500 |
- test $ac_status = 0; } > conftest.i && { |
|
1501 |
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1502 |
- test ! -s conftest.err |
|
1503 |
- }; then : |
|
1504 |
- ac_retval=0 |
|
1505 |
-else |
|
1506 |
- $as_echo "$as_me: failed program was:" >&5 |
|
1507 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
1508 |
- |
|
1509 |
- ac_retval=1 |
|
1510 |
-fi |
|
1511 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1512 |
- as_fn_set_status $ac_retval |
|
1513 |
- |
|
1514 |
-} # ac_fn_c_try_cpp |
|
1515 |
- |
|
1516 |
-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
1517 |
-# ------------------------------------------------------- |
|
1518 |
-# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
1519 |
-# the include files in INCLUDES and setting the cache variable VAR |
|
1520 |
-# accordingly. |
|
1521 |
-ac_fn_c_check_header_mongrel () |
|
1522 |
-{ |
|
1523 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1524 |
- if eval \${$3+:} false; then : |
|
1525 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1526 |
-$as_echo_n "checking for $2... " >&6; } |
|
1527 |
-if eval \${$3+:} false; then : |
|
1528 |
- $as_echo_n "(cached) " >&6 |
|
1529 |
-fi |
|
1530 |
-eval ac_res=\$$3 |
|
1531 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1532 |
-$as_echo "$ac_res" >&6; } |
|
1533 |
-else |
|
1534 |
- # Is the header compilable? |
|
1535 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
1536 |
-$as_echo_n "checking $2 usability... " >&6; } |
|
1537 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1538 |
-/* end confdefs.h. */ |
|
1539 |
-$4 |
|
1540 |
-#include <$2> |
|
1541 |
-_ACEOF |
|
1542 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
1543 |
- ac_header_compiler=yes |
|
1544 |
-else |
|
1545 |
- ac_header_compiler=no |
|
1546 |
-fi |
|
1547 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1548 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
1549 |
-$as_echo "$ac_header_compiler" >&6; } |
|
1550 |
- |
|
1551 |
-# Is the header present? |
|
1552 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
1553 |
-$as_echo_n "checking $2 presence... " >&6; } |
|
1554 |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1555 |
-/* end confdefs.h. */ |
|
1556 |
-#include <$2> |
|
1557 |
-_ACEOF |
|
1558 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
1559 |
- ac_header_preproc=yes |
|
1560 |
-else |
|
1561 |
- ac_header_preproc=no |
|
1562 |
-fi |
|
1563 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
1564 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
1565 |
-$as_echo "$ac_header_preproc" >&6; } |
|
1566 |
- |
|
1567 |
-# So? What about this header? |
|
1568 |
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
1569 |
- yes:no: ) |
|
1570 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
1571 |
-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 |
- ;; |
|
1575 |
- no:yes:* ) |
|
1576 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
1577 |
-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
1578 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
1579 |
-$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
1580 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
1581 |
-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
1582 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
1583 |
-$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
1584 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
1585 |
-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
1586 |
-( $as_echo "## --------------------------------- ## |
|
1587 |
-## Report this to BUG-REPORT-ADDRESS ## |
|
1588 |
-## --------------------------------- ##" |
|
1589 |
- ) | sed "s/^/$as_me: WARNING: /" >&2 |
|
1590 |
- ;; |
|
1591 |
-esac |
|
1592 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1593 |
-$as_echo_n "checking for $2... " >&6; } |
|
1594 |
-if eval \${$3+:} false; then : |
|
1595 |
- $as_echo_n "(cached) " >&6 |
|
1596 |
-else |
|
1597 |
- eval "$3=\$ac_header_compiler" |
|
1598 |
-fi |
|
1599 |
-eval ac_res=\$$3 |
|
1600 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1601 |
-$as_echo "$ac_res" >&6; } |
|
1602 |
-fi |
|
1603 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1604 |
- |
|
1605 |
-} # ac_fn_c_check_header_mongrel |
|
1606 |
- |
|
1607 |
-# ac_fn_c_try_run LINENO |
|
1608 |
-# ---------------------- |
|
1609 |
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
1610 |
-# that executables *can* be run. |
|
1611 |
-ac_fn_c_try_run () |
|
1612 |
-{ |
|
1613 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1614 |
- if { { ac_try="$ac_link" |
|
1615 |
-case "(($ac_try" in |
|
1616 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1617 |
- *) ac_try_echo=$ac_try;; |
|
1618 |
-esac |
|
1619 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1620 |
-$as_echo "$ac_try_echo"; } >&5 |
|
1621 |
- (eval "$ac_link") 2>&5 |
|
1622 |
- ac_status=$? |
|
1623 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1624 |
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1625 |
- { { case "(($ac_try" in |
|
1626 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1627 |
- *) ac_try_echo=$ac_try;; |
|
1628 |
-esac |
|
1629 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1630 |
-$as_echo "$ac_try_echo"; } >&5 |
|
1631 |
- (eval "$ac_try") 2>&5 |
|
1632 |
- ac_status=$? |
|
1633 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1634 |
- test $ac_status = 0; }; }; then : |
|
1635 |
- ac_retval=0 |
|
1636 |
-else |
|
1637 |
- $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1638 |
- $as_echo "$as_me: failed program was:" >&5 |
|
1639 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
1640 |
- |
|
1641 |
- ac_retval=$ac_status |
|
1642 |
-fi |
|
1643 |
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1644 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1645 |
- as_fn_set_status $ac_retval |
|
1646 |
- |
|
1647 |
-} # ac_fn_c_try_run |
|
1648 |
- |
|
1649 |
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1650 |
-# ------------------------------------------------------- |
|
1651 |
-# Tests whether HEADER exists and can be compiled using the include files in |
|
1652 |
-# INCLUDES, setting the cache variable VAR accordingly. |
|
1653 |
-ac_fn_c_check_header_compile () |
|
1654 |
-{ |
|
1655 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1656 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1657 |
-$as_echo_n "checking for $2... " >&6; } |
|
1658 |
-if eval \${$3+:} false; then : |
|
1659 |
- $as_echo_n "(cached) " >&6 |
|
1660 |
-else |
|
1661 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1662 |
-/* end confdefs.h. */ |
|
1663 |
-$4 |
|
1664 |
-#include <$2> |
|
1665 |
-_ACEOF |
|
1666 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
1667 |
- eval "$3=yes" |
|
1668 |
-else |
|
1669 |
- eval "$3=no" |
|
1670 |
-fi |
|
1671 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1672 |
-fi |
|
1673 |
-eval ac_res=\$$3 |
|
1674 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1675 |
-$as_echo "$ac_res" >&6; } |
|
1676 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1677 |
- |
|
1678 |
-} # ac_fn_c_check_header_compile |
|
1679 |
- |
|
1680 |
-# ac_fn_c_try_link LINENO |
|
1681 |
-# ----------------------- |
|
1682 |
-# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1683 |
-ac_fn_c_try_link () |
|
1684 |
-{ |
|
1685 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1686 |
- rm -f conftest.$ac_objext conftest$ac_exeext |
|
1687 |
- if { { ac_try="$ac_link" |
|
1688 |
-case "(($ac_try" in |
|
1689 |
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1690 |
- *) ac_try_echo=$ac_try;; |
|
1691 |
-esac |
|
1692 |
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1693 |
-$as_echo "$ac_try_echo"; } >&5 |
|
1694 |
- (eval "$ac_link") 2>conftest.err |
|
1695 |
- ac_status=$? |
|
1696 |
- if test -s conftest.err; then |
|
1697 |
- grep -v '^ *+' conftest.err >conftest.er1 |
|
1698 |
- cat conftest.er1 >&5 |
|
1699 |
- mv -f conftest.er1 conftest.err |
|
1700 |
- fi |
|
1701 |
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1702 |
- test $ac_status = 0; } && { |
|
1703 |
- test -z "$ac_c_werror_flag" || |
|
1704 |
- test ! -s conftest.err |
|
1705 |
- } && test -s conftest$ac_exeext && { |
|
1706 |
- test "$cross_compiling" = yes || |
|
1707 |
- test -x conftest$ac_exeext |
|
1708 |
- }; then : |
|
1709 |
- ac_retval=0 |
|
1710 |
-else |
|
1711 |
- $as_echo "$as_me: failed program was:" >&5 |
|
1712 |
-sed 's/^/| /' conftest.$ac_ext >&5 |
|
1713 |
- |
|
1714 |
- ac_retval=1 |
|
1715 |
-fi |
|
1716 |
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1717 |
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1718 |
- # interfere with the next link command; also delete a directory that is |
|
1719 |
- # left behind by Apple's compiler. We do this before executing the actions. |
|
1720 |
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1721 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1722 |
- as_fn_set_status $ac_retval |
|
1723 |
- |
|
1724 |
-} # ac_fn_c_try_link |
|
1725 |
- |
|
1726 |
-# ac_fn_c_check_func LINENO FUNC VAR |
|
1727 |
-# ---------------------------------- |
|
1728 |
-# Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
1729 |
-ac_fn_c_check_func () |
|
1730 |
-{ |
|
1731 |
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1732 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1733 |
-$as_echo_n "checking for $2... " >&6; } |
|
1734 |
-if eval \${$3+:} false; then : |
|
1735 |
- $as_echo_n "(cached) " >&6 |
|
1736 |
-else |
|
1737 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1738 |
-/* end confdefs.h. */ |
|
1739 |
-/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
1740 |
- For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
1741 |
-#define $2 innocuous_$2 |
|
1742 |
- |
|
1743 |
-/* System header to define __stub macros and hopefully few prototypes, |
|
1744 |
- which can conflict with char $2 (); below. |
|
1745 |
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
1746 |
- <limits.h> exists even on freestanding compilers. */ |
|
1747 |
- |
|
1748 |
-#ifdef __STDC__ |
|
1749 |
-# include <limits.h> |
|
1750 |
-#else |
|
1751 |
-# include <assert.h> |
|
1752 |
-#endif |
|
1753 |
- |
|
1754 |
-#undef $2 |
|
1755 |
- |
|
1756 |
-/* Override any GCC internal prototype to avoid an error. |
|
1757 |
- Use char because int might match the return type of a GCC |
|
1758 |
- builtin and then its argument prototype would still apply. */ |
|
1759 |
-#ifdef __cplusplus |
|
1760 |
-extern "C" |
|
1761 |
-#endif |
|
1762 |
-char $2 (); |
|
1763 |
-/* The GNU C library defines this for functions which it implements |
|
1764 |
- to always fail with ENOSYS. Some functions are actually named |
|
1765 |
- something starting with __ and the normal name is an alias. */ |
|
1766 |
-#if defined __stub_$2 || defined __stub___$2 |
|
1767 |
-choke me |
|
1768 |
-#endif |
|
1769 |
- |
|
1770 |
-int |
|
1771 |
-main () |
|
1772 |
-{ |
|
1773 |
-return $2 (); |
|
1774 |
- ; |
|
1775 |
- return 0; |
|
1776 |
-} |
|
1777 |
-_ACEOF |
|
1778 |
-if ac_fn_c_try_link "$LINENO"; then : |
|
1779 |
- eval "$3=yes" |
|
1780 |
-else |
|
1781 |
- eval "$3=no" |
|
1782 |
-fi |
|
1783 |
-rm -f core conftest.err conftest.$ac_objext \ |
|
1784 |
- conftest$ac_exeext conftest.$ac_ext |
|
1785 |
-fi |
|
1786 |
-eval ac_res=\$$3 |
|
1787 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1788 |
-$as_echo "$ac_res" >&6; } |
|
1789 |
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1790 |
- |
|
1791 |
-} # ac_fn_c_check_func |
|
1792 | 1436 |
cat >config.log <<_ACEOF |
1793 | 1437 |
This file contains any messages produced by compilers while |
1794 | 1438 |
running configure, to aid debugging if configure makes a mistake. |
... | ... |
@@ -3798,430 +3442,9 @@ fi |
3798 | 3442 |
|
3799 | 3443 |
# Checks for header files. |
3800 | 3444 |
|
3801 |
-ac_ext=c |
|
3802 |
-ac_cpp='$CPP $CPPFLAGS' |
|
3803 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3804 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3805 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3806 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
3807 |
-$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
3808 |
-# On Suns, sometimes $CPP names a directory. |
|
3809 |
-if test -n "$CPP" && test -d "$CPP"; then |
|
3810 |
- CPP= |
|
3811 |
-fi |
|
3812 |
-if test -z "$CPP"; then |
|
3813 |
- if ${ac_cv_prog_CPP+:} false; then : |
|
3814 |
- $as_echo_n "(cached) " >&6 |
|
3815 |
-else |
|
3816 |
- # Double quotes because CPP needs to be expanded |
|
3817 |
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
3818 |
- do |
|
3819 |
- ac_preproc_ok=false |
|
3820 |
-for ac_c_preproc_warn_flag in '' yes |
|
3821 |
-do |
|
3822 |
- # Use a header file that comes with gcc, so configuring glibc |
|
3823 |
- # with a fresh cross-compiler works. |
|
3824 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3825 |
- # <limits.h> exists even on freestanding compilers. |
|
3826 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
|
3827 |
- # not just through cpp. "Syntax error" is here to catch this case. |
|
3828 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3829 |
-/* end confdefs.h. */ |
|
3830 |
-#ifdef __STDC__ |
|
3831 |
-# include <limits.h> |
|
3832 |
-#else |
|
3833 |
-# include <assert.h> |
|
3834 |
-#endif |
|
3835 |
- Syntax error |
|
3836 |
-_ACEOF |
|
3837 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
3838 |
- |
|
3839 |
-else |
|
3840 |
- # Broken: fails on valid input. |
|
3841 |
-continue |
|
3842 |
-fi |
|
3843 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
3844 |
- |
|
3845 |
- # OK, works on sane cases. Now check whether nonexistent headers |
|
3846 |
- # can be detected and how. |
|
3847 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3848 |
-/* end confdefs.h. */ |
|
3849 |
-#include <ac_nonexistent.h> |
|
3850 |
-_ACEOF |
|
3851 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
3852 |
- # Broken: success on invalid input. |
|
3853 |
-continue |
|
3854 |
-else |
|
3855 |
- # Passes both tests. |
|
3856 |
-ac_preproc_ok=: |
|
3857 |
-break |
|
3858 |
-fi |
|
3859 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
3860 |
- |
|
3861 |
-done |
|
3862 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3863 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
|
3864 |
-if $ac_preproc_ok; then : |
|
3865 |
- break |
|
3866 |
-fi |
|
3867 |
- |
|
3868 |
- done |
|
3869 |
- ac_cv_prog_CPP=$CPP |
|
3870 |
- |
|
3871 |
-fi |
|
3872 |
- CPP=$ac_cv_prog_CPP |
|
3873 |
-else |
|
3874 |
- ac_cv_prog_CPP=$CPP |
|
3875 |
-fi |
|
3876 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
3877 |
-$as_echo "$CPP" >&6; } |
|
3878 |
-ac_preproc_ok=false |
|
3879 |
-for ac_c_preproc_warn_flag in '' yes |
|
3880 |
-do |
|
3881 |
- # Use a header file that comes with gcc, so configuring glibc |
|
3882 |
- # with a fresh cross-compiler works. |
|
3883 |
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
3884 |
- # <limits.h> exists even on freestanding compilers. |
|
3885 |
- # On the NeXT, cc -E runs the code through the compiler's parser, |
|
3886 |
- # not just through cpp. "Syntax error" is here to catch this case. |
|
3887 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3888 |
-/* end confdefs.h. */ |
|
3889 |
-#ifdef __STDC__ |
|
3890 |
-# include <limits.h> |
|
3891 |
-#else |
|
3892 |
-# include <assert.h> |
|
3893 |
-#endif |
|
3894 |
- Syntax error |
|
3895 |
-_ACEOF |
|
3896 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
3897 |
- |
|
3898 |
-else |
|
3899 |
- # Broken: fails on valid input. |
|
3900 |
-continue |
|
3901 |
-fi |
|
3902 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
3903 |
- |
|
3904 |
- # OK, works on sane cases. Now check whether nonexistent headers |
|
3905 |
- # can be detected and how. |
|
3906 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3907 |
-/* end confdefs.h. */ |
|
3908 |
-#include <ac_nonexistent.h> |
|
3909 |
-_ACEOF |
|
3910 |
-if ac_fn_c_try_cpp "$LINENO"; then : |
|
3911 |
- # Broken: success on invalid input. |
|
3912 |
-continue |
|
3913 |
-else |
|
3914 |
- # Passes both tests. |
|
3915 |
-ac_preproc_ok=: |
|
3916 |
-break |
|
3917 |
-fi |
|
3918 |
-rm -f conftest.err conftest.i conftest.$ac_ext |
|
3919 |
- |
|
3920 |
-done |
|
3921 |
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
3922 |
-rm -f conftest.i conftest.err conftest.$ac_ext |
|
3923 |
-if $ac_preproc_ok; then : |
|
3924 |
- |
|
3925 |
-else |
|
3926 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3927 |
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3928 |
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
3929 |
-See \`config.log' for more details" "$LINENO" 5; } |
|
3930 |
-fi |
|
3931 |
- |
|
3932 |
-ac_ext=c |
|
3933 |
-ac_cpp='$CPP $CPPFLAGS' |
|
3934 |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3935 |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3936 |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3937 |
- |
|
3938 |
- |
|
3939 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
3940 |
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
3941 |
-if ${ac_cv_path_GREP+:} false; then : |
|
3942 |
- $as_echo_n "(cached) " >&6 |
|
3943 |
-else |
|
3944 |
- if test -z "$GREP"; then |
|
3945 |
- ac_path_GREP_found=false |
|
3946 |
- # Loop through the user's path and test for each of PROGNAME-LIST |
|
3947 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3948 |
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
3949 |
-do |
|
3950 |
- IFS=$as_save_IFS |
|
3951 |
- test -z "$as_dir" && as_dir=. |
|
3952 |
- for ac_prog in grep ggrep; do |
|
3953 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
|
3954 |
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
3955 |
- as_fn_executable_p "$ac_path_GREP" || continue |
|
3956 |
-# Check for GNU ac_path_GREP and select it if it is found. |
|
3957 |
- # Check for GNU $ac_path_GREP |
|
3958 |
-case `"$ac_path_GREP" --version 2>&1` in |
|
3959 |
-*GNU*) |
|
3960 |
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
3961 |
-*) |
|
3962 |
- ac_count=0 |
|
3963 |
- $as_echo_n 0123456789 >"conftest.in" |
|
3964 |
- while : |
|
3965 |
- do |
|
3966 |
- cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3967 |
- mv "conftest.tmp" "conftest.in" |
|
3968 |
- cp "conftest.in" "conftest.nl" |
|
3969 |
- $as_echo 'GREP' >> "conftest.nl" |
|
3970 |
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3971 |
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3972 |
- as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
3973 |
- if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
3974 |
- # Best one so far, save it but keep looking for a better one |
|
3975 |
- ac_cv_path_GREP="$ac_path_GREP" |
|
3976 |
- ac_path_GREP_max=$ac_count |
|
3977 |
- fi |
|
3978 |
- # 10*(2^10) chars as input seems more than enough |
|
3979 |
- test $ac_count -gt 10 && break |
|
3980 |
- done |
|
3981 |
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3982 |
-esac |
|
3983 |
- |
|
3984 |
- $ac_path_GREP_found && break 3 |
|
3985 |
- done |
|
3986 |
- done |
|
3987 |
- done |
|
3988 |
-IFS=$as_save_IFS |
|
3989 |
- if test -z "$ac_cv_path_GREP"; then |
|
3990 |
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
3991 |
- fi |
|
3992 |
-else |
|
3993 |
- ac_cv_path_GREP=$GREP |
|
3994 |
-fi |
|
3995 |
- |
|
3996 |
-fi |
|
3997 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
3998 |
-$as_echo "$ac_cv_path_GREP" >&6; } |
|
3999 |
- GREP="$ac_cv_path_GREP" |
|
4000 |
- |
|
4001 |
- |
|
4002 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
4003 |
-$as_echo_n "checking for egrep... " >&6; } |
|
4004 |
-if ${ac_cv_path_EGREP+:} false; then : |
|
4005 |
- $as_echo_n "(cached) " >&6 |
|
4006 |
-else |
|
4007 |
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
4008 |
- then ac_cv_path_EGREP="$GREP -E" |
|
4009 |
- else |
|
4010 |
- if test -z "$EGREP"; then |
|
4011 |
- ac_path_EGREP_found=false |
|
4012 |
- # Loop through the user's path and test for each of PROGNAME-LIST |
|
4013 |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4014 |
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4015 |
-do |
|
4016 |
- IFS=$as_save_IFS |
|
4017 |
- test -z "$as_dir" && as_dir=. |
|
4018 |
- for ac_prog in egrep; do |
|
4019 |
- for ac_exec_ext in '' $ac_executable_extensions; do |
|
4020 |
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4021 |
- as_fn_executable_p "$ac_path_EGREP" || continue |
|
4022 |
-# Check for GNU ac_path_EGREP and select it if it is found. |
|
4023 |
- # Check for GNU $ac_path_EGREP |
|
4024 |
-case `"$ac_path_EGREP" --version 2>&1` in |
|
4025 |
-*GNU*) |
|
4026 |
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
4027 |
-*) |
|
4028 |
- ac_count=0 |
|
4029 |
- $as_echo_n 0123456789 >"conftest.in" |
|
4030 |
- while : |
|
4031 |
- do |
|
4032 |
- cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4033 |
- mv "conftest.tmp" "conftest.in" |
|
4034 |
- cp "conftest.in" "conftest.nl" |
|
4035 |
- $as_echo 'EGREP' >> "conftest.nl" |
|
4036 |
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4037 |
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4038 |
- as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4039 |
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
4040 |
- # Best one so far, save it but keep looking for a better one |
|
4041 |
- ac_cv_path_EGREP="$ac_path_EGREP" |
|
4042 |
- ac_path_EGREP_max=$ac_count |
|
4043 |
- fi |
|
4044 |
- # 10*(2^10) chars as input seems more than enough |
|
4045 |
- test $ac_count -gt 10 && break |
|
4046 |
- done |
|
4047 |
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4048 |
-esac |
|
4049 |
- |
|
4050 |
- $ac_path_EGREP_found && break 3 |
|
4051 |
- done |
|
4052 |
- done |
|
4053 |
- done |
|
4054 |
-IFS=$as_save_IFS |
|
4055 |
- if test -z "$ac_cv_path_EGREP"; then |
|
4056 |
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4057 |
- fi |
|
4058 |
-else |
|
4059 |
- ac_cv_path_EGREP=$EGREP |
|
4060 |
-fi |
|
4061 |
- |
|
4062 |
- fi |
|
4063 |
-fi |
|
4064 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
4065 |
-$as_echo "$ac_cv_path_EGREP" >&6; } |
|
4066 |
- EGREP="$ac_cv_path_EGREP" |
|
4067 |
- |
|
4068 |
- |
|
4069 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
4070 |
-$as_echo_n "checking for ANSI C header files... " >&6; } |
|
4071 |
-if ${ac_cv_header_stdc+:} false; then : |
|
4072 |
- $as_echo_n "(cached) " >&6 |
|
4073 |
-else |
|
4074 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4075 |
-/* end confdefs.h. */ |
|
4076 |
-#include <stdlib.h> |
|
4077 |
-#include <stdarg.h> |
|
4078 |
-#include <string.h> |
|
4079 |
-#include <float.h> |
|
4080 |
- |
|
4081 |
-int |
|
4082 |
-main () |
|
4083 |
-{ |
|
4084 |
- |
|
4085 |
- ; |
|
4086 |
- return 0; |
|
4087 |
-} |
|
4088 |
-_ACEOF |
|
4089 |
-if ac_fn_c_try_compile "$LINENO"; then : |
|
4090 |
- ac_cv_header_stdc=yes |
|
4091 |
-else |
|
4092 |
- ac_cv_header_stdc=no |
|
4093 |
-fi |
|
4094 |
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4095 |
- |
|
4096 |
-if test $ac_cv_header_stdc = yes; then |
|
4097 |
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
4098 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4099 |
-/* end confdefs.h. */ |
|
4100 |
-#include <string.h> |
|
4101 |
- |
|
4102 |
-_ACEOF |
|
4103 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4104 |
- $EGREP "memchr" >/dev/null 2>&1; then : |
|
4105 |
- |
|
4106 |
-else |
|
4107 |
- ac_cv_header_stdc=no |
|
4108 |
-fi |
|
4109 |
-rm -f conftest* |
|
4110 |
- |
|
4111 |
-fi |
|
4112 |
- |
|
4113 |
-if test $ac_cv_header_stdc = yes; then |
|
4114 |
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
4115 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4116 |
-/* end confdefs.h. */ |
|
4117 |
-#include <stdlib.h> |
|
4118 |
- |
|
4119 |
-_ACEOF |
|
4120 |
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
4121 |
- $EGREP "free" >/dev/null 2>&1; then : |
|
4122 |
- |
|
4123 |
-else |
|
4124 |
- ac_cv_header_stdc=no |
|
4125 |
-fi |
|
4126 |
-rm -f conftest* |
|
4127 |
- |
|
4128 |
-fi |
|
4129 |
- |
|
4130 |
-if test $ac_cv_header_stdc = yes; then |
|
4131 |
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
4132 |
- if test "$cross_compiling" = yes; then : |
|
4133 |
- : |
|
4134 |
-else |
|
4135 |
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
4136 |
-/* end confdefs.h. */ |
|
4137 |
-#include <ctype.h> |
|
4138 |
-#include <stdlib.h> |
|
4139 |
-#if ((' ' & 0x0FF) == 0x020) |
|
4140 |
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
4141 |
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
4142 |
-#else |
|
4143 |
-# define ISLOWER(c) \ |
|
4144 |
- (('a' <= (c) && (c) <= 'i') \ |
|
4145 |
- || ('j' <= (c) && (c) <= 'r') \ |
|
4146 |
- || ('s' <= (c) && (c) <= 'z')) |
|
4147 |
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
4148 |
-#endif |
|
4149 |
- |
|
4150 |
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
4151 |
-int |
|
4152 |
-main () |
|
4153 |
-{ |
|
4154 |
- int i; |
|
4155 |
- for (i = 0; i < 256; i++) |
|
4156 |
- if (XOR (islower (i), ISLOWER (i)) |
|
4157 |
- || toupper (i) != TOUPPER (i)) |
|
4158 |
- return 2; |
|
4159 |
- return 0; |
|
4160 |
-} |
|
4161 |
-_ACEOF |
|
4162 |
-if ac_fn_c_try_run "$LINENO"; then : |
|
4163 |
- |
|
4164 |
-else |
|
4165 |
- ac_cv_header_stdc=no |
|
4166 |
-fi |
|
4167 |
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
4168 |
- conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
4169 |
-fi |
|
4170 |
- |
|
4171 |
-fi |
|
4172 |
-fi |
|
4173 |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
4174 |
-$as_echo "$ac_cv_header_stdc" >&6; } |
|
4175 |
-if test $ac_cv_header_stdc = yes; then |
|
4176 |
- |
|
4177 |
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
4178 |
- |
|
4179 |
-fi |
|
4180 |
- |
|
4181 |
-# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
4182 |
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
4183 |
- inttypes.h stdint.h unistd.h |
|
4184 |
-do : |
|
4185 |
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
4186 |
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
4187 |
-" |
|
4188 |
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
4189 |
- cat >>confdefs.h <<_ACEOF |
|
4190 |
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
4191 |
-_ACEOF |
|
4192 |
- |
|
4193 |
-fi |
|
4194 |
- |
|
4195 |
-done |
|
4196 |
- |
|
4197 |
- |
|
4198 |
-for ac_header in sys/time.h |
|
4199 |
-do : |
|
4200 |
- ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
|
4201 |
-if test "x$ac_cv_header_sys_time_h" = xyes; then : |
|
4202 |
- cat >>confdefs.h <<_ACEOF |
|
4203 |
-#define HAVE_SYS_TIME_H 1 |
|
4204 |
-_ACEOF |
|
4205 |
- |
|
4206 |
-fi |
|
4207 |
- |
|
4208 |
-done |
|
4209 |
- |
|
4210 |
- |
|
4211 | 3445 |
# Checks for typedefs, structures, and compiler characteristics. |
4212 | 3446 |
|
4213 | 3447 |
# Checks for library functions. |
4214 |
-for ac_func in gettimeofday |
|
4215 |
-do : |
|
4216 |
- ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
|
4217 |
-if test "x$ac_cv_func_gettimeofday" = xyes; then : |
|
4218 |
- cat >>confdefs.h <<_ACEOF |
|
4219 |
-#define HAVE_GETTIMEOFDAY 1 |
|
4220 |
-_ACEOF |
|
4221 |
- |
|
4222 |
-fi |
|
4223 |
-done |
|
4224 |
- |
|
4225 | 3448 |
|
4226 | 3449 |
ac_config_files="$ac_config_files Makefile" |
4227 | 3450 |
|
... | ... |
@@ -1,10 +1,9 @@ |
1 | 1 |
# -*- Autoconf -*- |
2 | 2 |
# Process this file with autoconf to produce a configure script. |
3 | 3 |
|
4 |
- |
|
5 | 4 |
AC_PREREQ([2.69]) |
6 | 5 |
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) |
7 |
-AC_CONFIG_SRCDIR([hello.c]) |
|
6 |
+AC_CONFIG_SRCDIR([config.h.in]) |
|
8 | 7 |
AC_CONFIG_HEADERS([config.h]) |
9 | 8 |
AM_INIT_AUTOMAKE |
10 | 9 |
|
... | ... |
@@ -14,12 +13,10 @@ AC_PROG_CC |
14 | 13 |
# Checks for libraries. |
15 | 14 |
|
16 | 15 |
# Checks for header files. |
17 |
-AC_CHECK_HEADERS([sys/time.h]) |
|
18 | 16 |
|
19 | 17 |
# Checks for typedefs, structures, and compiler characteristics. |
20 | 18 |
|
21 | 19 |
# Checks for library functions. |
22 |
-AC_CHECK_FUNCS([gettimeofday]) |
|
23 | 20 |
|
24 | 21 |
AC_CONFIG_FILES([Makefile]) |
25 | 22 |
AC_OUTPUT |
26 | 23 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,9 @@ |
1 |
+#include <security/pam_appl.h> |
|
2 |
+#include <security/pam_modules.h> |
|
3 |
+#include <stdio.h> |
|
4 |
+ |
|
5 |
+PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv) { |
|
6 |
+ printf("Acct mgmt\n"); |
|
7 |
+ return PAM_SUCCESS; |
|
8 |
+} |
|
9 |
+ |
2 | 12 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+ |
|
2 |
+#include <security/pam_appl.h> |
|
3 |
+#include <security/pam_modules.h> |
|
4 |
+#include <stdio.h> |
|
5 |
+ |
|
6 |
+int pam_sm_acct_mgmt_returns_successs() { |
|
7 |
+ // given |
|
8 |
+ |
|
9 |
+ // when |
|
10 |
+ int result = pam_sm_acct_mgmt(NULL, 0, 0, NULL); |
|
11 |
+ |
|
12 |
+ // then |
|
13 |
+ return result == PAM_SUCCESS; |
|
14 |
+} |
|
15 |
+ |
|
16 |
+int main(int argc, char* argv[]) { |
|
17 |
+ if (pam_sm_acct_mgmt_returns_successs()) { |
|
18 |
+ printf("success!"); |
|
19 |
+ } else { |
|
20 |
+ printf("fail"); |
|
21 |
+ } |
|
22 |
+ return 0; |
|
23 |
+} |
|
24 |
+ |