Martin Spott wrote:

> This is what I get (config.log):

> configure:8351: gcc -march=pentiumpro -o conftest -mfpmath=sse
> -fomit-frame-pointer -ffast-math -O3 
> -D_REENTRANT -I/usr/local/include -I/opt/FlightGear/include
> -I/usr/X11R6/include -L/usr/local/lib -s
> -L/opt/FlightGear/lib -L/usr/X11R6/lib conftest.c -lopenal  -lm
> /opt/FlightGear/lib/libopenal.so: undefined reference to `pthread_create'
[...]


I managed to override this by adding a flag into 'configure':

rm -f conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_alGenBuffers" = no; then
  for ac_lib in openal; do
    LIBS="-l$ac_lib -lpthread $ac_func_search_save_LIBS"
                     ^^^^^^^^^
    cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


To 'do it right' (TM) I thought I'd pick the corresponding place in
'configure.ac':

*)
    dnl default unix style machines

    AC_SEARCH_LIBS(alGenBuffers, openal)
    LIBS="$LIBS -lpthread"
                ^^^^^^^^^
    OPENAL_OK="$ac_cv_search_alGenBuffers"
    ;;


.... but apparently this is not the correct place, at least it doesn't
get transferred over to 'configure' during automake/autoconf. Where do
I add the desired flag ?

Thanks,
        Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to