source: icXML/icXML-devel/m4/xerces_filemgr_selection.m4 @ 2723

Last change on this file since 2723 was 2723, checked in by cameron, 6 years ago

Add Xerces build system scripts

File size: 1.0 KB
Line 
1dnl @synopsis XERCES_FILEMGR_SELECTION
2dnl
3dnl Determines the which filemgr to use
4dnl
5dnl @category C
6dnl @author James Berry
7dnl @version 2005-05-25
8dnl @license AllPermissive
9dnl
10dnl $Id: xerces_filemgr_selection.m4 676848 2008-07-15 09:22:54Z borisk $
11
12AC_DEFUN([XERCES_FILEMGR_SELECTION],
13        [
14       
15        AC_MSG_CHECKING([for which File Manager to use])
16        filemgr=
17       
18        # Platform specific checks
19        case $host_os in
20        windows* | mingw*)
21                filemgr=Windows;
22                AC_DEFINE([XERCES_USE_FILEMGR_WINDOWS], 1, [Define to use the Windows file mgr])
23                ;;
24        esac
25       
26        # Fall back to using posix files
27        AS_IF([test -z "$filemgr"],
28                [filemgr=POSIX;
29                        AC_DEFINE([XERCES_USE_FILEMGR_POSIX], 1, [Define to use the POSIX file mgr])
30                ])
31
32        AC_MSG_RESULT($filemgr)
33       
34        # Define the auto-make conditionals which determine what actually gets compiled
35        # Note that these macros can't be executed conditionally, which is why they're here, not above.
36        AM_CONDITIONAL([XERCES_USE_FILEMGR_POSIX],      [test x"$filemgr" = xPOSIX])
37        AM_CONDITIONAL([XERCES_USE_FILEMGR_WINDOWS],[test x"$filemgr" = xWindows])
38       
39        ]
40)
41
Note: See TracBrowser for help on using the repository browser.