forked from OpenSCAP/openscap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
1823 lines (1649 loc) · 69.1 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ! MAKE SURE YOU ARE EDITING THE ac_probes/configure.ac.tpl FILE,
# ! THE configure.ac FILE ITSELF IS GENERATED FROM THE TEMPLATE USING
# ! ac_probes/ac_probes.sh
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([openscap], [1.2.17], [[email protected]])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign tar-pax])
# If automake supports "silent rules", enable them by default
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_DISABLE_STATIC
#build dll on windows(cygwin)
AC_LIBTOOL_WIN32_DLL
AM_PATH_PYTHON
# Checks for programs.
AC_PROG_CC
gl_EARLY
gl_INIT
AM_PROG_LIBTOOL
AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
# swig
AC_PROG_SWIG([])
# libtool versioning
# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
## increment if the interface has additions, changes, removals.
LT_CURRENT=22
## increment any time the source changes; set 0 to if you increment CURRENT
LT_REVISION=0
## increment if any interfaces have been added; set to 0
## if any interfaces have been changed or removed. removal has
## precedence over adding, so set to 0 if both happened.
LT_AGE=14
LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_SUBST(LT_CURRENT_MINUS_AGE)
AC_DEFINE_UNQUOTED([LT_CURRENT_MINUS_AGE], [$LT_CURRENT_MINUS_AGE], [LT_CURRENT - LT_AGE])
AC_DEFUN([canonical_wrap], [AC_REQUIRE([AC_CANONICAL_HOST])])
canonical_wrap
# Compiler flags
CFLAGS="$CFLAGS -pipe -std=c99 -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -D_GNU_SOURCE -DOSCAP_THREAD_SAFE -D_POSIX_C_SOURCE=200112L"
case $host in
*solaris*) :
CFLAGS="$CFLAGS -D__EXTENSIONS__" ;;
esac
CFLAGS_OPTIMIZED="-O2 -finline-functions"
CFLAGS_DEBUGGING="-fno-inline-functions -O0 -g3"
CFLAGS_NODEBUG="-Wno-unused-function"
my_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Werror=format-security"
AC_MSG_CHECKING([whether CC supports -Werror=format-security])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])]
[AM_CFLAGS="-Werror=format-security"],
[AC_MSG_RESULT([no])]
)
CFLAGS="$my_save_cflags"
AC_SUBST([AM_CFLAGS])
probe_family_req_deps_ok=yes
probe_family_req_deps_missing=
probe_family_opt_deps_ok=yes
probe_family_opt_deps_missing=
probe_textfilecontent_req_deps_ok=yes
probe_textfilecontent_req_deps_missing=
probe_textfilecontent_opt_deps_ok=yes
probe_textfilecontent_opt_deps_missing=
probe_textfilecontent54_req_deps_ok=yes
probe_textfilecontent54_req_deps_missing=
probe_textfilecontent54_opt_deps_ok=yes
probe_textfilecontent54_opt_deps_missing=
probe_variable_req_deps_ok=yes
probe_variable_req_deps_missing=
probe_variable_opt_deps_ok=yes
probe_variable_opt_deps_missing=
probe_xmlfilecontent_req_deps_ok=yes
probe_xmlfilecontent_req_deps_missing=
probe_xmlfilecontent_opt_deps_ok=yes
probe_xmlfilecontent_opt_deps_missing=
probe_filehash_req_deps_ok=yes
probe_filehash_req_deps_missing=
probe_filehash_opt_deps_ok=yes
probe_filehash_opt_deps_missing=
probe_filehash58_req_deps_ok=yes
probe_filehash58_req_deps_missing=
probe_filehash58_opt_deps_ok=yes
probe_filehash58_opt_deps_missing=
probe_environmentvariable_req_deps_ok=yes
probe_environmentvariable_req_deps_missing=
probe_environmentvariable_opt_deps_ok=yes
probe_environmentvariable_opt_deps_missing=
probe_environmentvariable58_req_deps_ok=yes
probe_environmentvariable58_req_deps_missing=
probe_environmentvariable58_opt_deps_ok=yes
probe_environmentvariable58_opt_deps_missing=
probe_sql_req_deps_ok=yes
probe_sql_req_deps_missing=
probe_sql_opt_deps_ok=yes
probe_sql_opt_deps_missing=
probe_sql57_req_deps_ok=yes
probe_sql57_req_deps_missing=
probe_sql57_opt_deps_ok=yes
probe_sql57_opt_deps_missing=
probe_ldap57_req_deps_ok=yes
probe_ldap57_req_deps_missing=
probe_ldap57_opt_deps_ok=yes
probe_ldap57_opt_deps_missing=
probe_dnscache_req_deps_ok=yes
probe_dnscache_req_deps_missing=
probe_dnscache_opt_deps_ok=yes
probe_dnscache_opt_deps_missing=
probe_runlevel_req_deps_ok=yes
probe_runlevel_req_deps_missing=
probe_runlevel_opt_deps_ok=yes
probe_runlevel_opt_deps_missing=
probe_file_req_deps_ok=yes
probe_file_req_deps_missing=
probe_file_opt_deps_ok=yes
probe_file_opt_deps_missing=
probe_fileextendedattribute_req_deps_ok=yes
probe_fileextendedattribute_req_deps_missing=
probe_fileextendedattribute_opt_deps_ok=yes
probe_fileextendedattribute_opt_deps_missing=
probe_password_req_deps_ok=yes
probe_password_req_deps_missing=
probe_password_opt_deps_ok=yes
probe_password_opt_deps_missing=
probe_process_req_deps_ok=yes
probe_process_req_deps_missing=
probe_process_opt_deps_ok=yes
probe_process_opt_deps_missing=
probe_process58_req_deps_ok=yes
probe_process58_req_deps_missing=
probe_process58_opt_deps_ok=yes
probe_process58_opt_deps_missing=
probe_shadow_req_deps_ok=yes
probe_shadow_req_deps_missing=
probe_shadow_opt_deps_ok=yes
probe_shadow_opt_deps_missing=
probe_uname_req_deps_ok=yes
probe_uname_req_deps_missing=
probe_uname_opt_deps_ok=yes
probe_uname_opt_deps_missing=
probe_interface_req_deps_ok=yes
probe_interface_req_deps_missing=
probe_interface_opt_deps_ok=yes
probe_interface_opt_deps_missing=
probe_xinetd_req_deps_ok=yes
probe_xinetd_req_deps_missing=
probe_xinetd_opt_deps_ok=yes
probe_xinetd_opt_deps_missing=
probe_sysctl_req_deps_ok=yes
probe_sysctl_req_deps_missing=
probe_sysctl_opt_deps_ok=yes
probe_sysctl_opt_deps_missing=
probe_routingtable_req_deps_ok=yes
probe_routingtable_req_deps_missing=
probe_routingtable_opt_deps_ok=yes
probe_routingtable_opt_deps_missing=
probe_symlink_req_deps_ok=yes
probe_symlink_req_deps_missing=
probe_symlink_opt_deps_ok=yes
probe_symlink_opt_deps_missing=
probe_gconf_req_deps_ok=yes
probe_gconf_req_deps_missing=
probe_gconf_opt_deps_ok=yes
probe_gconf_opt_deps_missing=
probe_isainfo_req_deps_ok=yes
probe_isainfo_req_deps_missing=
probe_isainfo_opt_deps_ok=yes
probe_isainfo_opt_deps_missing=
probe_package_req_deps_ok=yes
probe_package_req_deps_missing=
probe_package_opt_deps_ok=yes
probe_package_opt_deps_missing=
probe_patch_req_deps_ok=yes
probe_patch_req_deps_missing=
probe_patch_opt_deps_ok=yes
probe_patch_opt_deps_missing=
probe_smf_req_deps_ok=yes
probe_smf_req_deps_missing=
probe_smf_opt_deps_ok=yes
probe_smf_opt_deps_missing=
probe_partition_req_deps_ok=yes
probe_partition_req_deps_missing=
probe_partition_opt_deps_ok=yes
probe_partition_opt_deps_missing=
probe_inetlisteningservers_req_deps_ok=yes
probe_inetlisteningservers_req_deps_missing=
probe_inetlisteningservers_opt_deps_ok=yes
probe_inetlisteningservers_opt_deps_missing=
probe_iflisteners_req_deps_ok=yes
probe_iflisteners_req_deps_missing=
probe_iflisteners_opt_deps_ok=yes
probe_iflisteners_opt_deps_missing=
probe_selinuxboolean_req_deps_ok=yes
probe_selinuxboolean_req_deps_missing=
probe_selinuxboolean_opt_deps_ok=yes
probe_selinuxboolean_opt_deps_missing=
probe_selinuxsecuritycontext_req_deps_ok=yes
probe_selinuxsecuritycontext_req_deps_missing=
probe_selinuxsecuritycontext_opt_deps_ok=yes
probe_selinuxsecuritycontext_opt_deps_missing=
probe_rpminfo_req_deps_ok=yes
probe_rpminfo_req_deps_missing=
probe_rpminfo_opt_deps_ok=yes
probe_rpminfo_opt_deps_missing=
probe_rpmverify_req_deps_ok=yes
probe_rpmverify_req_deps_missing=
probe_rpmverify_opt_deps_ok=yes
probe_rpmverify_opt_deps_missing=
probe_rpmverifyfile_req_deps_ok=yes
probe_rpmverifyfile_req_deps_missing=
probe_rpmverifyfile_opt_deps_ok=yes
probe_rpmverifyfile_opt_deps_missing=
probe_rpmverifypackage_req_deps_ok=yes
probe_rpmverifypackage_req_deps_missing=
probe_rpmverifypackage_opt_deps_ok=yes
probe_rpmverifypackage_opt_deps_missing=
probe_dpkginfo_req_deps_ok=yes
probe_dpkginfo_req_deps_missing=
probe_dpkginfo_opt_deps_ok=yes
probe_dpkginfo_opt_deps_missing=
probe_systemdunitproperty_req_deps_ok=yes
probe_systemdunitproperty_req_deps_missing=
probe_systemdunitproperty_opt_deps_ok=yes
probe_systemdunitproperty_opt_deps_missing=
probe_systemdunitdependency_req_deps_ok=yes
probe_systemdunitdependency_req_deps_missing=
probe_systemdunitdependency_opt_deps_ok=yes
probe_systemdunitdependency_opt_deps_missing=
#
# env
#
AC_CHECK_PROG(
[HAVE_ENV],
[env],
[yes],,,
)
AM_CONDITIONAL(ENV_PRESENT, [test x"${HAVE_ENV}" = xyes])
#
# Valgrind
#
AC_CHECK_PROG(
[HAVE_VALGRIND],
[valgrind],
[yes],,,
)
AM_CONDITIONAL(VALGRIND_PRESENT, [test x"${HAVE_VALGRIND}" = xyes])
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AM_CHECK_PYTHON_HEADERS
#
# threads
#
pthread_CFLAGS=error
pthread_LIBS=error
SAVE_LIBS=$LIBS
if test "x$pthread_LIBS" = "xerror"; then
AC_CHECK_LIB(c_r, pthread_attr_init, [
pthread_CFLAGS="-DOSCAP_THREAD_SAFE -D_THREAD_SAFE -pthread"
pthread_LIBS="-pthread -lrt" ])
fi
if test "x$pthread_LIBS" = "xerror"; then
AC_CHECK_LIB(pthread, pthread_attr_init, [
pthread_CFLAGS="-DOSCAP_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
pthread_LIBS="-lpthread -lrt" ])
fi
if test "x$pthread_LIBS" = "xerror"; then
AC_CHECK_LIB(pthreads, pthread_attr_init, [
pthread_CFLAGS="-DOSCAP_THREAD_SAFE -D_THREAD_SAFE"
pthread_LIBS="-lpthreads -lrt" ])
fi
if test "x$pthread_LIBS" = "xerror"; then
AC_MSG_FAILURE(pthread library is missing)
fi
SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -D_GNU_SOURCE"
LIBS="$pthread_LIBS"
AC_CHECK_FUNCS([pthread_timedjoin_np pthread_setname_np pthread_getname_np clock_gettime])
CFLAGS=$SAVE_CFLAGS
LIBS=$SAVE_LIBS
AC_SUBST(pthread_CFLAGS)
AC_SUBST(pthread_LIBS)
PKG_CHECK_MODULES([curl], [libcurl >= 7.12.0],[],
AC_MSG_FAILURE([libcurl devel support is missing]))
PKG_CHECK_MODULES([xml2], [libxml-2.0 >= 2.0],[],
AC_MSG_FAILURE([libxml-2.0 devel support is missing]))
PKG_CHECK_MODULES([xslt], [libxslt >= 1.1],[],
AC_MSG_FAILURE([libxslt devel support is missing]))
PKG_CHECK_MODULES([exslt], [libexslt >= 0.8],[],
AC_MSG_FAILURE([libexslt devel support is missing]))
AC_CHECK_HEADER(pcre.h, , [AC_MSG_ERROR([pcre.h is missing] )])
crapi_CFLAGS=""
crapi_LIBS=""
if test "${with_crypto}" = ""; then
with_crypto=gcrypt
fi
case "${with_crypto}" in
nss3)
PKG_CHECK_MODULES([nss3], [nss >= 3.0],[],
AC_MSG_FAILURE([libnss3 devel support is missing]))
crapi_libname="NSS 3.x"
crapi_CFLAGS=$nss3_CFLAGS
crapi_LIBS=$nss3_LIBS
AC_DEFINE([HAVE_NSS3], [1], [Define to 1 if you have 'NSS' library.])
;;
gcrypt)
SAVE_LIBS=$LIBS
AC_CHECK_LIB([gcrypt], [gcry_check_version],
[crapi_CFLAGS=`libgcrypt-config --cflags`;
crapi_LIBS=`libgcrypt-config --libs`;
crapi_libname="GCrypt";],
[AC_MSG_ERROR([library 'gcrypt' is required for GCrypt.])],
[])
AC_DEFINE([HAVE_GCRYPT], [1], [Define to 1 if you have 'gcrypt' library.])
AC_CACHE_CHECK([for GCRYCTL_SET_ENFORCED_FIPS_FLAG],
[ac_cv_gcryctl_set_enforced_fips_flag],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include<gcrypt.h>],
[return GCRYCTL_SET_ENFORCED_FIPS_FLAG;])],
[ac_cv_gcryctl_set_enforced_fips_flag=yes],
[ac_cv_gcryctl_set_enforced_fips_flag=no])])
if test "${ac_cv_gcryctl_set_enforced_fips_flag}" == "yes"; then
AC_DEFINE([HAVE_GCRYCTL_SET_ENFORCED_FIPS_FLAG], [1], [Define to 1 if you have 'gcrypt' library with GCRYCTL_SET_ENFORCED_FIPS_FLAG.])
fi
LIBS=$SAVE_LIBS
;;
*)
AC_MSG_ERROR([unknown crypto backend])
;;
esac
AC_SUBST(crapi_CFLAGS)
AC_SUBST(crapi_LIBS)
AC_CHECK_FUNCS([fts_open posix_memalign memalign])
AC_CHECK_FUNC(sigwaitinfo, [sigwaitinfo_LIBS=""], [sigwaitinfo_LIBS="-lrt"])
AC_SUBST(sigwaitinfo_LIBS)
# libopenscap links against librpm if found. Otherwise we carry own implementation of rpmvercmp.
echo
echo '* Checking for rpm library (optional dependency of libopenscap) '
PKG_CHECK_MODULES([rpm], [rpm >= 4.4],[
SAVE_LIBS=$LIBS
AC_DEFINE([HAVE_RPMVERCMP], [1], [Define to 1 if there is rpmvercmp available.])
AC_SUBST([rpm_CFLAGS])
AC_SUBST([rpm_LIBS])
LIBS=$SAVE_LIBS
],[
AC_MSG_NOTICE([!!! librpm not found. The rpmvercmp function will be emulated. !!!])
])
PKG_CHECK_MODULES([rpm], [rpm >= 4.6],[
AC_DEFINE([HAVE_RPM46], [1], [Define to 1 if rpm is newer than 4.6.])
],[
AC_MSG_NOTICE([librpm is older than 4.6])
])
PKG_CHECK_MODULES([rpm], [rpm >= 4.7],[
AC_DEFINE([HAVE_RPM47], [1], [Define to 1 if rpm is newer than 4.7.])
],[
AC_MSG_NOTICE([librpm is older than 4.7])
])
echo
echo '* Checking for bz2 library (optional dependency of libopenscap)'
AC_CHECK_LIB([bz2], [BZ2_bzReadOpen],
[
AC_DEFINE([HAVE_BZ2], [1], [Define to 1 if there is libbz2 available.])
LIBS="$LIBS -lbz2"
AC_CHECK_PROG([HAVE_BZIP2],[bzip2],[yes],,,)
],[
AC_MSG_NOTICE([!!! libbz2 not found. Bzip2 support will be disabled !!!])
])
AM_CONDITIONAL([HAVE_BZIP2], [test "x${HAVE_BZIP2}" = xyes])
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $(pkg-config libapt-pkg --cflags) $(pkg-config blkid --cflags) $(pkg-config dbus-1 --cflags) $(pkg-config gconf-2.0 --cflags) $(pkg-config libpcre --cflags) $(pkg-config libprocps --cflags) $(pkg-config rpm --cflags) $(pkg-config libselinux --cflags) $(pkg-config libxml-2.0 --cflags) $(pkg-config libxslt --cflags) "
echo
echo ' * Checking presence of required headers for the family probe'
AC_CHECK_HEADERS([string.h ],[],[probe_family_req_deps_ok=no; probe_family_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the textfilecontent probe'
AC_CHECK_HEADERS([fcntl.h limits.h stdio.h string.h sys/stat.h sys/types.h ],[],[probe_textfilecontent_req_deps_ok=no; probe_textfilecontent_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the textfilecontent54 probe'
AC_CHECK_HEADERS([errno.h fcntl.h limits.h stdio.h stdlib.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_textfilecontent54_req_deps_ok=no; probe_textfilecontent54_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the variable probe'
AC_CHECK_HEADERS([errno.h stdio.h stdlib.h string.h ],[],[probe_variable_req_deps_ok=no; probe_variable_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the xmlfilecontent probe'
AC_CHECK_HEADERS([libxml/parser.h libxml/tree.h libxml/xpath.h libxml/xpathInternals.h limits.h stdlib.h string.h ],[],[probe_xmlfilecontent_req_deps_ok=no; probe_xmlfilecontent_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the filehash probe'
AC_CHECK_HEADERS([errno.h fcntl.h limits.h pthread.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_filehash_req_deps_ok=no; probe_filehash_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the filehash58 probe'
AC_CHECK_HEADERS([errno.h fcntl.h limits.h pthread.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_filehash58_req_deps_ok=no; probe_filehash58_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the environmentvariable probe'
AC_CHECK_HEADERS([errno.h stdio.h stdlib.h string.h ],[],[probe_environmentvariable_req_deps_ok=no; probe_environmentvariable_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the environmentvariable58 probe'
AC_CHECK_HEADERS([dirent.h errno.h fcntl.h stdio.h stdlib.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_environmentvariable58_req_deps_ok=no; probe_environmentvariable58_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the sql probe'
AC_CHECK_HEADERS([ctype.h errno.h opendbx/api.h stdlib.h string.h time.h ],[],[probe_sql_req_deps_ok=no; probe_sql_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the sql57 probe'
AC_CHECK_HEADERS([ctype.h errno.h opendbx/api.h stdlib.h string.h time.h ],[],[probe_sql57_req_deps_ok=no; probe_sql57_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the ldap57 probe'
AC_CHECK_HEADERS([ldap.h pthread.h stdbool.h ],[],[probe_ldap57_req_deps_ok=no; probe_ldap57_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the dnscache probe'
AC_CHECK_HEADERS([string.h ],[],[probe_dnscache_req_deps_ok=no; probe_dnscache_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the runlevel probe'
AC_CHECK_HEADERS([assert.h dirent.h errno.h limits.h stdbool.h stdio.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_runlevel_req_deps_ok=no; probe_runlevel_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the file probe'
AC_CHECK_HEADERS([errno.h limits.h pthread.h stdlib.h string.h sys/stat.h ],[],[probe_file_req_deps_ok=no; probe_file_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of optional headers for the file probe'
AC_CHECK_HEADERS([acl/libacl.h sys/acl.h sys/types.h ],[],[probe_file_opt_deps_ok=no],[-])
echo
echo ' * Checking presence of required headers for the fileextendedattribute probe'
AC_CHECK_HEADERS([attr/xattr.h errno.h limits.h pthread.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_fileextendedattribute_req_deps_ok=no; probe_fileextendedattribute_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the password probe'
AC_CHECK_HEADERS([errno.h lastlog.h paths.h pwd.h stdio.h stdlib.h string.h ],[],[probe_password_req_deps_ok=no; probe_password_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the process probe'
AC_CHECK_HEADERS([dirent.h errno.h sched.h time.h ],[],[probe_process_req_deps_ok=no; probe_process_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of optional headers for the process probe'
AC_CHECK_HEADERS([fcntl.h proc/devname.h stdio_ext.h stdio.h stdlib.h string.h sys/stat.h sys/sysmacros.h sys/types.h unistd.h ],[],[probe_process_opt_deps_ok=no],[-])
echo
echo ' * Checking presence of required headers for the process58 probe'
AC_CHECK_HEADERS([dirent.h errno.h sched.h time.h ],[],[probe_process58_req_deps_ok=no; probe_process58_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of optional headers for the process58 probe'
AC_CHECK_HEADERS([ctype.h fcntl.h proc/devname.h selinux/context.h selinux/selinux.h stdio_ext.h stdio.h stdlib.h string.h sys/capability.h sys/stat.h sys/sysmacros.h sys/types.h unistd.h ],[],[probe_process58_opt_deps_ok=no],[-])
echo
echo ' * Checking presence of required headers for the shadow probe'
AC_CHECK_HEADERS([errno.h shadow.h stdio.h stdlib.h string.h ],[],[probe_shadow_req_deps_ok=no; probe_shadow_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the uname probe'
AC_CHECK_HEADERS([string.h sys/utsname.h ],[],[probe_uname_req_deps_ok=no; probe_uname_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of optional headers for the uname probe'
AC_CHECK_HEADERS([stdio_ext.h sys/systeminfo.h ],[],[probe_uname_opt_deps_ok=no],[-])
echo
echo ' * Checking presence of required headers for the interface probe'
AC_CHECK_HEADERS([arpa/inet.h ifaddrs.h netdb.h net/if_arp.h net/if.h stdio.h string.h sys/ioctl.h sys/socket.h unistd.h ],[],[probe_interface_req_deps_ok=no; probe_interface_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the xinetd probe'
AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h fnmatch.h limits.h netdb.h stdbool.h stddef.h stdint.h stdlib.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_xinetd_req_deps_ok=no; probe_xinetd_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the sysctl probe'
AC_CHECK_HEADERS([ctype.h errno.h limits.h stdio.h string.h ],[],[probe_sysctl_req_deps_ok=no; probe_sysctl_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the routingtable probe'
AC_CHECK_HEADERS([arpa/inet.h byteswap.h endian.h errno.h netinet/in.h netinet/ip6.h netinet/ip.h net/route.h stdio.h stdlib.h string.h ],[],[probe_routingtable_req_deps_ok=no; probe_routingtable_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the symlink probe'
AC_CHECK_HEADERS([errno.h limits.h stdlib.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_symlink_req_deps_ok=no; probe_symlink_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the gconf probe'
AC_CHECK_HEADERS([gconf/gconf.h limits.h stdint.h stdlib.h string.h ],[],[probe_gconf_req_deps_ok=no; probe_gconf_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the isainfo probe'
AC_CHECK_HEADERS([arpa/inet.h dirent.h errno.h fcntl.h netdb.h stdio_ext.h stdio.h stdlib.h string.h sys/systeminfo.h ],[],[probe_isainfo_req_deps_ok=no; probe_isainfo_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the partition probe'
AC_CHECK_HEADERS([fcntl.h limits.h linux/fs.h mntent.h stdint.h stdio.h stdlib.h string.h sys/stat.h sys/statvfs.h sys/types.h sys/vfs.h ],[],[probe_partition_req_deps_ok=no; probe_partition_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of optional headers for the partition probe'
AC_CHECK_HEADERS([blkid/blkid.h linux/magic.h ],[],[probe_partition_opt_deps_ok=no],[-])
echo
echo ' * Checking presence of required headers for the inetlisteningservers probe'
AC_CHECK_HEADERS([arpa/inet.h dirent.h errno.h fcntl.h netdb.h stdio_ext.h stdio.h stdlib.h string.h ],[],[probe_inetlisteningservers_req_deps_ok=no; probe_inetlisteningservers_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the iflisteners probe'
AC_CHECK_HEADERS([arpa/inet.h dirent.h errno.h fcntl.h netdb.h stdio_ext.h stdio.h stdlib.h string.h ],[],[probe_iflisteners_req_deps_ok=no; probe_iflisteners_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the selinuxboolean probe'
AC_CHECK_HEADERS([errno.h fcntl.h selinux/selinux.h stdio.h stdlib.h string.h sys/stat.h ],[],[probe_selinuxboolean_req_deps_ok=no; probe_selinuxboolean_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the selinuxsecuritycontext probe'
AC_CHECK_HEADERS([dirent.h errno.h fcntl.h limits.h pthread.h selinux/context.h selinux/selinux.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_selinuxsecuritycontext_req_deps_ok=no; probe_selinuxsecuritycontext_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the rpminfo probe'
AC_CHECK_HEADERS([assert.h errno.h fcntl.h pthread.h rpm/header.h rpm/rpmdb.h rpm/rpmfi.h rpm/rpmlib.h rpm/rpmlog.h rpm/rpmmacro.h rpm/rpmts.h stdio.h string.h sys/stat.h sys/types.h ],[],[probe_rpminfo_req_deps_ok=no; probe_rpminfo_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the rpmverify probe'
AC_CHECK_HEADERS([assert.h errno.h fcntl.h limits.h pthread.h rpm/header.h rpm/rpmcli.h rpm/rpmdb.h rpm/rpmfi.h rpm/rpmlib.h rpm/rpmlog.h rpm/rpmmacro.h rpm/rpmts.h stdio.h string.h sys/stat.h sys/types.h ],[],[probe_rpmverify_req_deps_ok=no; probe_rpmverify_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the rpmverifyfile probe'
AC_CHECK_HEADERS([assert.h errno.h fcntl.h limits.h pthread.h rpm/header.h rpm/rpmcli.h rpm/rpmdb.h rpm/rpmfi.h rpm/rpmlib.h rpm/rpmlog.h rpm/rpmmacro.h rpm/rpmts.h stdio.h string.h sys/stat.h sys/types.h ],[],[probe_rpmverifyfile_req_deps_ok=no; probe_rpmverifyfile_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the rpmverifypackage probe'
AC_CHECK_HEADERS([assert.h errno.h fcntl.h limits.h popt.h pthread.h rpm/header.h rpm/rpmcli.h rpm/rpmdb.h rpm/rpmfi.h rpm/rpmlib.h rpm/rpmlog.h rpm/rpmmacro.h rpm/rpmts.h stdio.h string.h sys/stat.h sys/types.h unistd.h ],[],[probe_rpmverifypackage_req_deps_ok=no; probe_rpmverifypackage_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the dpkginfo probe'
AC_CHECK_HEADERS([assert.h errno.h stdio.h string.h ],[],[probe_dpkginfo_req_deps_ok=no; probe_dpkginfo_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the systemdunitproperty probe'
AC_CHECK_HEADERS([dbus/dbus.h string.h ],[],[probe_systemdunitproperty_req_deps_ok=no; probe_systemdunitproperty_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the systemdunitdependency probe'
AC_CHECK_HEADERS([dbus/dbus.h string.h ],[],[probe_systemdunitdependency_req_deps_ok=no; probe_systemdunitdependency_req_deps_missing='header files'],[-])
CPPFLAGS="$SAVE_CPPFLAGS"
echo
echo '* Checking for acl library used by: file'
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([acl_init],[acl],[
acl_CFLAGS=;
acl_LIBS=-lacl;
],[
probe_file_opt_deps_ok=no;
probe_file_opt_deps_missing+=', acl lib';
],[])
AC_SUBST([acl_CFLAGS])
AC_SUBST([acl_LIBS])
LIBS=$SAVE_LIBS
SAVE_LIBS=$LIBS
LIBS=$acl_LIBS
AC_CHECK_FUNCS([acl_init], [], [])
AC_CHECK_FUNCS([acl_extended_file],[],[])
LIBS=$SAVE_LIBS
echo
echo '* Checking for apt_pkg library used by: dpkginfo '
PKG_CHECK_MODULES([apt_pkg], [libapt-pkg >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([pkgVersion],[apt-pkg],[
apt_pkg_CFLAGS=;
apt_pkg_LIBS=-lapt-pkg;
],[
probe_dpkginfo_req_deps_ok=no;
probe_dpkginfo_req_deps_missing+=', apt_pkg';
],[])
AC_SUBST([apt_pkg_CFLAGS])
AC_SUBST([apt_pkg_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$apt_pkg_LIBS
AC_LANG_PUSH([C++])
AC_CHECK_FUNCS([pkgVersion], [], [
probe_dpkginfo_req_deps_ok=no;
probe_dpkginfo_req_deps_missing+=", $ac_func func";
])
AC_LANG_POP([C++])
LIBS=$SAVE_LIBS
echo
echo '* Checking for blkid library used by: partition'
PKG_CHECK_MODULES([blkid], [blkid >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([blkid_get_cache],[blkid],[
blkid_CFLAGS=;
blkid_LIBS=-lblkid;
],[
probe_partition_opt_deps_ok=no;
probe_partition_opt_deps_missing+=', blkid';
],[])
AC_SUBST([blkid_CFLAGS])
AC_SUBST([blkid_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$blkid_LIBS
AC_CHECK_FUNCS([blkid_get_cache blkid_get_tag_value], [], [])
LIBS=$SAVE_LIBS
echo
echo '* Checking for cap library used by: process58 '
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([cap_init],[cap],[
cap_CFLAGS=;
cap_LIBS=-lcap;
],[
probe_process58_req_deps_ok=no;
probe_process58_req_deps_missing+=', cap lib';
],[])
AC_SUBST([cap_CFLAGS])
AC_SUBST([cap_LIBS])
LIBS=$SAVE_LIBS
SAVE_LIBS=$LIBS
LIBS=$cap_LIBS
AC_CHECK_FUNCS([cap_init], [], [
probe_process58_req_deps_ok=no;
probe_process58_req_deps_missing+=", $ac_func func";
])
AC_CHECK_FUNCS([cap_get_pid capgetp],[],[])
LIBS=$SAVE_LIBS
echo
echo '* Checking for dbus1 library used by: systemdunitproperty systemdunitproperty '
PKG_CHECK_MODULES([dbus1], [dbus-1 >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([dbus_bus_get],[dbus1],[
dbus1_CFLAGS=;
dbus1_LIBS=-ldbus1;
],[
probe_systemdunitproperty_req_deps_ok=no;
probe_systemdunitproperty_req_deps_missing+=', dbus1';
probe_systemdunitproperty_req_deps_ok=no;
probe_systemdunitproperty_req_deps_missing+=', dbus1';
],[])
AC_SUBST([dbus1_CFLAGS])
AC_SUBST([dbus1_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$dbus1_LIBS
AC_CHECK_FUNCS([dbus_bus_get], [], [
probe_systemdunitproperty_req_deps_ok=no;
probe_systemdunitproperty_req_deps_missing+=", $ac_func func";
probe_systemdunitproperty_req_deps_ok=no;
probe_systemdunitproperty_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for gconf2 library used by: gconf '
PKG_CHECK_MODULES([gconf2], [gconf-2.0 >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([gconf_engine_get_default],[gconf-2],[
gconf2_CFLAGS=;
gconf2_LIBS=-lgconf-2;
],[
probe_gconf_req_deps_ok=no;
probe_gconf_req_deps_missing+=', gconf2';
],[])
AC_SUBST([gconf2_CFLAGS])
AC_SUBST([gconf2_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$gconf2_LIBS
AC_CHECK_FUNCS([gconf_engine_get_default], [], [
probe_gconf_req_deps_ok=no;
probe_gconf_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for lber library used by: ldap57 '
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([ber_init],[lber],[
lber_CFLAGS=;
lber_LIBS=-llber;
],[
probe_ldap57_req_deps_ok=no;
probe_ldap57_req_deps_missing+=', lber lib';
],[])
AC_SUBST([lber_CFLAGS])
AC_SUBST([lber_LIBS])
LIBS=$SAVE_LIBS
SAVE_LIBS=$LIBS
LIBS=$lber_LIBS
AC_CHECK_FUNCS([ber_init], [], [
probe_ldap57_req_deps_ok=no;
probe_ldap57_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for ldap library used by: ldap57 '
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([ldap_init],[ldap],[
ldap_CFLAGS=;
ldap_LIBS=-lldap;
],[
probe_ldap57_req_deps_ok=no;
probe_ldap57_req_deps_missing+=', ldap lib';
],[])
AC_SUBST([ldap_CFLAGS])
AC_SUBST([ldap_LIBS])
LIBS=$SAVE_LIBS
SAVE_LIBS=$LIBS
LIBS=$ldap_LIBS
AC_CHECK_FUNCS([ldap_init], [], [
probe_ldap57_req_deps_ok=no;
probe_ldap57_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for opendbx library used by: sql sql57 '
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([odbx_init],[opendbx],[
opendbx_CFLAGS=;
opendbx_LIBS=-lopendbx;
],[
probe_sql_req_deps_ok=no;
probe_sql_req_deps_missing+=', opendbx lib';
probe_sql57_req_deps_ok=no;
probe_sql57_req_deps_missing+=', opendbx lib';
],[])
AC_SUBST([opendbx_CFLAGS])
AC_SUBST([opendbx_LIBS])
LIBS=$SAVE_LIBS
SAVE_LIBS=$LIBS
LIBS=$opendbx_LIBS
AC_CHECK_FUNCS([odbx_init], [], [
probe_sql_req_deps_ok=no;
probe_sql_req_deps_missing+=", $ac_func func";
probe_sql57_req_deps_ok=no;
probe_sql57_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for pcre library used by: textfilecontent54 textfilecontent partition '
PKG_CHECK_MODULES([pcre], [libpcre >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([pcre_exec],[pcre],[
pcre_CFLAGS=;
pcre_LIBS=-lpcre;
],[
probe_textfilecontent54_req_deps_ok=no;
probe_textfilecontent54_req_deps_missing+=', pcre';
probe_textfilecontent_req_deps_ok=no;
probe_textfilecontent_req_deps_missing+=', pcre';
probe_partition_req_deps_ok=no;
probe_partition_req_deps_missing+=', pcre';
],[])
AC_SUBST([pcre_CFLAGS])
AC_SUBST([pcre_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$pcre_LIBS
AC_CHECK_FUNCS([pcre_exec], [], [
probe_textfilecontent54_req_deps_ok=no;
probe_textfilecontent54_req_deps_missing+=", $ac_func func";
probe_textfilecontent_req_deps_ok=no;
probe_textfilecontent_req_deps_missing+=", $ac_func func";
probe_partition_req_deps_ok=no;
probe_partition_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for procps library used by: process58 process'
PKG_CHECK_MODULES([procps], [libprocps >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([dev_to_tty],[procps-ng],[
procps_CFLAGS=;
procps_LIBS=-lprocps-ng;
],[
probe_process58_opt_deps_ok=no;
probe_process58_opt_deps_missing+=', procps';
probe_process_opt_deps_ok=no;
probe_process_opt_deps_missing+=', procps';
],[])
AC_SUBST([procps_CFLAGS])
AC_SUBST([procps_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$procps_LIBS
AC_CHECK_FUNCS([dev_to_tty], [], [])
LIBS=$SAVE_LIBS
echo
echo '* Checking for rpm library used by: rpminfo rpmverify rpmverifyfile rpmverifypackage '
PKG_CHECK_MODULES([rpm], [rpm >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([rpmtsCreate],[rpm],[
rpm_CFLAGS=;
rpm_LIBS=-lrpm;
],[
probe_rpminfo_req_deps_ok=no;
probe_rpminfo_req_deps_missing+=', rpm';
probe_rpmverify_req_deps_ok=no;
probe_rpmverify_req_deps_missing+=', rpm';
probe_rpmverifyfile_req_deps_ok=no;
probe_rpmverifyfile_req_deps_missing+=', rpm';
probe_rpmverifypackage_req_deps_ok=no;
probe_rpmverifypackage_req_deps_missing+=', rpm';
],[])
AC_SUBST([rpm_CFLAGS])
AC_SUBST([rpm_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$rpm_LIBS
AC_CHECK_FUNCS([rpmtsCreate rpmReadConfigFiles], [], [
probe_rpminfo_req_deps_ok=no;
probe_rpminfo_req_deps_missing+=", $ac_func func";
probe_rpmverify_req_deps_ok=no;
probe_rpmverify_req_deps_missing+=", $ac_func func";
probe_rpmverifyfile_req_deps_ok=no;
probe_rpmverifyfile_req_deps_missing+=", $ac_func func";
probe_rpmverifypackage_req_deps_ok=no;
probe_rpmverifypackage_req_deps_missing+=", $ac_func func";
])
AC_CHECK_FUNCS([headerFormat headerSprintf rpmFreeCrypto rpmFreeFilesystems],[],[])
LIBS=$SAVE_LIBS
echo
echo '* Checking for selinux library used by: process58 selinuxboolean selinuxsecuritycontext '
PKG_CHECK_MODULES([selinux], [libselinux >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([security_get_boolean_names],[selinux],[
selinux_CFLAGS=;
selinux_LIBS=-lselinux;
],[
probe_process58_req_deps_ok=no;
probe_process58_req_deps_missing+=', selinux';
probe_selinuxboolean_req_deps_ok=no;
probe_selinuxboolean_req_deps_missing+=', selinux';
probe_selinuxsecuritycontext_req_deps_ok=no;
probe_selinuxsecuritycontext_req_deps_missing+=', selinux';
],[])
AC_SUBST([selinux_CFLAGS])
AC_SUBST([selinux_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$selinux_LIBS
AC_CHECK_FUNCS([security_get_boolean_names], [], [
probe_process58_req_deps_ok=no;
probe_process58_req_deps_missing+=", $ac_func func";
probe_selinuxboolean_req_deps_ok=no;
probe_selinuxboolean_req_deps_missing+=", $ac_func func";
probe_selinuxsecuritycontext_req_deps_ok=no;
probe_selinuxsecuritycontext_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for xml2 library used by: xmlfilecontent '
PKG_CHECK_MODULES([xml2], [libxml-2.0 >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([xmlTextReaderRead],[xml2],[
xml2_CFLAGS=;
xml2_LIBS=-lxml2;
],[
probe_xmlfilecontent_req_deps_ok=no;
probe_xmlfilecontent_req_deps_missing+=', xml2';
],[])
AC_SUBST([xml2_CFLAGS])
AC_SUBST([xml2_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$xml2_LIBS
AC_CHECK_FUNCS([xmlTextReaderRead], [], [
probe_xmlfilecontent_req_deps_ok=no;
probe_xmlfilecontent_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
echo '* Checking for xslt library used by: xmlfilecontent '
PKG_CHECK_MODULES([xslt], [libxslt >= 0.0],[],[
SAVE_LIBS=$LIBS
AC_SEARCH_LIBS([xsltDocumentFunction],[xslt],[
xslt_CFLAGS=;
xslt_LIBS=-lxslt;
],[
probe_xmlfilecontent_req_deps_ok=no;
probe_xmlfilecontent_req_deps_missing+=', xslt';
],[])
AC_SUBST([xslt_CFLAGS])
AC_SUBST([xslt_LIBS])
LIBS=$SAVE_LIBS
])
SAVE_LIBS=$LIBS
LIBS=$xslt_LIBS
AC_CHECK_FUNCS([xsltDocumentFunction], [], [
probe_xmlfilecontent_req_deps_ok=no;
probe_xmlfilecontent_req_deps_missing+=", $ac_func func";
])
LIBS=$SAVE_LIBS
echo
#check for atomic functions
case $host_cpu in
i386 | i486 | i586 | i686)
CFLAGS="$CFLAGS -march=i686"
;;
esac
AC_CACHE_CHECK([for atomic builtins], [ac_cv_atomic_builtins],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdint.h>
uint16_t foovar=0; uint16_t old=1; uint16_t new=2;],
[__sync_bool_compare_and_swap(&foovar,old,new); return __sync_fetch_and_add(&foovar, 1);])],
[ac_cv_atomic_builtins=yes],
[ac_cv_atomic_builtins=no])])
if test $ac_cv_atomic_builtins = yes; then
AC_DEFINE([HAVE_ATOMIC_BUILTINS], 1, [Define to 1 if the compiler supports atomic builtins.])
else
AC_MSG_NOTICE([!!! Compiler does not support atomic builtins. Atomic operation will be emulated using mutex-based locking. !!!])
fi