summaryrefslogtreecommitdiff
path: root/lang/tcc/files/patch-configure
blob: 979af4e42c901b1f637b6c2c66de359ed97f2cab (plain) (blame)
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
--- configure.orig	2013-02-15 14:24:00 UTC
+++ configure
@@ -45,6 +45,7 @@ tcc_crtprefix=""
 tcc_elfinterp=""
 tcc_lddir=
 confvars=
+define_va_list=""
 
 cpu=`uname -m`
 
@@ -332,6 +333,9 @@ if test -z "$cross_prefix" ; then
 
     fi
   fi
+  if ! $cc -o $CONFTEST -c $source_path/va_list.c 2>/dev/null ; then
+    define_va_list="yes"
+  fi
 else
   # if cross compiling, cannot launch a program, so make a static guess
   case $cpu in
@@ -483,6 +487,9 @@ if test "$have_selinux" = "yes" ; then
   echo "#define HAVE_SELINUX" >> $TMPH
   echo "HAVE_SELINUX=yes" >> config.mak
 fi
+if test "$define_va_list" = "yes" ; then
+  echo "#define DEFINE_VA_LIST" >> $TMPH
+fi
 
 version=`head $source_path/VERSION`
 echo "VERSION=$version" >>config.mak