#### Copyright (C) 2005 Malcolm Purvis.
#### Copyright (C) 2005, 2006, 2007 Steve Youngs.
#### Copyright (C) 2006, 2007, 2008 Sebastian Freundt.
+#### Copyright (C) 2007, 2010, 2011 Nelson Ferreira
### Don't edit this script!
### This script was automatically generated by the `autoconf' program
SXE_CHECK_CC
SXE_CHECK_CFLAGS
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+
## check machine chars
AS_MESSAGE([Let's have a detailed glance at your machine])
SXE_PROC_CPUID
SXE_CHECK_SIMD_EXTENSIONS
## some linker flags that might come in handy
-SXE_CHECK_LINKER_FLAGS
+SXE_CHECK_LDFLAGS
## suffices to be defined late, for instance here
SXE_CHECK_PARSER_LEXER
## enough. Please report it, though.
## #### Should make this Solaris-friendly.
## Link with -z nocombreloc for now.
- SXE_CHECK_LD_NOCOMBRELOC
+ SXE_CHECK_LD_ZFLAG([nocombreloc])
if test "$sxe_cv_ld__z_nocombreloc" = "yes"; then
SXE_PREPEND_LINKER_FLAG([-z nocombreloc], [ld_switch_site])
fi
dnl AIX uses pthreads instead of pthread, and HP/UX uses cma
dnl FreeBSD uses -pthread
AC_CHECK_LIB(pthread, pthread_create)
-if test $ac_cv_lib_pthread_pthread_create = yes; then
- have_threads=yes
- have_pthreads_opt=yes
- case "`$CC -pthreads 2>&1`" in
- *unrecognized\ option*) have_pthreads_opt=no ;;
- esac
- if test "$have_pthreads_opt" = "yes"; then
- SXE_PREPEND_UNDUP(-pthreads, c_switch_site)
- fi
- have_pthread_opt=yes
- case "`$CC -pthread 2>&1`" in
- *unrecognized\ option*) have_pthread_opt=no ;;
- esac
- if test "$have_pthread_opt" = "yes"; then
- SXE_PREPEND_UNDUP(-pthread, c_switch_site)
- fi
- SXE_PREPEND(-lpthread, MM_LIBS)
+if test "${ac_cv_lib_pthread_pthread_create}" = "yes"; then
+ have_threads=yes
+
+ SXE_CHECK_COMPILER_FLAGS([-pthreads])
+ SXE_CHECK_COMPILER_FLAGS([-pthread])
+ if test "${sxe_cv_c_flags__pthreads}" = "yes"; then
+ SXE_PREPEND_UNDUP([-pthreads], [c_switch_site])
+ fi
+ if test "${sxe_cv_c_flags__pthread}" = "yes"; then
+ SXE_PREPEND_UNDUP([-pthread], [c_switch_site])
+ fi
+ SXE_PREPEND([-lpthread], [MM_LIBS])
fi
dnl test for AIX pthreads
have_ase_perm="yes"
have_ase_resclass="yes"
fi
-
-if test "$with_modules_cl" = "yes" -a "$have_bison" = "yes"; then
- have_modules_cl="yes"
-fi
-if test "$with_static_modules_cl" = "yes" -a "$have_bison" = "yes"; then
- have_static_modules_cl="yes"
+if test "$have_bison" = "yes"; then
+ if test "$with_modules_cl" = "yes" ; then
+ have_modules_cl="yes"
+ fi
+ if test "$with_static_modules_cl" = "yes"; then
+ have_static_modules_cl="yes"
+ fi
+else
+ if test "$with_modules_cl" = "yes" -o "$with_static_modules_cl" = "yes"; then
+ AC_MSG_WARN([Sorry no bison means no cl module for you.])
+ fi
fi
SXE_EMOD_STATMOD([cl])
AC_MSG_RESULT([yes])
need_internal_media=yes
SXE_ADD_MM_OBJS([sound-esd.o])
- SXE_PREPEND([`$ESD_CONFIG --libs`], MM_LIBS)
+ ESD_LIBS=$("${ESD_CONFIG}" --libs)
+ SXE_PREPEND(["${ESD_LIBS}"], [MM_LIBS])
AC_DEFINE([HAVE_ESD_SOUND], [1], [Description here!])
else
AC_MSG_RESULT([no])
fi
SXE_UNDUP(CFLAGS, $CFLAGS)
-SXE_UNDUP(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system)
+SXE_UNDUP(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system $CFLAGS $CPPFLAGS)
SXE_UNDUP(c_switch_window_system, $c_switch_x_site $c_switch_gtk $X_CFLAGS)
SXE_UNDUP(c_switch_all, $c_switch_general $c_switch_window_system)
SXE_UNDUP(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run)
AC_SUBST(INFOPATH)
if test -z "$with_module_path"; then
- with_module_path="~/.sxemacs/${configuration}/modules:${libdir}/${instvardir}/${configuration}/modules:${libdir}/${PROGNAME}/${configuration}/site-modules"
+ with_module_path="~/.sxemacs/${configuration}/modules:${libdir}/${PROGNAME}/${configuration}/site-modules:${libdir}/${instvardir}/${configuration}/modules"
fi
AC_SUBST(module_path,$with_module_path)
if test -z "$with_package_path" && test -n "$with_package_prefix" ; then
if test "$with_mule" = "yes" ; then
- with_package_path="~/.sxemacs/site-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/mule-packages:~/.sxemacs/sxemacs-packages"
+ with_package_path="~/.sxemacs/site-packages:~/.sxemacs/sxemacs-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/mule-packages"
with_package_path="${with_package_path}:${with_package_prefix}/site-packages:${with_package_prefix}/sxemacs-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/mule-packages"
else
- with_package_path="~/.sxemacs/site-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/sxemacs-packages"
+ with_package_path="~/.sxemacs/site-packages:~/.sxemacs/sxemacs-packages:~/.sxemacs/xemacs-packages"
with_package_path="${with_package_path}:${with_package_prefix}/site-packages:${with_package_prefix}/sxemacs-packages:${with_package_prefix}/xemacs-packages"
fi
fi