Changeset 42:84574c08b090 in xplcommon


Ignore:
Timestamp:
01/20/13 09:05:33 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 2 'hg:/home/ivaradi/xplane/hg/xplcommon' '/'>, 'public')
Message:

Made use of the AM_VSCPL_TARGET_API macro

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bootstrap.sh

    r40 r42  
    11#!/bin/sh
     2
     3set -e -u
    24
    35scriptdir=`dirname $0`
     
    68
    79libtoolize
    8 aclocal -I m4
     10aclocal -I m4 -I $1
    911automake -a
    1012autoconf
  • configure.ac

    r41 r42  
    99AC_CONFIG_MACRO_DIR([m4])
    1010
    11 AC_CHECK_HEADERS([windows.h winsock2.h])
    12 
    13 test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes"
    14 _target_win32=$?
    15 
    16 AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
    17 AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64")
    18 AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
    19 if test $_target_win32 -eq 0; then
    20    if test "$host_cpu" = "x86_64"; then
    21        AC_DEFINE([TARGET_API_WIN64], [1], [Define if the target is the 64-bit Win32 API.])
    22    fi
    23    AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
    24 else
    25    AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.])
    26 fi
     11AM_VSCPL_TARGET_API
    2712
    2813AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
Note: See TracChangeset for help on using the changeset viewer.