changeset 3283:73de2c85844d

FreeBSD install nas* to /usr/X11 by default (and require -lm)
author nexus
date Mon, 03 Dec 2001 15:57:10 +0000
parents 334bae48841b
children 702e399a4b3e
files configure libao2/Makefile
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Dec 03 15:30:06 2001 +0000
+++ b/configure	Mon Dec 03 15:57:10 2001 +0000
@@ -1799,7 +1799,7 @@
 int main(void) { return 0; }
 EOF
   _nas=no
-  cc_check -laudio -lX11 -lXt -L$_x11libdir && _nas=yes
+  cc_check -laudio -lX11 -lXt -lm -I$_x11incdir -L$_x11libdir && _nas=yes
 fi
 if test "$_nas" = yes ; then
   _def_nas='#define HAVE_NAS 1'
--- a/libao2/Makefile	Mon Dec 03 15:30:06 2001 +0000
+++ b/libao2/Makefile	Mon Dec 03 15:57:10 2001 +0000
@@ -7,7 +7,7 @@
 SRCS=afmt.c audio_out.c ao_mpegpes.c ao_null.c ao_pcm.c ao_plugin.c pl_delay.c pl_format.c $(OPTIONAL_SRCS)
 OBJS=$(SRCS:.c=.o)
 
-CFLAGS  = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(EXTRA_INC)
+CFLAGS  = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC)
 
 .SUFFIXES: .c .o