Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ce7b0c

Browse files
committed
The test for union semun requires <sys/ipc.h>
Pointed out by Bruce
1 parent89868af commit1ce7b0c

File tree

2 files changed

+36
-34
lines changed

2 files changed

+36
-34
lines changed

‎src/configure

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,12 +2644,13 @@ cat > conftest.$ac_ext <<EOF
26442644
#line 2645 "configure"
26452645
#include "confdefs.h"
26462646
#include <sys/types.h>
2647+
#include <sys/ipc.h>
26472648
#include <sys/sem.h>
26482649
int main() {
26492650
union semun semun;
26502651
; return 0; }
26512652
EOF
2652-
if { (evalecho configure:2653:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
2653+
if { (evalecho configure:2654:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
26532654
rm -rf conftest*
26542655
cat>> confdefs.h<<\EOF
26552656
#define HAVE_UNION_SEMUN 1
@@ -2665,13 +2666,13 @@ rm -f conftest*
26652666

26662667
iftest$ac_cv_prog_gcc = yes;then
26672668
echo$ac_n"checking whether${CC-cc} needs -traditional""...$ac_c"1>&6
2668-
echo"configure:2669: checking whether${CC-cc} needs -traditional">&5
2669+
echo"configure:2670: checking whether${CC-cc} needs -traditional">&5
26692670
ifeval"test\"`echo'$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set";then
26702671
echo$ac_n"(cached)$ac_c"1>&6
26712672
else
26722673
ac_pattern="Autoconf.*'x'"
26732674
cat> conftest.$ac_ext<<EOF
2674-
#line2675 "configure"
2675+
#line2676 "configure"
26752676
#include "confdefs.h"
26762677
#include <sgtty.h>
26772678
Autoconf TIOCGETP
@@ -2689,7 +2690,7 @@ rm -f conftest*
26892690

26902691
iftest$ac_cv_prog_gcc_traditional = no;then
26912692
cat> conftest.$ac_ext<<EOF
2692-
#line2693 "configure"
2693+
#line2694 "configure"
26932694
#include "confdefs.h"
26942695
#include <termio.h>
26952696
Autoconf TCGETA
@@ -2711,15 +2712,15 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
27112712
fi
27122713

27132714
echo$ac_n"checking for 8-bit clean memcmp""...$ac_c"1>&6
2714-
echo"configure:2715: checking for 8-bit clean memcmp">&5
2715+
echo"configure:2716: checking for 8-bit clean memcmp">&5
27152716
ifeval"test\"`echo'$''{'ac_cv_func_memcmp_clean'+set}'`\" = set";then
27162717
echo$ac_n"(cached)$ac_c"1>&6
27172718
else
27182719
iftest"$cross_compiling" = yes;then
27192720
ac_cv_func_memcmp_clean=no
27202721
else
27212722
cat> conftest.$ac_ext<<EOF
2722-
#line2723 "configure"
2723+
#line2724 "configure"
27232724
#include "confdefs.h"
27242725
27252726
main()
@@ -2729,7 +2730,7 @@ main()
27292730
}
27302731
27312732
EOF
2732-
if { (evalecho configure:2733:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest&& (./conftest; exit)2>/dev/null
2733+
if { (evalecho configure:2734:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest&& (./conftest; exit)2>/dev/null
27332734
then
27342735
ac_cv_func_memcmp_clean=yes
27352736
else
@@ -2747,12 +2748,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
27472748
test$ac_cv_func_memcmp_clean = no&& LIBOBJS="$LIBOBJS memcmp.o"
27482749

27492750
echo$ac_n"checking return type of signal handlers""...$ac_c"1>&6
2750-
echo"configure:2751: checking return type of signal handlers">&5
2751+
echo"configure:2752: checking return type of signal handlers">&5
27512752
ifeval"test\"`echo'$''{'ac_cv_type_signal'+set}'`\" = set";then
27522753
echo$ac_n"(cached)$ac_c"1>&6
27532754
else
27542755
cat> conftest.$ac_ext<<EOF
2755-
#line2756 "configure"
2756+
#line2757 "configure"
27562757
#include "confdefs.h"
27572758
#include <sys/types.h>
27582759
#include <signal.h>
@@ -2769,7 +2770,7 @@ int main() {
27692770
int i;
27702771
; return 0; }
27712772
EOF
2772-
if { (evalecho configure:2773:\"$ac_compile\")1>&5; (eval$ac_compile)2>&5; };then
2773+
if { (evalecho configure:2774:\"$ac_compile\")1>&5; (eval$ac_compile)2>&5; };then
27732774
rm -rf conftest*
27742775
ac_cv_type_signal=void
27752776
else
@@ -2788,12 +2789,12 @@ EOF
27882789

27892790

27902791
echo$ac_n"checking for vprintf""...$ac_c"1>&6
2791-
echo"configure:2792: checking for vprintf">&5
2792+
echo"configure:2793: checking for vprintf">&5
27922793
ifeval"test\"`echo'$''{'ac_cv_func_vprintf'+set}'`\" = set";then
27932794
echo$ac_n"(cached)$ac_c"1>&6
27942795
else
27952796
cat> conftest.$ac_ext<<EOF
2796-
#line2797 "configure"
2797+
#line2798 "configure"
27972798
#include "confdefs.h"
27982799
/* System header to define __stub macros and hopefully few prototypes,
27992800
which can conflict with char vprintf(); below. */
@@ -2816,7 +2817,7 @@ vprintf();
28162817
28172818
; return 0; }
28182819
EOF
2819-
if { (evalecho configure:2820:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
2820+
if { (evalecho configure:2821:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
28202821
rm -rf conftest*
28212822
eval"ac_cv_func_vprintf=yes"
28222823
else
@@ -2840,12 +2841,12 @@ fi
28402841

28412842
iftest"$ac_cv_func_vprintf"!= yes;then
28422843
echo$ac_n"checking for _doprnt""...$ac_c"1>&6
2843-
echo"configure:2844: checking for _doprnt">&5
2844+
echo"configure:2845: checking for _doprnt">&5
28442845
ifeval"test\"`echo'$''{'ac_cv_func__doprnt'+set}'`\" = set";then
28452846
echo$ac_n"(cached)$ac_c"1>&6
28462847
else
28472848
cat> conftest.$ac_ext<<EOF
2848-
#line2849 "configure"
2849+
#line2850 "configure"
28492850
#include "confdefs.h"
28502851
/* System header to define __stub macros and hopefully few prototypes,
28512852
which can conflict with char _doprnt(); below. */
@@ -2868,7 +2869,7 @@ _doprnt();
28682869
28692870
; return 0; }
28702871
EOF
2871-
if { (evalecho configure:2872:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
2872+
if { (evalecho configure:2873:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
28722873
rm -rf conftest*
28732874
eval"ac_cv_func__doprnt=yes"
28742875
else
@@ -2895,12 +2896,12 @@ fi
28952896
forac_funcin isinf tzset getrusage vfork memmove sigsetjmpkill sysconf
28962897
do
28972898
echo$ac_n"checking for$ac_func""...$ac_c"1>&6
2898-
echo"configure:2899: checking for$ac_func">&5
2899+
echo"configure:2900: checking for$ac_func">&5
28992900
ifeval"test\"`echo'$''{'ac_cv_func_$ac_func'+set}'`\" = set";then
29002901
echo$ac_n"(cached)$ac_c"1>&6
29012902
else
29022903
cat> conftest.$ac_ext<<EOF
2903-
#line2904 "configure"
2904+
#line2905 "configure"
29042905
#include "confdefs.h"
29052906
/* System header to define __stub macros and hopefully few prototypes,
29062907
which can conflict with char$ac_func(); below. */
@@ -2923,7 +2924,7 @@ $ac_func();
29232924
29242925
; return 0; }
29252926
EOF
2926-
if { (evalecho configure:2927:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
2927+
if { (evalecho configure:2928:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
29272928
rm -rf conftest*
29282929
eval"ac_cv_func_$ac_func=yes"
29292930
else
@@ -2948,12 +2949,12 @@ fi
29482949
done
29492950

29502951
echo$ac_n"checking for inet_aton""...$ac_c"1>&6
2951-
echo"configure:2952: checking for inet_aton">&5
2952+
echo"configure:2953: checking for inet_aton">&5
29522953
ifeval"test\"`echo'$''{'ac_cv_func_inet_aton'+set}'`\" = set";then
29532954
echo$ac_n"(cached)$ac_c"1>&6
29542955
else
29552956
cat> conftest.$ac_ext<<EOF
2956-
#line2957 "configure"
2957+
#line2958 "configure"
29572958
#include "confdefs.h"
29582959
/* System header to define __stub macros and hopefully few prototypes,
29592960
which can conflict with char inet_aton(); below. */
@@ -2976,7 +2977,7 @@ inet_aton();
29762977
29772978
; return 0; }
29782979
EOF
2979-
if { (evalecho configure:2980:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
2980+
if { (evalecho configure:2981:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
29802981
rm -rf conftest*
29812982
eval"ac_cv_func_inet_aton=yes"
29822983
else
@@ -3001,12 +3002,12 @@ fi
30013002

30023003

30033004
echo$ac_n"checking for cbrt""...$ac_c"1>&6
3004-
echo"configure:3005: checking for cbrt">&5
3005+
echo"configure:3006: checking for cbrt">&5
30053006
ifeval"test\"`echo'$''{'ac_cv_func_cbrt'+set}'`\" = set";then
30063007
echo$ac_n"(cached)$ac_c"1>&6
30073008
else
30083009
cat> conftest.$ac_ext<<EOF
3009-
#line3010 "configure"
3010+
#line3011 "configure"
30103011
#include "confdefs.h"
30113012
/* System header to define __stub macros and hopefully few prototypes,
30123013
which can conflict with char cbrt(); below. */
@@ -3029,7 +3030,7 @@ cbrt();
30293030
30303031
; return 0; }
30313032
EOF
3032-
if { (evalecho configure:3033:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
3033+
if { (evalecho configure:3034:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
30333034
rm -rf conftest*
30343035
eval"ac_cv_func_cbrt=yes"
30353036
else
@@ -3050,15 +3051,15 @@ EOF
30503051
else
30513052
echo"$ac_t""no"1>&6
30523053
echo$ac_n"checking for cbrt in -lm""...$ac_c"1>&6
3053-
echo"configure:3054: checking for cbrt in -lm">&5
3054+
echo"configure:3055: checking for cbrt in -lm">&5
30543055
ac_lib_var=`echo m'_'cbrt| sed'y%./+-%__p_%'`
30553056
ifeval"test\"`echo'$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set";then
30563057
echo$ac_n"(cached)$ac_c"1>&6
30573058
else
30583059
ac_save_LIBS="$LIBS"
30593060
LIBS="-lm$LIBS"
30603061
cat> conftest.$ac_ext<<EOF
3061-
#line3062 "configure"
3062+
#line3063 "configure"
30623063
#include "confdefs.h"
30633064
/* Override any gcc2 internal prototype to avoid an error. */
30643065
/* We use char because int might match the return type of a gcc2
@@ -3069,7 +3070,7 @@ int main() {
30693070
cbrt()
30703071
; return 0; }
30713072
EOF
3072-
if { (evalecho configure:3073:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
3073+
if { (evalecho configure:3074:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
30733074
rm -rf conftest*
30743075
eval"ac_cv_lib_$ac_lib_var=yes"
30753076
else
@@ -3095,12 +3096,12 @@ fi
30953096
fi
30963097

30973098
echo$ac_n"checking for rint""...$ac_c"1>&6
3098-
echo"configure:3099: checking for rint">&5
3099+
echo"configure:3100: checking for rint">&5
30993100
ifeval"test\"`echo'$''{'ac_cv_func_rint'+set}'`\" = set";then
31003101
echo$ac_n"(cached)$ac_c"1>&6
31013102
else
31023103
cat> conftest.$ac_ext<<EOF
3103-
#line3104 "configure"
3104+
#line3105 "configure"
31043105
#include "confdefs.h"
31053106
/* System header to define __stub macros and hopefully few prototypes,
31063107
which can conflict with char rint(); below. */
@@ -3123,7 +3124,7 @@ rint();
31233124
31243125
; return 0; }
31253126
EOF
3126-
if { (evalecho configure:3127:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
3127+
if { (evalecho configure:3128:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
31273128
rm -rf conftest*
31283129
eval"ac_cv_func_rint=yes"
31293130
else
@@ -3144,15 +3145,15 @@ EOF
31443145
else
31453146
echo"$ac_t""no"1>&6
31463147
echo$ac_n"checking for rint in -lm""...$ac_c"1>&6
3147-
echo"configure:3148: checking for rint in -lm">&5
3148+
echo"configure:3149: checking for rint in -lm">&5
31483149
ac_lib_var=`echo m'_'rint| sed'y%./+-%__p_%'`
31493150
ifeval"test\"`echo'$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set";then
31503151
echo$ac_n"(cached)$ac_c"1>&6
31513152
else
31523153
ac_save_LIBS="$LIBS"
31533154
LIBS="-lm$LIBS"
31543155
cat> conftest.$ac_ext<<EOF
3155-
#line3156 "configure"
3156+
#line3157 "configure"
31563157
#include "confdefs.h"
31573158
/* Override any gcc2 internal prototype to avoid an error. */
31583159
/* We use char because int might match the return type of a gcc2
@@ -3163,7 +3164,7 @@ int main() {
31633164
rint()
31643165
; return 0; }
31653166
EOF
3166-
if { (evalecho configure:3167:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
3167+
if { (evalecho configure:3168:\"$ac_link\")1>&5; (eval$ac_link)2>&5; }&&test -s conftest;then
31673168
rm -rf conftest*
31683169
eval"ac_cv_lib_$ac_lib_var=yes"
31693170
else

‎src/configure.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ AC_TRY_LINK([#include <time.h>],
141141

142142
AC_MSG_CHECKING(for union semun)
143143
AC_TRY_LINK([#include <sys/types.h>
144+
#include <sys/ipc.h>
144145
#include <sys/sem.h>],
145146
[union semun semun;],
146147
[AC_DEFINE(HAVE_UNION_SEMUN) AC_MSG_RESULT(yes)],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp