summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-30 21:17:30 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-30 21:17:30 +0000
commit4a98d0a31325766cb68f9b2d15ecc3e37b891e2a (patch)
tree1cd69e3565fb7cd2bf07515dd2fd51983c184c52 /configure
parent0283b8134ff9a8ceade9ad914ad79b35a839dfda (diff)
downloadmpv-4a98d0a31325766cb68f9b2d15ecc3e37b891e2a.tar.bz2
mpv-4a98d0a31325766cb68f9b2d15ecc3e37b891e2a.tar.xz
Add a check for sysi86() on Solaris systems, solving a build failure on Solaris
10 x86 to avoid using a local declaration that is no longer compatible. patch by "Derek E. Lewis", dlewis $$@$$ solnetworks %%.%% net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18363 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index acf4825e6e..529ef8577a 100755
--- a/configure
+++ b/configure
@@ -3380,6 +3380,23 @@ fi
echores "$_setenv"
+if sunos; then
+echocheck "sysi86()"
+cat > $TMPC << EOF
+#include <sys/sysi86.h>
+int main (void) { sysi86(0); return 0; }
+EOF
+_sysi86=no
+cc_check && _sysi86=yes
+if test "$_sysi86" = yes ; then
+ _def_sysi86='#define HAVE_SYSI86 1'
+else
+ _def_sysi86='#undef HAVE_SYSI86'
+fi
+echores "$_sysi86"
+fi
+
+
echocheck "sys/sysinfo.h"
cat > $TMPC << EOF
#include <sys/sysinfo.h>
@@ -7701,6 +7718,9 @@ $_def_setenv
int setenv(const char *name, const char *val, int overwrite);
#endif
+/* Define this if your system has sysi86 */
+$_def_sysi86
+
/* Define this if your system has pthreads */
$_def_pthreads