File tree 3 files changed +6
-24
lines changed
3 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -2799,20 +2799,6 @@ EOF
2799
2799
fi
2800
2800
fi
2801
2801
2802
- # #########################################
2803
- # libtasn1 - only for the TLS creds/session test suite
2804
-
2805
- tasn1=yes
2806
- tasn1_cflags=" "
2807
- tasn1_libs=" "
2808
- if $pkg_config --exists " libtasn1" ; then
2809
- tasn1_cflags=$( $pkg_config --cflags libtasn1)
2810
- tasn1_libs=$( $pkg_config --libs libtasn1)
2811
- else
2812
- tasn1=no
2813
- fi
2814
-
2815
-
2816
2802
# #########################################
2817
2803
# PAM probe
2818
2804
@@ -5554,9 +5540,6 @@ if test "$gdbus_codegen" != "" ; then
5554
5540
echo " GDBUS_CODEGEN=$gdbus_codegen " >> $config_host_mak
5555
5541
fi
5556
5542
echo " CONFIG_TLS_PRIORITY=\" $tls_priority \" " >> $config_host_mak
5557
- if test " $tasn1 " = " yes" ; then
5558
- echo " CONFIG_TASN1=y" >> $config_host_mak
5559
- fi
5560
5543
if test " $auth_pam " = " yes" ; then
5561
5544
echo " CONFIG_AUTH_PAM=y" >> $config_host_mak
5562
5545
fi
@@ -6017,8 +6000,6 @@ echo "LD_I386_EMULATION=$ld_i386_emulation" >> $config_host_mak
6017
6000
echo " EXESUF=$EXESUF " >> $config_host_mak
6018
6001
echo " HOST_DSOSUF=$HOST_DSOSUF " >> $config_host_mak
6019
6002
echo " LIBS_QGA=$libs_qga " >> $config_host_mak
6020
- echo " TASN1_LIBS=$tasn1_libs " >> $config_host_mak
6021
- echo " TASN1_CFLAGS=$tasn1_cflags " >> $config_host_mak
6022
6003
if test " $gcov " = " yes" ; then
6023
6004
echo " CONFIG_GCOV=y" >> $config_host_mak
6024
6005
fi
Original file line number Diff line number Diff line change @@ -985,9 +985,10 @@ if 'CONFIG_LIBDAXCTL' in config_host
985
985
libdaxctl = declare_dependency (link_args : config_host[' LIBDAXCTL_LIBS' ].split())
986
986
endif
987
987
tasn1 = not_found
988
- if ' CONFIG_TASN1' in config_host
989
- tasn1 = declare_dependency (compile_args : config_host[' TASN1_CFLAGS' ].split(),
990
- link_args : config_host[' TASN1_LIBS' ].split())
988
+ if gnutls.found()
989
+ tasn1 = dependency (' libtasn1' ,
990
+ method : ' pkg-config' ,
991
+ kwargs : static_kwargs)
991
992
endif
992
993
keyutils = dependency (' libkeyutils' , required : false ,
993
994
method : ' pkg-config' , kwargs : static_kwargs)
@@ -2727,7 +2728,7 @@ summary_info += {'pixman': pixman.found()}
2727
2728
summary_info += {' VTE support' : config_host.has_key(' CONFIG_VTE' )}
2728
2729
# TODO: add back version
2729
2730
summary_info += {' slirp support' : slirp_opt == ' disabled' ? false : slirp_opt}
2730
- summary_info += {' libtasn1' : config_host.has_key( ' CONFIG_TASN1 ' )}
2731
+ summary_info += {' libtasn1' : tasn1.found( )}
2731
2732
summary_info += {' PAM' : config_host.has_key(' CONFIG_AUTH_PAM' )}
2732
2733
summary_info += {' iconv support' : iconv.found()}
2733
2734
summary_info += {' curses support' : curses.found()}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ if have_block
84
84
' test-crypto-block' : [io],
85
85
}
86
86
if gnutls.found() and \
87
- ' CONFIG_TASN1 ' in config_host and \
87
+ tasn1.found() and \
88
88
' CONFIG_POSIX' in config_host
89
89
tests += {
90
90
' test-crypto-tlscredsx509' : [' crypto-tls-x509-helpers.c' , ' pkix_asn1_tab.c' ,
You can’t perform that action at this time.
0 commit comments