X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36825681b56cbb353fcb6263a57cbe07274e314c..b1ef887ad8c20ce0ac293db64dae82e88071baa9:/configure.in diff --git a/configure.in b/configure.in index eed68ae42d..e10e493c56 100644 --- a/configure.in +++ b/configure.in @@ -268,6 +268,7 @@ case "${host}" in AC_DEFINE(__BSD__) AC_DEFINE(__DARWIN__) AC_DEFINE(__POWERPC__) + AC_DEFINE(TARGET_CARBON) DEFAULT_DEFAULT_wxUSE_MAC=1 ;; @@ -1258,14 +1259,27 @@ dnl install checks dnl defines INSTALL with the appropriate command AC_PROG_INSTALL -dnl make install path absolute (if not already); will fail with MSDOS paths +dnl make install path absolute (if not already); +dnl will fail with (some) MSDOS paths case ${INSTALL} in /* ) # Absolute ;; + ?:* ) # Drive letter, considered as absolute. + ;; *) INSTALL=`pwd`/${INSTALL} ;; esac +dnl HP-UX install doesn't handle the "-d" switch so don't use it there +case ${host} in + *-hp-hpux* ) + INSTALL_DIR="mkdir" + ;; + + *) INSTALL_DIR="$INSTALL -d" + ;; +esac + case "${host}" in @@ -1414,6 +1428,15 @@ fi dnl defines HAVE_LANGINFO_H (GNU libc locale parameters) AC_CHECK_HEADERS(langinfo.h) +case "${host}" in + *-pc-os2_emx | *-pc-os2-emx ) + dnl Explicitly link -lintl if langinfo.h is available. + if test $ac_cv_header_langinfo_h = "yes"; then + LIBS="$LIBS -lintl" + fi + ;; +esac + if test "$wxUSE_GUI" = "yes"; then if test "$wxUSE_UNIX" = "yes"; then dnl defines HAVE_X11_XKBLIB_H @@ -3015,9 +3038,9 @@ else STATIC_FLAG="no" fi -dnl default value is comment for makefile -MACRESCOMP="#" -MACSETFILE="#" +dnl default value is to (silently) do nothing in the makefile +MACRESCOMP="@#" +MACSETFILE="@#" MACRESWXCONFIG="#" if test "$wxUSE_MAC" = 1; then dnl add the resources target for wxMac @@ -3553,6 +3576,13 @@ if test "$TOOLKIT" != "MSW"; then dnl AIX calls the library libpthreads - thanks IBM! THREAD_OPTS="pthreads" ;; + *-hp-hpux* ) + dnl HP-UX aCC only gives a warning, not an error about + dnl -pthread but it doesn't work and we have to use -lpthread + dnl there + if test "x$GCC" != "xyes"; then + THREAD_OPTS="" + fi esac dnl simply linking with libpthread should make the test below work but @@ -3627,6 +3657,10 @@ if test "$TOOLKIT" != "MSW"; then ;; *-hp-hpux* ) flag="-D_REENTRANT" + if test "x$GCC" != "xyes"; then + dnl see http://docs.hp.com/hpux/onlinedocs/2213/threads.htm + flag="$flag -D_RWSTD_MULTI_THREAD" + fi ;; *solaris* | alpha*-osf*) flag="-D_REENTRANT" @@ -5430,6 +5464,7 @@ AC_SUBST(NM) AC_SUBST(LD) AC_SUBST(MAKEINFO) AC_SUBST(INSTALL_LIBRARY) +AC_SUBST(INSTALL_DIR) dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE dnl itself (this macro is required if SUBDIRS variable is used in Makefile.am