diff --git a/src/BUILDINSTRUCTIONS.TXT b/src/BUILDINSTRUCTIONS.TXT deleted file mode 100644 index 4529409391cd4988eaad8e32029d3ef24d730c64..0000000000000000000000000000000000000000 --- a/src/BUILDINSTRUCTIONS.TXT +++ /dev/null @@ -1,1219 +0,0 @@ -BUILDINSTRUCTIONS.TXT -===================== - -**************************************************************************** - -WARNING: This is not the best place to look for build instructions. You -should go to http://xml.apache.org/xerces-c/build.html to see the -latest stuff. The web-page is maintained more regularly than this text -file. - -However, if you insist, here is a text dump of the same web-page from -ancient times. - -End of warning! - -**************************************************************************** - -This page has sections on the following topics: - -* Building Xerces-C++ on Windows NT/98 -* Building Xerces-C++ on Windows using Visual Age C++ -* Building Xerces-C++ on Windows using Borland C++Builder -* Building Xerces-C++ on UNIX platforms -* Building Xerces-C++ as a single-threaded library on Unix platforms -* Building on iSeries (AS/400) -* Building Xerces-C++ on OS/2 using Visual Age C++ -* Building Xerces-C++ on Macintosh -* Building Xerces-C++ with ICU using bundled Perl scripts on Windows -* Building Xerces-C++ COM Wrapper on Windows -* Building User Documentation -* I wish to port Xerces to my favourite platform. Do you have any -* suggestions? -* What should I define XMLCh to be? -* Where can I look for more help? - -Building Xerces-C++ on Windows NT/98 -==================================== - - Xerces-C++ comes with Microsoft Visual C++ projects and - workspaces to help you build Xerces-C++. The following describes the - steps you need to build Xerces-C++. - - Building Xerces-C++ library - ---------------------------- - - To build Xerces-C++ from it source (using MSVC), you will need to open the - workspace containing the project. If you are building your application, you may - want to add the Xerces-C++ project inside your applications's workspace. - - The workspace containing the Xerces-C++ project file and all other samples is: - - xerces-c-src1_6_0\Projects\Win32\VC6\xerces-all\xerces-all.dsw - - Once you are inside MSVC, you need to build the project marked XercesLib. - - If you want to include the Xerces-C++ project separately, you need to pick up: - - xerces-c-src1_6_0\Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsp - - You must make sure that you are linking your application with the xerces-c_1.lib - library and also make sure that the associated DLL is somewhere in your path. - - - If you are working on the AlphaWorks version which uses ICU, you must have - the ICU data DLL named icudata.dll available from your path setting. For - finding out where you can get ICU from and build it, look at the How to Build - ICU. - - Building samples - ---------------- - - If you are using the source package, inside the same workspace (xerces-all.dsw), - you'll find several other projects. These are for the samples. Select all the samples - and right click on the selection. Then choose "Build (selection only)" to build all the - samples in one shot. - - If you are using the binary package, load the - xerces-c1_6_0-win32\samples\Projects\Win32\VC6\samples.dsw Microsoft Visual - C++ workspace inside your MSVC IDE. Then select all the samples and right click - on the selection. Then choose "Build (selection only)" to build all the samples in - one shot. - - -Building Xerces-C++ on Windows using Visual Age C++ -=================================================== - - A few unsupported projects are also packaged with Xerces-C++. Due - to origins of Xerces-C++ inside IBM labs, we do have projects for IBM's - Visual Age C++ compiler on Windows. The following describes the - steps you need to build Xerces-C++ using Visual Age C++. - - Building Xerces-C++ library - --------------------------- - - Requirements: - - * VisualAge C++ Version 4.0 with Fixpak 1: - Download the Fixpak from the IBM VisualAge C++ Corrective Services web - page. - - To include the ICU library: - - * ICU Build: - You should have the ICU Library in the same directory as the Xerces-C++ - library. For example if Xerces-C++ is at the top level of the d drive, put the - ICU library at the top level of d e.g. d:/xerces-c1_6_0 d:/icu. - - Instructions: - - 1.Change the directory to d:\xerces-c1_6_0\Projects\Win32 - 2.If a d:\xerces-c1_6_0\Project\Win32\VACPP40 directory does not exist, - create it. - 3.Copy the IBM VisualAge project file, XML4C2X.icc, to the VACPP40 - directory. - 4.From the VisualAge main menu enter the project file name and path. - 5.When the build finishes the status bar displays this message: Last Compile - completed Successfully with warnings on date. - - - These instructions assume that you install in drive d:\. Replace d with the - appropriate drive letter. - -Building Xerces-C++ on Windows using Borland C++Builder -======================================================= - - Xerces-C++ comes with Borland C++Builder projects to help you build - Xerces-C++. The following describes the steps you need to build - Xerces-C++. - - Building Xerces-C++ library - --------------------------- - - The library and demo projects are all contained in the Xerces-all project group: - - * xerces-c-src1_6_0\Projects\Win32\BCB5\Xerces-all\Xerces-all.bpg - - Each project in the group refers a directory belog \Xerces-all. For example, the - XercesLib project files are contained in the directory - - * xerces-c-src1_6_0\Projects\Win32\BCB5\Xerces-all\XercesLib - - To build any project, open the project manager. Double click on the project name. - Then select "Project|Build" from the menu. For example, double click on - XercesLib.dll in the manager. Then select "Project|Build XercesLib" from the menu. - Once the library has been built, include XercesLib.lib with in application's project - and place XercesLib.dll somewhere in your path. - -Building Xerces-C++ on UNIX platforms -===================================== - - Xerces-C++ uses GNU tools like Autoconf and GNU Make to build the system. You must first make sure you have these tools installed on your system before - proceeding. If you don not have required tools, ask your system administrator to get them for you. These tools are free under the GNU Public Licence and - may be obtained from the Free Software Foundation. - - Do not jump into the build directly before reading this. - - Spending some time reading the following instructions will save you a lot of wasted time and support-related e-mail communication. The Xerces-C++ build - instructions are a little different from normal product builds. Specifically, there are some wrapper-scripts that have been written to make life easier for you. You - are free not to use these scripts and use Autoconf and GNU Make directly, but we want to make sure you know what you are by-passing and what risks you - are taking. So read the following instructions carefully before attempting to build it yourself. - - Besides having all necessary build tools, you also need to know what compilers we have tested Xerces-C++ on. The following table lists the relevant - platforms and compilers. - - Operating System C++, C Compilers - ---------------- ---------------- - Redhat Linux 6.1 g++, gcc (egcs) - AIX 4.3 xlC_r, xlc_r - Solaris 2.6 CC, cc - HP-UX 11 aCC, cc - - If you are not using any of these compilers, you are taking a calculated risk by exploring new grounds. Your effort in making Xerces-C++ work on this new - compiler is greatly appreciated and any problems you face can be addressed on the Xerces-C mailing list. - - Differences between the UNIX platforms: The description below is generic, but as every programmer is aware, there are minor differences within the - various UNIX flavors the world has been bestowed with. The one difference that you need to watch out in the discussion below, pertains to the system - environment variable for finding libraries. On Linux and Solaris, the environment variable name is called LD_LIBRARY_PATH, on AIX it is LIBPATH, while on - HP-UX it is SHLIB_PATH. The following discussion assumes you are working on Linux, but it is with subtle understanding that you know how to interpret it for - the other UNIX flavors. - - If you wish to build Xerces-C++ with ICU, look at the Building ICU. It tells you where you can get ICU and how to build Xerces-C++ with it. - - Setting build environment variables - ----------------------------------- - - Before doing the build, you must first set your environment variables to pick-up the - compiler and also specify where you extracted Xerces-C++ on your machine. - While the first one is probably set for you by the system administrator, just make - sure you can invoke the compiler. You may do so by typing the compiler invocation - command without any parameters (e.g. xlc_r, or g++, or cc) and check if you get a - proper response back. - - Next set your Xerces-C++ root path as follows: - - export XERCESCROOT=<full path to xerces-c-src1_6_0> - - This should be the full path of the directory where you extracted Xerces-C++. - - Building Xerces-C++ library - --------------------------- - - As mentioned earlier, you must be ready with the GNU tools like autoconf and gmake before you attempt the build. - - The autoconf tool is required on only one platform and produces a set of portable scripts (configure) that you can run on all other platforms without actually having the autoconf tool - installed everywhere. In all probability the autoconf-generated script (called configure) is already in your src directory. If not, type: - - cd $XERCESCROOT/src - autoconf - - This generates a shell-script called configure. It is tempting to run this script directly as is normally the case, but wait a minute. If you are using the default compilers like gcc and g++ - you do not have a problem. But if you are not on the standard GNU compilers, you need to export a few more environment variables before you can invoke configure. - - Rather than make you to figure out what strange environment variables you need to use, we have provided you with a wrapper script that does the job for you. All you need to tell the script - is what your compiler is, and what options you are going to use inside your build, and the script does everything for you. Here is what the script takes as input: - - runConfigure: Helper script to run "configure" for one of the supported platforms - Usage: runConfigure "options" - where options may be any of the following: - -p <platform> (accepts 'aix', 'linux', 'solaris', - 'hp-10', 'hp-11', 'unixware', 'os400', 'irix', 'ptx', 'tru64', 'macosx' ) - -c <C compiler name> (e.g. gcc, cc, xlc_r, icc) - -x <C++ compiler name> (e.g. g++, CC, xlC_r, icc, c++) - -d (specifies that you want to build debug version) - -m <message loader> can be 'inmem', 'icu', 'MsgFile' or 'iconv' - -n <net accessor> can be 'fileonly', 'libwww', 'socket' or 'native' - -t <transcoder> can be 'icu', 'Iconv400', 'Iconv390' or 'native' - -r <thread option> can be 'pthread' or 'dce' (only used on aix, HP-11 and solaris) or 'sproc' (only on IRIX) or 'none' - -l <extra linker options> - -z <extra compiler options> - -P <install-prefix> - -C <any one extra configure options> - -h (to get help on the above commands) - - Xerces-C++ can be built as either a standalone library or as a library dependent on International Components for Unicode (ICU). For simplicity, the following discussion only explains - standalone builds. - - One of the common ways to build Xerces-C++ is as follows: - - runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread - - The response will be something like this: - - Generating makefiles with the following options ... - Platform: linux - C Compiler: gcc - C++ Compiler: g++ - Extra compile options: - Extra link options: - Message Loader: inmem - Net Accessor: socket - Transcoder: native - Thread option: pthread - Extra configure options: - Debug is OFF - - creating cache ./config.cache - checking for gcc... gcc - checking whether the C compiler (gcc -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET ) works... yes - checking whether the C compiler (gcc -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET ) is a cross-compiler... no - checking whether we are using GNU C... yes - checking whether gcc accepts -g... yes - checking for c++... g++ - checking whether the C++ compiler (g++ -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET ) works... yes - checking whether the C++ compiler (g++ -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET ) is a cross-compiler... no - checking whether we are using GNU C++... yes - checking whether g++ accepts -g... yes - checking for a BSD compatible install... /usr/bin/install -c - checking for autoconf... autoconf - checking how to run the C preprocessor... gcc -E - checking for ANSI C header files... yes - checking for XMLByte... no - checking host system type... i686-pc-linux-gnu - updating cache ./config.cache - creating ./config.status - creating Makefile - creating util/Makefile - creating util/Transcoders/ICU/Makefile - creating util/Transcoders/Iconv/Makefile - creating util/Transcoders/Iconv390/Makefile - creating util/Transcoders/Iconv400/Makefile - creating util/Transcoders/MacOSUnicodeConverter/Makefile - creating util/Platforms/Makefile - creating util/Platforms/Solaris/Makefile - creating util/Platforms/AIX/Makefile - creating util/Platforms/Linux/Makefile - creating util/Platforms/HPUX/Makefile - creating util/Platforms/OS390/Makefile - creating util/Platforms/OS400/Makefile - creating util/Platforms/IRIX/Makefile - creating util/Platforms/PTX/Makefile - creating util/Platforms/UnixWare/Makefile - creating util/Platforms/Tru64/Makefile - creating util/Platforms/MacOS/Makefile - creating util/Compilers/Makefile - creating util/MsgLoaders/InMemory/Makefile - creating util/MsgLoaders/ICU/Makefile - creating util/MsgLoaders/MsgCatalog/Makefile - creating util/MsgLoaders/MsgFile/Makefile - creating util/NetAccessors/Socket/Makefile - creating util/NetAccessors/libWWW/Makefile - creating util/NetAccessors/MacOSURLAccess/Makefile - creating util/regx/Makefile - creating validators/Makefile - creating validators/common/Makefile - creating validators/datatype/Makefile - creating validators/DTD/Makefile - creating validators/schema/Makefile - creating framework/Makefile - creating dom/Makefile - creating idom/Makefile - creating parsers/Makefile - creating internal/Makefile - creating sax/Makefile - creating sax2/Makefile - creating ../obj/Makefile - - Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html - Still cannot resolve it? Find out if someone else had the same problem before. - Go to http://marc.theaimsgroup.com/?l=xerces-c-dev - - In future, you may also directly type the following commands to create the Makefiles. - - export TRANSCODER="NATIVE" - export MESSAGELOADER="INMEM" - export NETACCESSOR="Socket" - export THREADS="pthread" - export CC="gcc" - export CXX="g++" - export CXXFLAGS=" -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET" - export CFLAGS=" -O -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET" - export LDFLAGS="" - export LIBS=" -lpthread " - configure - - If the result of the above commands look OK to you, go to the directory - $HOME/xerces-c-src1_6_0/src and type "gmake" to make the XERCES-C system. - - The error message concerning conf.h is NOT an indication of a problem. This code has been inserted to make it work on AS/400, but it gives this message which appears to be - an error. The problem will be fixed in future. - - So now you see what the wrapper script has actually been doing! It has invoked configure to create the Makefiles in the individual sub-directories, but in addition to that, it has set a - few environment variables to correctly configure your compiler and compiler flags too. - - Now that the Makefiles are all created, you are ready to do the actual build. - - gmake - - Is that it? Yes, that's all you need to build Xerces-C++. - - Building samples - ---------------- - - The installation process for the samples is same on all UNIX platforms. - - cd xerces-c1_6_0-linux/samples - ./runConfigure -p<platform> -c<C_compiler> -x<C++_compiler> - gmake - - This will create the object files in each sample directory and the executables in ' - xerces-c1_6_0-linux/bin' directory. - - Note that runConfigure is just a helper script and you are free to use ./configure - with the correct parameters to make it work on any platform-compiler combination - of your choice. The script needs the following parameters: - - Usage: runConfigure "options" - where options may be any of the following: - -p <platform> (accepts 'aix', 'unixware', 'linux', 'solaris', - 'hp-10', 'hp-11', 'os400', 'irix', 'ptx', 'tru64', 'macosx') - -c <C compiler name> (e.g. gcc, xlc or icc) - -x <C++ compiler name> (e.g. g++, xlC, or icc) - -d (specifies that you want to build debug version) - -h (get help on the above commands) - -z <extra compiler options> - - NOTE:The code samples in this section assume that you are are working on - the Linux binary drop. If you are using some other UNIX flavor, please replace - '-linux' with the appropriate platform name in the code samples. - - To delete all the generated object files and executables, type: - - gmake clean - -Building Xerces-C++ as a single-threaded library on Unix platforms -================================================================== - - To build a single-threaded library on Unix platforms you have to update - one or more of the following files Makefile.incl, Makefile.in, - runConfigure. The following steps guide you to create a - single-threaded library for each platform: - - For Aix - - - * Replace xlc_r and xlC_r libraries with xlc and xlC respectively - * Replace makeC++SharedLib_r with makeC++SharedLib - * Remove the flag -D_THREAD_SAFE - * Remove inclusion of any threaded library directories from the - LIBPATH - * Remove inclusion of -lpthreads and -lpthread_compat - * Add -DAPP_NO_THREADS to define the variable under AIX specific - options in Makefile.incl - - For Solaris - - - * Add -DAPP_NO_THREADS to define the variable under SOLARIS - specific options in Makefile.incl - * Remove compiler switch -mt - * Remove -D_REENTRANT flag from the 'compile' options - * Remove inclusion of -lpthread - - For Linux - - - * Add -DAPP_NO_THREADS to define the variable under LINUX - specific options in Makefile.incl - * Remove -D_REENTRANT flag from the 'compile' options - * Remove inclusion of -lpthread - - For HPUX - - - * Add -DAPP_NO_THREADS to define the variable under HP specific - options in Makefile.incl - * Remove inclusion of -lpthread and -lcma - * Remove threading defines like -D_PTHREADS_DRAFT4 , - * -DXML_USE_DCE - -Building on iSeries (AS/400) -============================ - - The following addresses the requirements and build of Xerces-C++ natively on the iSeries. - - Building Xerces-C++ library - --------------------------- - - Requirements: - - * OS/400 QSHELL interpreter installed (install base option 30, operating system) - * OS/400 - Portable App Solutions Environment (PASE) installed (install base option 33, operating system) - * QShell Utilities, PRPQ 5799-XEH - * iSeries Tools for Developers, PRPQ 5799-PTL (these are the gnu utilities) - - Compiler: - - * For v4r5m0: ILE C++ for AS/400, PRPQ 5799-GDW - * For v5: WebSphere Development ToolsSet, 5722-WDS ( installed option 52, Compiler - ILE C++) - - Recommendations: - - * There is one option when building the XML4C parser on iSeries. For code page translation, you can use the - iSeries native Iconv400 support or ICU as the transcoder plugin. If you choose ICU, follow the instructions to - build the ICU service program with the ICU download. Those instructions are not included here. - * We recommend the use of Iconv400. The binary posted on Alphaworks uses Iconv400. - - Setup Instructions: - - * Make sure that you have the requirements installed on your iSeries. We highly recommend that you read the - writeup that accompanies the iSeries Tools for Developers PRPQ. There are install instructions as well as - information about how modules, programs and service programs can be created in Unix-like fashion using gnu - utilities. Note that symbolic links are use in the file system to point to actual iSeries *module, *pgm and - *srvpgm objects in libraries. - * Download the source zip file (NT version) directly to an iSeries IFS directory after creating a directory (eg. - /XML4Cxxx) and then extract the source using a mapped drive. To do this, from Windows Explorer, select Tools - -> Map Network Drive. Then select an available drive (e.g. F:) and specify an iSeries system you want to extract - the zip file to (e.g. \\<your iSeries name>\root). Click on Finish. Then find the .zip file and right click on it and - select Extract To ... Then select the files you want to extract to the iSeries system. - * Create iSeries target library. This library will be the target for the resulting modules and Xerces-C++ service - program. You will specify this library on the OUTPUTDIR environment variable in step 4. - * Set up the following environment variables in your build process (use ADDENVVAR or WRKENVVAR CL - commands): - - XERCESCROOT - <the full path up to the Xerces-C++ src directory, but not including 'src'> - MAKE - '/usr/bin/gmake' - OUTPUTDIR - <identifies target iSeries library for *module, *pgm and *srvpgm objects> - ICUROOT - (optional if using ICU) <the path of your ICU includes> - - * For v4r5m0 systems, add QCXXN, to your build process library list. This results in the resolution of - CRTCPPMOD used by the icc compiler. - - You may want to put the environment variables and library list setup instructions in a CL program so you will not forget - these steps during your build. - - Configure - - To configure the make files for an iSeries build do the following under Qsh: - - qsh: - cd <full path to Xerces-C++>/src - runConfigure -p os400 -x icc -c icc -m inmem -t Iconv400 - - Troubleshooting: - - error: configure: error: installation or configuration problem: - C compiler cannot create executables. - - If during runConfigure you see the above error message, it can mean one of a few things. Either QCXXN is not on your - library list OR the runConfigure cannot create the temporary modules (CONFTest1, etc) it uses to test out the - compiler options or PASE is not installed. The second reason happens because the test modules already exist from a - previous run of runConfigure. To correct the problem, do the following: - - CL: - DLTMOD <OUTPUTDIR library>/CONFT* and - DLTPGM <OUTPUTDIR library>/CONFT* - - Build - - qsh: - cd <full path to Xerces-C++>/src - gmake - - The above gmake should result in a service program being created in your specified library and a symbolic link to that - service program placed in <path to Xerces-C++/lib>. It is highly possible that the service program will not create - however due to number of modules and path names, see trouble shooting for the workaround. - - After the service program has successfully been created and a link established, you can either bind your XML - application programs directly to the parser's service program via the BNDSRVPGM option on the CRTPGM or CRTSRVPGM - command or you can specify a binding directory on your icc command. To specify an archive file to bind to, use the - -L, -l binding options on icc. An archive file on iSeries is a binding directory. To create an archive file, use qar - command. (see the iSeries Tools for Developers write up). - - After building the Xerces-C service program, create a binding directory by doing the following (note, this binding - directory is used when building the samples. Also, note that the .a file below can have a different name based on the - parser version (using apache xerces versioning)): - - qsh: - cd <full path to Xerces-C++>/lib - qar -cuv libxerces-c1_6_0.a *.o - will results in - command = CRTBNDDIR BNDDIR(yourlib/libxercesc) TEXT('/yourlib/Xerces-C++/lib/libxerces-c1_6_0.a') - command = ADDBNDDIRE BNDDIR(yourlib/libxercesc) OBJ((yourlib/LIBXERCESC *SRVPGM) ) - - Troubleshooting gmake problem: - - Due to the number of modules (the .o symbolic links) that make up the service program and the path to get to those - modules, the qshell ld request to create the service program will likely fail because the request is too large, you may - get a message like the following at the end of the gmake request: - - FAILURE: spawnp() with errno = 3491 - GMAKE: vfork: Argument list too long. - - If this is the case, you can manually create the service progam by doing the following: - - CL: - CRTSRVPGM (<OUTPUTDIR-library>/libxercesc) MODULE(<OUTPUTDIR-library>/*ALL) EXPORT(*ALL) TEXT('XML4C parser version xxx') - OPTION(*DUPPROC *DUPVAR) - - Note that if you manually create the service program you want to make sure that you do not include any CONFT* - modules or samples modules in the OUTPUTDIR library. After the service program is manually created you can add a - symbolic link to the service program into the appropriate /lib directory by qsh: - - qsh: - cd <full path to Xerces-C++>/lib - ln -s /qsys.lib/<outputdir>.lib/libxercesc.srvpgm libxerces-c1_6_0.o - qar -cuv libxerces-c1_6_0.a *.o - - If you are on a v4 system using the ILE C++ PRPQ compiler (which is referred to as the 'old' compiler) you will get - compiler errors requiring a few manual changes to the source: - - * src/dom/DocumentImpl.cpp - * src/dom/DocumentImpl.hpp - * src/idom/IDDocumentImpl.cpp - * src/idom/IDDocumentImpl.hpp - * src/validators/common/ContentSpecNode.hpp - - Update the following routines in src/dom/DocumentImpl.cpp as follows: - - void DocumentImpl::setUserData(NodeImpl* n, void* data) - { - if (!userData && data) - #ifdef __OS400__ - userData = new RefHashTableOf<char>(29, false, new HashPtr()); - #else - userData = new RefHashTableOf<void>(29, false, new HashPtr()); - #endif - if (!data && userData) - userData->removeKey((void*)n); - else - #ifdef __OS400__ - userData->put((void*)n,(char*)data); - #else - userData->put((void*)n,data); - #endif - } - - void* DocumentImpl::getUserData(NodeImpl* n) - { - if (userData) - #ifdef __OS400__ - return (void*)userData->get((void*)n); - #else - return userData->get((void*)n); - #endif - else - return null; - } - - To update src/dom/DoumentImpl.hpp as follows: - - #ifdef __OS400__ - RefHashTableOf<char> *userData; - #else - - RefHashTableOf<void> *userData; - #endif - - Update the following routines in src/idom/IDDocumentImpl.cpp as follows: - - void IDDocumentImpl::setUserData(IDOM_Node* n, void* data) - { - if (!fUserData && data) - #ifdef __OS400__ - fUserData = new (this) RefHashTableOf<char>(29, false, new (this) HashPtr()); - #else - fUserData = new (this) RefHashTableOf<void>(29, false, new (this) HashPtr()); - #endif - - if (!data && fUserData) - fUserData->removeKey((void*)n); - else - #ifdef __OS400__ - fUserData->put((void*)n,(char*)data); - #else - fUserData->put((void*)n,data); - #endif - } - - void* IDDocumentImpl::getUserData(const IDOM_Node* n) const - { - if (fUserData) - #ifdef __OS400__ - return (void*) fUserData->get((void*)n); - #else - return fUserData->get((void*)n); - #endif - - else - return 0; - } - - To update src/idom/IDDocumentImpl.hpp: - - #ifdef __OS400__ - RefHashTableOf<char> *fUserData; - #else - RefHashTableOf<void> *fUserData; - #endif - - Update validators/common/ContentSpecNode.hpp removing the following: - - #ifndef __OS400__ - inline - #endif - ContentSpecNode::~ContentSpecNode() - - To build for transcoder ICU: - - 1.Make sure you have an ICUROOT path set up so that you can find the ICU header files (usually /usr/local) - 2.Make sure you have created a binding directory (symbolic link) in the file system so that you can bind the - Xerces-C++ service program to the ICU service program and specify that on the EXTRA_LINK_OPTIONS in - src/Makefile.incl (usually the default is a link in /usr/local/lib). - - Building Samples on iSeries - --------------------------- - - Note that the samples will create programs bind to the BND directory object - created by qar referenced above. - - qsh - cd <full path to Xerces-C++>/samples - runConfigure -p os400 -x icc -c icc - gmake - -Building Xerces-C++ on OS/2 using Visual Age C++ -================================================ - - OS/2 is a favourite IBM PC platforms. The only option in this platform is - to use Visual Age C++ compiler. Here are the steps you need to build - Xerces-C++ using Visual Age C++ on OS/2. - - Building Xerces-C++ library - --------------------------- - - Requirements: - - * VisualAge C++ Version 4.0 with Fixpak 1: - Download the Fixpak from the IBM VisualAge C++ Corrective Services web - page. - - There are two ways to build Xerces-C++. The "From Existing" method only requires - VAC++. The "From Scratch" method requires both Object Rexx and VAC++ - installed. - - The "From Existing" Method - - 1.In the xerces-c-src1_6_0\Projects\OS2\VACPP40 directory, find - and edit the VAC++ configuration file project_options.icc. - 2.Change the directory on the first line 'BASE_DIR = "..."' to match the - base directory of the Xerces-C++ sources on your system. Note that the - directory path must use double backslashes "\\"! - 3.Save project_options.icc - 4.Start the Command Line in the VAC++ folder. - 5.Navigate to the xerces-c-src1_6_0\Projects\OS2\VACPP40 - directory. - 6.Run build.cmd. This does a migration build. - 7.When build.cmd finishes, review the file compiler.errors. This file - should contain only informational messages, almost all complaining about - constant values in comparisons. - 8.You should now have a xerces-c.dll and xerces-c.lib. The library - file is an import library for the DLL. - - The "From Scratch" Method - - 1.If you are not currently running Object Rexx, run the SWITCHRX - command from a command line, answer "yes" to switching to Object - Rexx, and follow the instructions to reboot. You can switch back to - "Classic Rexx" by running SWITCHRX again. But you probably won't - need to switch back since Object Rexx runs almost 100% of Classic - Rexx programs. - 2.In the xerces-c-src1_6_0\Projects\OS2\VACPP40 directory, run - genICC.cmd. This builds the VAC++ configuration files for the sources you - have on your system. - 3.Check the generated ICC files to ensure that they didn't pick up some - non-OS/2 platform stuff. This happens when new platform-specific - directories are added to Xerces. If they did pick up new non-OS/2 stuff, - either edit it out of the ICC file or add them to the "ignore" array in - genICC.cmd and re-run genICC. - 4.Start the Command Line in the VAC++ folder. - 5.Navigate to the xerces-c-src1_6_0\Projects\OS2\VACPP40 - directory. - 6.Run build.cmd This does a migration build. - 7.When build.cmd finishes, review the file compiler.errors. This file - should contain only informational messages, almost all complaining about - constant values in comparisons. - 8.You should now have a xerces-c.dll and xerces-c.lib. The library - file is an import library for the DLL.) - - Packaging the Binaries - - There is an Object Rexx program that will package the binaries and headers. - (See step 1 of the "From scratch" method on how to switch to Object Rexx.) - The packageBinaries.cmd file is in the - xerces-c-src1_6_0\Projects\OS2\VACPP40 directory. Run - packageBinaries, giving the source and target directories like this: - - packageBinaries -s x:\xerces-c-src1_6_0 -o x:\temp\xerces-c1_6_0-os2 - - (Match the source directory to your system; the target directory can be anything - you want.) - - If you don't want to use the Object Rexx program, you'll need to manually - copy the "*.hpp" and "*.c" files to an include directory. (Be sure to maintain - the same directory structure that you find under xerces-c-src1_6_0.) - - Building Samples - ---------------- - - Building the Xerces-C++ samples using IBM Visual Age C++ Professional 4.0 for - OS/2 (VAC++). - - * In the XercesCSrcInstallDir;\samples\Projects\OS2\VACPP40 - directory, find and edit the VAC++ configuration file basedir.icc. - * All of the directories used to build the samples are defined in - basedir.icc. You need to edit the directories to match your system. - Here are the directories you need to assign: SRC_DIR -- - XercesCSrcInstallDir; This is where VAC++ should look to find the - samples directories containing the source files. BASE_DIR -- The install - directory XercesCSrcInstallDir;. VAC++ will store the compiled - samples in the bin directory under BASE_DIR. It will also look for the - xerces-c.lib file in the lib directory under BASE_DIR. Other - directories are set based on these two. You can choose to override them if - you wish. - * Save basedir.icc - * Start the Command Line in the VAC++ folder. - * Navigate to the - XercesCSrcInstallDir;\samples\Projects\OS2\VACPP40 - directory. - * Run bldsamples.cmd - * When build.cmd finishes, review the file compiler.errors. This file - should contain only informational messages, almost all complaining about - constant values in comparisons. - * You should now have several executable files. - - Rebuilding the Configuration Files - - Although it shouldn't be necessary, if you want to rebuild the VAC++ configuration - files, you'll need to have Object Rexx running on your system: - - * If you are not currently running Object Rexx, run the SWITCHRX command - from a command line, answer "yes" to switching to Object Rexx, and follow - the instructions to reboot. (Note: You can switch back to "Classic Rexx" by - running SWITCHRX again. But you probably won't need to switch back - since Object Rexx runs almost 100% of Classic Rexx programs.) - * In the Projects\OS2\VACPP40 directory, run genICC.cmd. This builds the - VAC++ configuration files for the samples you have on your system. - * Go to the first step above in the "Building asmples for OS/2" section. - -Building Xerces-C++ on Macintosh -================================ - - The Xerces-C++ Mac port has the key following attributes: - - 1.Built atop CoreServices APIs and a limited number of Carbon - APIs; supports builds for both Mac OS Classic, Carbon, and Mac - OS X systems. - 2.Has a Mac OS native transcoder that utilizes the built-in Mac OS - Unicode converter [MacOSUnicodeConverter]. - 3.Has a Mac OS native netaccessor that utilizes the built-in Mac OS - URLAccess routines [MacOSURLAccess]. - 4.Supports builds from Metroworks CodeWarrior, Apple Project - Builder, and Mac OS X shell. - - - Using Xerces-C++ with CodeWarrior - --------------------------------- - Xerces-C++ and CodeWarrior: - - Xerces-C++ may be built with CodeWarrior under Mac OS Classic or Mac OS X. - Since the Xerces-C++ code contains some files with very long names, and - CodeWarrior does not yet support use of files with such long names, the installation - in this case is somewhat involved. - - Installing Xerces-C++ for use with CodeWarrior: - - For compatibility with CodeWarrior, it is necessary to adjust some of the file names - (and referencing include statements). To do this, it is necessary to perform the - following steps on a unix (or Mac OS X) machine that has support for long file names - (a Windows machine may also work): - - * Retrieve Xerces-C++ from CVS, or untar a packaged build. Note that these - steps should not be performed in a Classic Mac OS environment, as file - names would then be mangled at this point! - * Xerces-C++ comes with a tool that will shorten file names as appropriate, and - fix up referencing include statements. Duplicate the file - Projects/MacOS/ShortenFiles.pl to the xercesc main directory (the same - directory that contains the Projects directory). Executing this perl script from - this location will create a new directory MacSrc that contains patched up - versions of files from the src directory. - - cd <xercescroot> - cp Projects/MacOS/ShortenFiles.pl . - perl ShortenFiles.pl - - * The source files will likely not now have proper Mac OS type/creator - attribution. CodeWarrior badly wants this to be correct. So set the - type/creator of these files somehow. The following should work from Mac OS X - (but if you're not going to keep building on a Mac OS X machine, you may well - need to perform this step in some other way once you get the files onto your - classic machine). - - find . \( -name "*.c" -or -name "*.h" -or -name "*.cpp" -or -name "*.hpp" -or \ - -name "*.xml" \) -print0 | xargs -0 /Developer/Tools/SetFile -c CWIE -t TEXT - - * Move the entire directory structure to your Mac OS machine. - - Building Xerces-C++ with CodeWarrior: - - * Run CodeWarrior (tested with latest CW Pro 7.0). - * Import the project - Projects/MacOS/CodeWarrior/XercesLib/XercesLib.mcp.xml, saving it back - out to the same directory as XercesLib.mcp. - * This project contains five build targets that build all combinations of classic, - carbon, debug, and release versions, with an all target that builds all of these. - Build any or all of these. - - Building Xerces-C++ Samples with CodeWarrior: - - A CodeWarrior project is included that builds the DOMPrint sample. This may be - used as an example from which to build additional sample projects. Please read the - following important notes: - - * Once again, it is required that you import the .xml version of the project file, - and save it back out. - * The Xerces-C++ sample programs are written to assume a command line - interface. To avoid making Macintosh-specific changes to these command line - programs, we have opted to instead require that you make a small extension - to your CodeWarrior runtime that supports such command line programs. - Please read and follow the usage notes in - XercesSampleSupport/XercesSampleStartupFragment.c. - - Building Xerces-C++ with Project Builder - ---------------------------------------- - - Projects are included to build the Xerces-C++ library and DOMPrint sample under - Apple's Project Builder for Mac OS X. The following notes apply: - - * Since you are running under Mac OS X, and if you are not also performing - CodeWarrior builds, it is not necessary to shorten file names or set the - type/creator codes as required for CodeWarrior. - * The Project Builder project builds XercesLib as the framework - Xerces.framework. This framework, however, does not currently include a - correct set of public headers. Any referencing code must have an include - path directive that points into the Xerces-C++ src directory. - * The DOMPrint project illustrates one such usage of the Xerces.framework. - - Building Xerces-C++ from the Mac OS X command line - -------------------------------------------------- - - Support for Mac OS X command line builds is now included in the standard "unix" - Xerces-C++ build infrastructure. - - In general, the Mac OS X command line build follows the generic unix build - instructions. You need to set your XERCESCROOT environment variable, - ./runConfigure, and make. - - setenv XERCESCROOT "<directory>" - cd src - ./runConfigure -p macosx -n native - make - - Similar instructions apply to build the samples and tests, though the -n flag - is not used in these cases: - - cd samples - ./runConfigure -p macosx - make - - Special usage information for Xerces-C++ on the Macintosh - --------------------------------------------------------- - - File Path Specification - - Apart from the build instructions, above, the most important note about use of - Xerces-C++ on the Macintosh is that Xerces-C++ expects all filename paths to be - specified in unix syntax. If running natively under a Mac OS X system, this path - will be the standard posix path as expected by the shell. The easiest means of - creating and interpreting these paths will be through the routines - XMLCreateFullPathFromFSRef and XMLParsePathToFSRef as declared in - the file MacOSPlatformUtils.hpp. FSSpec variants of these routines are also - supplied. - - Mac OS Version Compatibility - - Xerces-C++ requires that several key components of the Mac OS be relatively up - to date. It should be readily compatible with any system above Mac OS 9.0. - Compatibility with earlier systems may perhaps be achieved if you can install - appropriate components. - - Required components are: - - * Unicode Converter and Text Encoding Converter. These provide the base - transcoding service used to support Xerces-C++ transcoding requirements. - - Optional components are: - - * URLAccess. Provides NetAccessor support to Xerces-C++ for use in - fetching network referenced entities. If URLAccess is not installed, any - such references will fail; the absence of URLAccess, however, will not in - itself prevent Xerces-C++ from running. - * Multiprocessing library. Provides mutual exclusion support. Once again, - the routines will back down gracefully if Multiprocessing support is not - available. - * HFS+ APIs. If HFS+ APIs are available, all file access is performed using - the HFS+ fork APIs to support long file access, and to support long - unicode compliant file names. In the absence of HFS+ APIs, classic HFS - APIs are used instead. - -Building Xerces-C++ with ICU using bundled Perl scripts on Windows -================================================================== - - As mentioned earlier, Xerces-C++ may be built in stand-alone mode using - native encoding support and also using ICU where you get support over 180 - different encodings. ICU stands for International Components for Unicode - and is an open source distribution from IBM. You can get ICU libraries from - IBM's developerWorks site or go to the ICU download page directly. - - Important: Please remember that ICU and Xerces-C++ must be built with the same - compiler, preferably with the same version. You cannot for example, build ICU with a - threaded version of the xlC compiler and build Xerces-C++ with a non-threaded one. - - - There are two options to build Xerces-C++ with ICU. One is to use the - MSDEV GUI environment, and the other is to invoke the compiler from the - command line. - - Using, the GUI environment, requires one to edit the project files. Here, we - will describe only the second option. It involves using the perl script - 'packageBinaries.pl'. - - Prerequisites: - - * Perl 5.004 or higher - * Cygwin tools or MKS Toolkit - * zip.exe - - Extract Xerces-C++ source files from the .zip archive using WinZip, say in - the root directory (an arbitrary drive x:). It should create a directory like - 'x:\xerces-c-src1_6_0'. - - Extract the ICU files, using WinZip, in root directory of the disk where you - have installed Xerces-C++, sources. After extraction, there should be a new - directory 'x:\icu' which contains all the ICU source files. - - Start a command prompt to get a new shell window. Make sure you have - perl, cygwin tools (uname, rm, cp, ...), and zip.exe somewhere in the path. - Next setup the environment for MSVC using 'VCVARS32.BAT' or a similar file. - Then at the prompt enter: - - set XERCESCROOT=x:\xerces-c-src1_6_0 - set ICUROOT=x:\icu - cd x:\xerces-c-src1_6_0\scripts - perl packageBinaries.pl -s x:\xerces-c-src1_6_0 -o x:\temp\xerces-c1_6_0-win32 -t icu - - (Match the source directory to your system; the target directory can be - anything you want.) - - If everything is setup right and works right, then you should see a binary drop - created in the target directory specified above. This script will build both ICU - and Xerces-C++, copy the files (relevant to the binary drop) to the target - directory. - - For a description of options available, you can enter: - - perl packageBinaries.pl - -Building Xerces-C++ COM Wrapper on Windows -========================================== - - To build the COM module for use with XML on Windows platforms, you - must first set up your machine appropriately with necessary tools and - software modules and then try to compile it. The end result is an - additional library that you can use along with the standard Xerces-C++ - for writing VB templates or for use with IE 5.0 using JavaScript. - - Setting up your machine for COM - - To build the COM project you will need to install the MS PlatformSDK. Some of the - header files we use don't come with Visual C++ 6.0. You may download it from - Microsoft's Website at - http://www.microsoft.com/msdownload/platformsdk/setuplauncher.htm or directly - FTP it from - ftp://ftp.microsoft.com/developr/PlatformSDK/April2000/Msi/WinNT/x86/InstMsi.exe. - - The installation is huge, but you don't need most of it. So you may do a custom - install by just selecting "Build Environment" and choosing the required - components. First select the top level Platform SDK. Then click the down arrow - and make all of the components unavailable. Next open the "Build Environment" - branch and select only the following items: - - * Win32 API - * Component Services - * Web Services - Internet Explorer - - Important: When the installation is complete you need to update VC6's include - path to include ..\platformsdk\include\atl30. You do this by choosing - "Tools -> Options -> Directories". This path should be placed second after the - normal PlatformSDK include. You change the order of the paths by clicking the up - and down arrows. - - The order in which the directories appear on your path is important. Your first - include path should be ..\platformsdk\include. The second one - should be ..\platformsdk\include\atl30. - - Building COM module for Xerces-C++ - - Once you have set up your machine, build Xerces-C++ COM module by choosing - the project named 'xml4com' inside the workspace. Then select your build mode - to be xml4com - Win32 Release MinDependency. Finally build the project. - This will produce a DLL named xerces-com.dll which needs to be present in - your path (on local machine) before you can use it. - - Testing the COM module - - There are some sample test programs in the test/COMTest directory which - show examples of navigating and searching an XML tree using DOM. You need to - browse the HTML files in this directory using IE 5.0. Make sure that your build has - worked properly, specially the registration of the ActiveX controls that happens in - the final step. - - You may also want to check out the NIST DOM test suite at - http://xw2k.sdct.itl.nist.gov/BRADY/DOM/. You will have to modify the documents - in the NIST suite to load the Xerces COM object instead of the MSIE COM object. - -Building User Documentation -============================ - - The user documentation (this very page that you are reading on the - browser right now), was generated using an XML application called - StyleBook. This application makes use of Xerces-J and Xalan to - create the HTML file from the XML source files. The XML source files - for the documentation are part of the Xerces-C++ module. These files - reside in the doc directory. - - Pre-requisites for building the user documentation are: - - * JDK 1.2.2 (or later). - * Xerces-J 1.0.1.bundled - * Xalan-J 0.19.2.bundled - * Stylebook 1.0-b2.bundled - * The Apache Style files (dtd's and .xsl files).bundled - - Invoke a command window and setup PATH to include the JDK 1.2.2 - bin directory - - Next, cd to the Xerces-C++ source drop root directory, and enter - - * Under Windows: - createDocs - * Under Unix's: - sh createDocs.bat - - This should generate the .html files in the 'doc/html' directory. - -I wish to port Xerces to my favourite platform. Do you have any suggestions? -============================================================================ - - All platform dependent code in Xerces has been isolated to a couple - of files, which should ease the porting effort. Here are the basic steps - that should be followed to port Xerces. - - 1.The directory src/util/Platforms contains the platform - sensitive files while src/util/Compilers contains all - development environment sensitive files. Each operating system - has a file of its own and each development environment has - another one of its own too. - As an example, the Win32 platform as a Win32Defs.hpp file and - the Visual C++ environment has a VCPPDefs.hpp file. These files - set up certain define tokens, typedefs, constants, etc... that will - drive the rest of the code to do the right thing for that platform and - development environment. AIX/CSet have their own AIXDefs.hpp - and CSetDefs.hpp files, and so on. You should create new - versions of these files for your platform and environment and - follow the comments in them to set up your own. Probably the - comments in the Win32 and Visual C++ will be the best to follow, - since that is where the main development is done. - - 2.Next, edit the file XercesDefs.hpp, which is where all of the - fundamental stuff comes into the system. You will see conditional - sections in there where the above per-platform and - per-environment headers are brought in. Add the new ones for - your platform under the appropriate conditionals. - - 3.Now edit AutoSense.hpp. Here we set canonical Xerces internal - #define tokens which indicate the platform and compiler. These - definitions are based on known platform and compiler defines. - AutoSense.hpp is included in XercesDefs.hpp and the canonical - platform and compiler settings thus defined will make the - particular platform and compiler headers to be the included at - compilation. - It might be a little tricky to decipher this file so be careful. If you - are using say another compiler on Win32, probably it will use - similar tokens so that the platform will get picked up already - using what is already there. - - 4.Once this is done, you will then need to implement a version of - the platform utilities for your platform. Each operating system - has a file which implements some methods of the - XMLPlatformUtils class, specific to that operating system. These - are not terribly complex, so it should not be a lot of work. The - Win32 verions is called Win32PlatformUtils.cpp, the AIX - version is AIXPlatformUtils.cpp and so on. Create one for your - platform, with the correct name, and empty out all of the - implementation so that just the empty shells of the methods are - there (with dummy returns where needed to make the compiler - happy.) Once you've done that, you can start to get it to build - without any real implementation. - - 5.Once you have the system building, then start implementing your - own platform utilties methods. Follow the comments in the Win32 - version as to what they do, the comments will be improved in - subsequent versions, but they should be fairly obvious now. Once - you have these implementations done, you should be able to - start debugging the system using the demo programs. - - Other concerns are: - - * Does ICU compile on your platform? If not, then you'll need to - create a transcoder implementation that uses your local - transcoding services. The Iconv transcoder should work for you, - though perhaps with some modifications. - - * What message loader will you use? To get started, you can use - the "in memory" one, which is very simple and easy. Then, once - you get going, you may want to adapt the message catalog - message loader, or write one of your own that uses local - services. - - That is the work required in a nutshell! - -What should I define XMLCh to be? -================================= - - XMLCh should be defined to be a type suitable for holding a utf-16 - encoded (16 bit) value, usually an unsigned short. - - All XML data is handled within Xerces-C++ as strings of XMLCh - characters. Regardless of the size of the type chosen, the data stored - in variables of type XMLCh will always be utf-16 encoded values. - - Unlike XMLCh, the encoding of wchar_t is platform dependent. - Sometimes it is utf-16 (AIX, Windows), sometimes ucs-4 (Solaris, - Linux), sometimes it is not based on Unicode at all (HP/UX, AS/400, - system 390). - - Some earlier releases of xerce-c defined XMLCh to be the same type - as wchar_t on most platforms, with the goal of making it possible to - pass XMLCh strings to library or system functions that were expecting - wchar_t paramters. This approach has been abandonded because of - - * Portability problems with any code that assumes that the types of - XMLCh and wchar_t are compatible - * Excessive memory usage, especially in the DOM, on platforms - with 32 bit wchar_t. - * utf-16 encoded XMLCh is not always compatible with ucs-4 - encoded wchar_t on Solaris and Linux. The problem occurs with - Unicode characters with values greater than 64k; in ucs-4 the - value is stored as a single 32 bit quatity. With utf-16, the value - will be stored as a "surrogate pair" of two 16 bit values. Even - with XMLCh equated to wchar_t, xerces will still create the utf-16 - encoded surrogate pairs, which are illegal in ucs-4 encoded - wchar_t strings. - -Where can I look for more help? -=============================== - - If you have read this page, followed the instructions, and still cannot - resolve your problem(s), there is more help. You can find out if others - have solved this same problem before you, by checking the Apache - XML mailing list archives at http://archive.covalent.net and the Bugzilla - Apache bug database. - -s \ No newline at end of file diff --git a/src/Makefile.in b/src/Makefile.in deleted file mode 100644 index 76c6cdb78a9a5d72723832a13a3126bf36631af8..0000000000000000000000000000000000000000 --- a/src/Makefile.in +++ /dev/null @@ -1,328 +0,0 @@ -# -# The Apache Software License, Version 1.1 -# -# Copyright (c) 1999-2000 The Apache Software Foundation. All rights -# reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# -# 3. The end-user documentation included with the redistribution, -# if any, must include the following acknowledgment: -# "This product includes software developed by the -# Apache Software Foundation (http://www.apache.org/)." -# Alternately, this acknowledgment may appear in the software itself, -# if and wherever such third-party acknowledgments normally appear. -# -# 4. The names "Xerces" and "Apache Software Foundation" must -# not be used to endorse or promote products derived from this -# software without prior written permission. For written -# permission, please contact apache\@apache.org. -# -# 5. Products derived from this software may not be called "Apache", -# nor may "Apache" appear in their name, without prior written -# permission of the Apache Software Foundation. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR -# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# ==================================================================== -# -# This software consists of voluntary contributions made by many -# individuals on behalf of the Apache Software Foundation, and was -# originally based on software copyright (c) 1999, International -# Business Machines, Inc., http://www.ibm.com . For more information -# on the Apache Software Foundation, please see -# <http://www.apache.org/>. -# -# -# $Id$ -# - -################################################################### -# IMPORTANT NOTE # -################################################################### -# Before you try to run the Makefile, make sure you have two # -# environment variables set. # -# # -# export XERCESCROOT=<the directory where you installed XERCES-C> # -# export ICUROOT=<the directory where you installed ICU> # -# # -################################################################### -#MACROS defining commands -MKDIR=mkdir -CP=cp -CD=cd -RM=rm -CHMODE=chmod - -include ../version.incl -include Makefile.incl - -UTIL_DIR = util -SAX_DIR = sax -SAX2_DIR = sax2 -INTERNAL_DIR = internal -FRAMEWORK_DIR = framework -DOM_DIR = dom -IDOM_DIR = idom -PARSERS_DIR = parsers -VALIDATORS_DIR = validators - -LIBNAME = libxerces-c -THISLIB = ${XML_LIB_DIR}/${LIBNAME} - -#all these setting come from the arguments passed in to runConfigure. -PLATFORM = @platform@ -CC = @cc@ -CXX = @cxx@ -PREFIX = @prefix@ -MESSAGELOADER=@messageloader@ -TRANSCODER=@transcoder@ - -PRODUCTNAME=xerces -PRODUCTVERSION=${VER} -BINTARGETDIR=${HOME}/${PRODUCTNAME}-c-${PLATFORM}-${CXX}-${PRODUCTVERSION} - -all:: lib - -compile:: Prepare Util Sax Internal Framework Parsers Sax2 Dom IDom Validators - -lib:: ${THISLIB}${VER}${SHLIBSUFFIX} - -Prepare:: - @echo Preparing the directory structure for a build ... - -${MKDIR} -p ${XML_OBJ_DIR} - -${MKDIR} -p ${XML_LIB_DIR} - ${CD} $(UTIL_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(SAX_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(SAX2_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(INTERNAL_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(FRAMEWORK_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(PARSERS_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(VALIDATORS_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(DOM_DIR) ; $(MAKE) includes ; ${CD} .. - ${CD} $(IDOM_DIR) ; $(MAKE) includes ; ${CD} .. - -Util:: - @echo Building "util" - ${CD} $(UTIL_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Sax:: - @echo Building "sax" - ${CD} $(SAX_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - - -Internal:: - @echo Building "internal" - ${CD} $(INTERNAL_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Framework:: - @echo Building "framework" - ${CD} $(FRAMEWORK_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Parsers:: - @echo Building "parsers" - ${CD} $(PARSERS_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Sax2:: - @echo Building "sax2" - ${CD} $(SAX2_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Dom:: - @echo Building "dom" - ${CD} $(DOM_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -IDom:: - @echo Building "idom" - ${CD} $(IDOM_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -Validators:: - @echo Building "validators" - ${CD} $(VALIDATORS_DIR) ; $(MAKE) $(MAKE_FLAGS) ; ${CD} .. - -${THISLIB}${VER}${SHLIBSUFFIX}:: compile - @echo Building ${THISLIB}${VER}${SHLIBSUFFIX} - ${CD} $(XML_OBJ_DIR)/.. ; $(MAKE) -k $(MAKE_FLAGS) ; ${CD} .. - -install:: - ${CD} $(UTIL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX2_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(INTERNAL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(FRAMEWORK_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(PARSERS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(DOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(IDOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(VALIDATORS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(XML_OBJ) && $(MAKE) $@ && ${CD} .. - -clean:: - ${CD} $(UTIL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX2_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(INTERNAL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(FRAMEWORK_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(PARSERS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(DOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(IDOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(VALIDATORS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(XML_OBJ) && $(MAKE) $@ && ${CD} .. - -distclean:: - ${CD} $(UTIL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(SAX2_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(INTERNAL_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(FRAMEWORK_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(PARSERS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(DOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(IDOM_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(VALIDATORS_DIR) && $(MAKE) $@ && ${CD} .. - ${CD} $(XML_OBJ) && $(MAKE) $@ && ${CD} .. - rm -f Makefile config.cache config.log config.status - find . -name Makefile -print -exec rm -f {} \; - rm -f *~ core - -#docs:: - -samples:: - ${CD} ../samples; ${MAKE}; ${CD} ../src - -copy:: lib samples - @echo Make the target directory and its main subdirectories - -${MKDIR} ${BINTARGETDIR} - -${MKDIR} ${BINTARGETDIR}/bin - -${MKDIR} ${BINTARGETDIR}/lib -ifeq (${TRANSCODER},ICU) - echo -${MKDIR} ${BINTARGETDIR}/include/unicode -endif -ifeq (${MESSAGELOADER},ICU) - echo -${MKDIR} ${BINTARGETDIR}/include/unicode -endif - -${MKDIR} ${BINTARGETDIR}/include - -${MKDIR} ${BINTARGETDIR}/include/sax - -${MKDIR} ${BINTARGETDIR}/include/sax2 - -${MKDIR} ${BINTARGETDIR}/include/framework - -${MKDIR} ${BINTARGETDIR}/include/internal - -${MKDIR} ${BINTARGETDIR}/include/parsers - -${MKDIR} ${BINTARGETDIR}/include/util - -${MKDIR} ${BINTARGETDIR}/include/dom - -${MKDIR} ${BINTARGETDIR}/include/idom - - -${MKDIR} ${BINTARGETDIR}/samples - -${MKDIR} ${BINTARGETDIR}/samples/data - -${MKDIR} ${BINTARGETDIR}/samples/SAXCount - -${MKDIR} ${BINTARGETDIR}/samples/SAXPrint - -${MKDIR} ${BINTARGETDIR}/samples/DOMCount - -${MKDIR} ${BINTARGETDIR}/samples/DOMPrint - -${MKDIR} ${BINTARGETDIR}/samples/IDOMCount - -${MKDIR} ${BINTARGETDIR}/samples/IDOMPrint - -${MKDIR} ${BINTARGETDIR}/samples/Redirect - -${MKDIR} ${BINTARGETDIR}/samples/MemParse - -${MKDIR} ${BINTARGETDIR}/doc - -${MKDIR} ${BINTARGETDIR}/doc/apiDocs - - @echo Populate the include output directory - @echo Copying headers files ... - -${CP} -Rf ${XERCESCROOT}/src/sax/*.hpp ${BINTARGETDIR}/include/sax - -${CP} -Rf ${XERCESCROOT}/src/sax2/*.hpp ${BINTARGETDIR}/include/sax2 - -${CP} -Rf ${XERCESCROOT}/src/framework/*.hpp ${BINTARGETDIR}/include/framework - -${CP} -Rf ${XERCESCROOT}/src/dom/DOM*.hpp ${BINTARGETDIR}/include/dom - -${CP} -Rf ${XERCESCROOT}/src/idom/IDOM*.hpp ${BINTARGETDIR}/include/idom - -${CP} -Rf ${XERCESCROOT}/src/internal/*.hpp ${BINTARGETDIR}/include/internal - -${CP} -Rf ${XERCESCROOT}/src/internal/*.c ${BINTARGETDIR}/include/internal - -${CP} -Rf ${XERCESCROOT}/src/parsers/*.hpp ${BINTARGETDIR}/include/parsers - -${CP} -Rf ${XERCESCROOT}/src/util/*.hpp ${BINTARGETDIR}/include/util - -${CP} -Rf ${XERCESCROOT}/src/util/*.c ${BINTARGETDIR}/include/util - -${CP} -Rf ${ICUROOT}/include/* ${BINTARGETDIR}/include/unicode - - @echo Populate the binary output directory - @echo Copying binary outputs ... - -${CP} -Rf ${XERCESCROOT}/bin/* ${BINTARGETDIR}/bin - -${CP} -f ${ICUROOT}/source/tools/makeconv/makeconv ${BINTARGETDIR}/bin - -${CP} -f ${ICUROOT}/lib/libicuuc.* ${BINTARGETDIR}/lib - -${CP} -f ${XERCESCROOT}/lib/*.a ${BINTARGETDIR}/lib - -${CP} -f ${XERCESCROOT}/lib/*.so ${BINTARGETDIR}/lib - -${CP} -f ${XERCESCROOT}/lib/*.sl ${BINTARGETDIR}/lib -ifeq (${MESSAGELOADER},ICONV) -ifeq (${PLATFORM},SOLARIS) - -${CP} -f ${XERCESCROOT}/lib/msg/*.cat ${BINTARGETDIR}/lib/msg -endif -ifeq (${PLATFORM},AIX) - -${CP} -f ${XERCESCROOT}/lib/msg/*.cat ${BINTARGETDIR}/lib/msg -endif -endif - -{RM} -rf ${BINTARGETDIR}/bin/obj - - @echo Populate the samples directory - @echo Copying sample files ... - -${CP} -f ${XERCESCROOT}/samples/config.guess ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/config.h.in ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/config.sub ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/configure ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/configure.in ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/install-sh ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/runConfigure ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/Makefile.in ${BINTARGETDIR}/samples - -${CP} -f ${XERCESCROOT}/samples/Makefile.incl ${BINTARGETDIR}/samples - - -${CP} -Rf ${XERCESCROOT}/samples/data/* ${BINTARGETDIR}/samples/data - -${CP} -Rf ${XERCESCROOT}/samples/SAXCount/* ${BINTARGETDIR}/samples/SAXCount - -${CP} -Rf ${XERCESCROOT}/samples/SAXPrint/* ${BINTARGETDIR}/samples/SAXPrint - -${CP} -Rf ${XERCESCROOT}/samples/DOMCount/* ${BINTARGETDIR}/samples/DOMCount - -${CP} -Rf ${XERCESCROOT}/samples/DOMPrint/* ${BINTARGETDIR}/samples/DOMPrint - -${CP} -Rf ${XERCESCROOT}/samples/IDOMCount/* ${BINTARGETDIR}/samples/IDOMCount - -${CP} -Rf ${XERCESCROOT}/samples/IDOMPrint/* ${BINTARGETDIR}/samples/IDOMPrint - -${CP} -Rf ${XERCESCROOT}/samples/Redirect/* ${BINTARGETDIR}/samples/Redirect - -${CP} -Rf ${XERCESCROOT}/samples/MemParse/* ${BINTARGETDIR}/samples/MemParse - - @echo Populate the docs directory - @echo Copying documentation .. - -${CP} -Rf ${XERCESCROOT}/doc/* ${BINTARGETDIR}/doc - -${CP} -Rf ${XERCESCROOT}/doc/apiDocs/* ${BINTARGETDIR}/doc/apiDocs - -${CP} ${XERCESCROOT}/Readme.html ${BINTARGETDIR} - -${CP} ${XERCESCROOT}/doc/license.html ${BINTARGETDIR} - - @echo Change the directory permissions - -{CHMODE} 644 `find ${BINTARGETDIR} -type f` - -{CHMODE} 755 ${BINTARGETDIR}/bin/* ${BINTARGETDIR}/lib/*.sl ${BINTARGETDIR}/lib/*.so ${BINTARGETDIR}/lib/*.a - -{CHMODE} +x ${BINTARGETDIR}/samples/runConfigure ${BINTARGETDIR}/samples/configure ${BINTARGETDIR}/samples/install-sh - -{CHMODE} +x ${BINTARGETDIR}/samples/config.sub ${BINTARGETDIR}/samples/config.guess ${BINTARGETDIR}/samples/config.status - -{CHMODE} 755 `find ${BINTARGETDIR} -type d` - -tarball:: copy - @echo Now package it all up using tar - @echo TARing up all files ... - ${CD} ${BINTARGETDIR}/.. - tar -cvf ${BINTARGETDIR}.tar ${BINTARGETDIR} - @echo Finally compress the files - @echo Compressing ${BINTARGETDIR}.tar ... - gzip ${BINTARGETDIR}.tar - -zip:: copy - ${CD} ${BINTARGETDIR}/.. - @echo ZIPping up all files ... - zip -r ${BINTARGETDIR}.zip ${BINTARGETDIR} - - -package_bin:: zip tarball - diff --git a/src/Makefile.incl b/src/Makefile.incl deleted file mode 100644 index 47a5d7912d3e3533ebdb10ae32c928eb311718e8..0000000000000000000000000000000000000000 --- a/src/Makefile.incl +++ /dev/null @@ -1,456 +0,0 @@ -# -# The Apache Software License, Version 1.1 -# -# Copyright (c) 1999-2001 The Apache Software Foundation. All rights -# reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# -# 3. The end-user documentation included with the redistribution, -# if any, must include the following acknowledgment: -# "This product includes software developed by the -# Apache Software Foundation (http://www.apache.org/)." -# Alternately, this acknowledgment may appear in the software itself, -# if and wherever such third-party acknowledgments normally appear. -# -# 4. The names "Xerces" and "Apache Software Foundation" must -# not be used to endorse or promote products derived from this -# software without prior written permission. For written -# permission, please contact apache\@apache.org. -# -# 5. Products derived from this software may not be called "Apache", -# nor may "Apache" appear in their name, without prior written -# permission of the Apache Software Foundation. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR -# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# ==================================================================== -# -# This software consists of voluntary contributions made by many -# individuals on behalf of the Apache Software Foundation, and was -# originally based on software copyright (c) 1999, International -# Business Machines, Inc., http://www.ibm.com . For more information -# on the Apache Software Foundation, please see -# <http://www.apache.org/>. -# -# -# $Id$ -# - -################################################################### -# IMPORTANT NOTE # -################################################################### -# Before you try to run the Makefile, make sure you have set # -# the following environment variables properly. # -# # -# export XERCESCROOT=<the directory where you installed XRECES-C> # -# # -# In case you intend to use either the ICU transcoder or the # -# ICU message loader, you must set ICUROOT correctly. # -# export ICUROOT=<the directory where you installed ICU> # -# # -# For netaccessor, if you intend to use libwww, then you must # -# also set another environment variable called LIBWWWROOT # -# export LIBWWWROOT=<the directory where you installed libwww> # -################################################################### - -################################################################### -# SPECIAL INSTRUCTIONS FOR OS/390 BATCH MODE # -################################################################### -# If you are going to do the OS390BATCH build, make sure you have # -# the OS390BATCH environment variable set. # -# # -# export OS390BATCH=1 # -# # -# Also, # -# # -# export LOADMOD=USERID.LOAD # -# export LOADEXP=USERID.EXP # -# # -# to specify your LOADMOD and the definition sidedeck dataset. # -################################################################### - -ALL: all - -XML_BUILD_OPTIONS = ${CXXFLAGS} - -XML_LIB_DIR = $(XERCESCROOT)/lib -XML_INC_DIR = $(XERCESCROOT)/include -XML_OBJ_DIR = ${XERCESCROOT}/obj/${PLATFORM} -XML_OBJ = ${XERCESCROOT}/obj -XML_INCL = -I$(XML_INC_DIR) -ifeq (${SYSOVR},OS400) -PLATFORM = OS400 -endif -TO = o -RM2 = rm -f -####################### PLATFORM DEPENDENCIES ##################### - -#=============== SOLARIS SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, SOLARIS) - ifeq (${CXX}, g++) - PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT - MAKE_SHARED = ${CXX} -D${PLATFORM} -shared ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \ - -licuuc -licudata -lm -lgen - else - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \ - -lm -lgen - endif - else - PLATFORM_COMPILE_OPTIONS = -KPIC -mt -xs -ptr$(XML_OBJ_DIR) \ - -features=rtti -D${PLATFORM} -D_REENTRANT - MAKE_SHARED = ${CXX} -D${PLATFORM} -G -ptr$(XML_OBJ_DIR) ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -G ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = -mt -licuuc -licudata ${LIBS} - else - ALLLIBS = -mt ${LIBS} - endif - endif - SHLIBSUFFIX=.so -endif - -#=============== UNIXWARE SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, UNIXWARE) - ifeq (${CXX}, g++) - PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT - MAKE_SHARED = ${CXX} -D${PLATFORM} -shared ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \ - -licuuc -licudata -lm -lw -lgen - else - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib \ - -lm -lw -lgen - endif - else - PLATFORM_COMPILE_OPTIONS = -KPIC -mt -xs \ - -D${PLATFORM} -D_REENTRANT - MAKE_SHARED = ${CXX} -D${PLATFORM} -G ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -G ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/local/lib -L/usr/ccs/lib \ - -licuuc -licudata -lm -lw -lC -lc -lgen - else - ALLLIBS = ${LIBS} -L/usr/local/lib -L/usr/ccs/lib \ - -lm -lw -lC -lc -lgen - endif - endif - SHLIBSUFFIX=.so -endif - -#================= PTX SPECIFIC OPTIONS =========================== -ifeq (${PLATFORM}, PTX) - -PLATFORM_CPP_COMPILER = c++ -PLATFORM_C_COMPILER = cc -ifeq (${TRANSCODER}, ICU) - PLATFORM_COMPILE_OPTIONS = -KPIC -Kthread -D${PLATFORM} - ALLLIBS = ${LIBS} -L${ICUROOT}/lib -lm -lgen -licuuc -else - PLATFORM_COMPILE_OPTIONS = -KPIC -Kthread -D${PLATFORM} - ALLLIBS = ${LIBS} -lm -lgen -endif -OBJ_OUT=${ALL_OBJECTS_DIR}/ -MAKE_SHARED = ${PLATFORM_CPP_COMPILER} -D${PLATFORM} -G ${LDFLAGS} -MAKE_SHARED_C = ${PLATFORM_C_COMPILER} -D${PLATFORM} -G ${LDFLAGS} -EXTRA_LINK_OPTIONS = -lm -lgen -SHLIBSUFFIX=.so -endif - -#================= AIX SPECIFIC OPTIONS =========================== -ifeq (${PLATFORM}, AIX) - -#PLATFORM_CPP_COMPILER = xlC_r -#PLATFORM_C_COMPILER = xlc_r -#ifdef ICUROOT -# ALLLIBS = ${LIBS} -L/usr/lpp/xlC/lib -L${ICUROOT}/lib -licuuc -licudata -lbsd -#else -# ALLLIBS = -L/usr/lpp/xlC/lib -lbsd -#endif - -ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lpp/xlC/lib -licuuc -licudata -else - ALLLIBS = ${LIBS} -L/usr/lpp/xlC/lib -endif -PLATFORM_COMPILE_OPTIONS = -qnotempinc -D_THREAD_SAFE -MAKE_SHARED = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} -MAKE_SHARED_C = makeC++SharedLib_r -p 5000 -brtl ${LDFLAGS} -EXTRA_LINK_OPTIONS = -bmap:$(XML_OBJ)/${LIBNAME}${VER}.map -SHLIBSUFFIX=.a -endif - -#================= OS400 SPECIFIC OPTIONS ========================== -ifeq (${PLATFORM}, OS400) -ifeq (${SYSOVR},OS400) -MYCC = /afs/rchland.ibm.com/usr2/phkramer/bin/tvcc.pl -else -MYCC = icc -endif -CXX = $(MYCC) -CC = $(MYCC) -JUSTCC = $(MYCC) -XML_INCL += -I${ICUROOT}/include -ifeq (${SYSOVR},OS400) -PLATFORM_COMPILE_OPTIONS = -qnotempinc -MAKE_SHARED = makeC++SharedLib_r -p 5000 ${LDFLAGS} -MAKE_SHARED_C = makeC++SharedLib_r -p 5000 ${LDFLAGS} -TO = qwobj -SHLIBSUFFIX=.a -else -PLATFORM_COMPILE_OPTIONS = -qnotempinc -D_MULTI_THREADED -D${PLATFORM} -PLATFORM_C_COMPILE_OPTIONS = -v -D_MULTI_THREADED -D${PLATFORM} -MAKE_SHARED = ld -v ${LDFLAGS} -MAKE_SHARED_C = ld -v ${LDFLAGS} -SHLIBSUFFIX=.o -endif -ifeq (${TRANSCODER}, ICU) -ifeq (${SYSOVR},OS400) -EXTRA_LINK_OPTIONS = -licuuc -licudata -lbsd -else -EXTRA_LINK_OPTIONS = -lQZUUC -endif -endif -EXTRA_COMPILE_OPTIONS = -I. -g -EXTRA_LINK_OPTIONS = -q OPTION='*DUPVAR *DUPPROC' - -RM2 = -del - -endif - -#=============== LINUX SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, LINUX) -PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT -MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS} -MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS} -ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata -lc -else - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -lc -endif -EXTRA_LINK_OPTIONS = -Xlinker -Map -Xlinker $(XML_OBJ)/${LIBNAME}${VER}.map -SHLIBSUFFIX=.so -endif - -#=============== FREEBSD SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, FREEBSD) -MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS} -MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS} -ifeq (${TRANSCODER}, ICU) - PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -I/usr/local/include - ALLLIBS = ${LIBS} -L/usr/local/lib -licuuc -L${ICUROOT} -licudata -lgcc -else - PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} - ALLLIBS = ${LIBS} -endif -SHLIBSUFFIX=.so -endif - -#=============== IRIX SPECIFIC OPTIONS ============================ -ifeq (${PLATFORM}, IRIX) -PLATFORM_COMPILE_OPTIONS = -LANG:pch -LANG:std -O2 \ - -D${PLATFORM} -D_REENTRANT \ - -I/usr/local/include -MAKE_SHARED = ${CXX} -D${PLATFORM} -shared ${LDFLAGS} -MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared ${LDFLAGS} -ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -lC -licuuc -licudata -else - ALLLIBS = ${LIBS} -lC -endif -SHLIBSUFFIX=.so -endif - - -#=============== OS2 SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, OS/2) -#PLATFORM_CPP_COMPILER = icc -#PLATFORM_C_COMPILER = icc -PLATFORM_LIBRARIES= CPPOM30.LIB os2386.lib mmpm2.lib -PLATFORM_COMPILE_OPTIONS = /C+ /Gd- /Ge- /Gm+ /Gs- /Re /J+ /Ms /Sm /Sn /Ss+ -MAKE_SHARED = ilink /nofree ${LDFLAGS} -MAKE_SHARED_C = ilink /nofree ${LDFLAGS} -EXTRA_LINK_OPTIONS = /map /nod /noe /noi /packcode /packdata /exepack /align:4 -SHLIBSUFFIX= .dll -ifneq (${DEBUG}, 1) -XML_BUILD_OPTIONS += -2 -endif -endif - -#================= HP SPECIFIC OPTIONS =========================== - -ifeq (${PLATFORM}, HPUX) - - OSVERDEFINE=HPUX11 - ifeq (${OSVER}, HPUX10) - OSVERDEFINE=HPUX10 - endif - - ifeq (${CXX}, aCC) - PLATFORM_COMPILE_OPTIONS = -D_HP_UX -DHPaCC \ - -D${OSVERDEFINE} +DAportable +Z - MAKE_SHARED = ${CXX} -D${PLATFORM} -b ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -b ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -licuuc -licudata -lCsup -lstream - else - ALLLIBS = ${LIBS} -lCsup -lstream - endif - SHLIBSUFFIX=.sl - else - TEMPLATESREPOSITORY = ${XML_OBJ_DIR}/ptrepository - COMMON_COMPILE_OPTIONS = -D_HP_UX -DXERCES_TMPLSINC \ - -D${OSVERDEFINE} +DAportable +eh +z -z +a1 +d - ifeq ($(MODULE), dom) - PLATFORM_COMPILE_OPTIONS = -DDOM_PROJ $(COMMON_COMPILE_OPTIONS) - else - PLATFORM_COMPILE_OPTIONS = $(COMMON_COMPILE_OPTIONS) -ptr${TEMPLATESREPOSITORY} - endif - MAKE_SHARED = $(CXX) $(PLATFORM_COMPILE_OPTIONS) $(XML_INCL) ${LDFLAGS} - MAKE_SHARED_C = $(CC) $(PLATFORM_COMPILE_OPTIONS) $(XML_INCL) ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -licuuc -licudata - else - ALLLIBS = ${LIBS} - endif - EXTRA_LINK_OPTIONS = -b -Wl,+s -Wl,-a,shared - SHLIBSUFFIX=.sl - endif -endif - - -#================ OS/390 SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, OS390) -PLATFORM_CPP_COMPILER = _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" c++ -PLATFORM_C_COMPILER = _CXX_CXXSUFFIX="cpp" _CXX_STEPS="-1" cc -PLATFORM_LIBRARIES= -## OS390BATCH -ifeq (${OS390BATCH},1) -PLATFORM_COMPILE_OPTIONS =-Wc,dll -W0,"langlvl(extended)" -D${PLATFORM} -D_OPEN_THREADS -D_XOPEN_SOURCE_EXTENDED -DOS390BATCH -else -PLATFORM_COMPILE_OPTIONS =-Wc,dll -W0,"langlvl(extended)" -D${PLATFORM} -D_OPEN_THREADS -D_XOPEN_SOURCE_EXTENDED -endif -MAKE_SHARED = ${PLATFORM_CPP_COMPILER} -D${PLATFORM} -W l,dll ${LDFLAGS} -MAKE_SHARED_C = ${PLATFORM_C_COMPILER} -D${PLATFORM} -W l,dll ${LDFLAGS} -ifeq (${TRANSCODER}, ICU) -## OS390BATCH - ifeq (${OS390BATCH},1) - ALLLIBS = "//'${LOADEXP}(IXMI20UC)'" - else - ALLLIBS = ${ICUROOT}/lib/libicuuc.20.0.x - endif -else - ALLLIBS = -endif -EXTRA_LINK_OPTIONS = -SHLIBSUFFIX=.dll -OS390SIDEDECK=.x -endif - -#=============== TRU64 SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, TRU64) - SHLIBSUFFIX=.so - MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared ${LDFLAGS} - ifeq (${CXX}, g++) - MAKE_SHARED = ${CXX} -D${PLATFORM} -shared ${LDFLAGS} - PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -licuuc -licudata -lc -lrt - else - ALLLIBS = ${LIBS} -lc -lrt - endif - else - MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -ptr ${XERCESCROOT}/.cxx_repository ${LDFLAGS} - PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} -ptr ${XERCESCROOT}/.cxx_repository - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc -licudata -lc -lrt - else - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -lc -lrt - endif - endif -endif - - -#=============== MacOS SPECIFIC OPTIONS ========================= -ifeq (${PLATFORM}, MACOSX) - PLATFORM_LIBRARIES = \ - -framework Carbon \ - -framework CoreFoundation \ - -framework CoreServices - PLATFORM_COMPILE_OPTIONS = \ - -D${PLATFORM} \ - -D_REENTRANT - MAKE_SHARED = ${CXX} -D${PLATFORM} -dynamiclib ${LDFLAGS} - MAKE_SHARED_C = ${CC} -D${PLATFORM} -dynamiclib ${LDFLAGS} - ifeq (${TRANSCODER}, ICU) - ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licu-uc -licud ata -lc - else - ALLLIBS = ${LIBS} -L/usr/lib - endif - SHLIBSUFFIX=.dylib -endif - - -###################### STANDARD TOOLS ############################# -ifeq (${PLATFORM}, OS400) -CP = -cp -fph -else -CP = -cp -fp -endif -ifeq (${PLATFORM}, FREEBSD) -CP = -cp -p -endif -RM = -rm -f -CAT = cat -AR = ar -cqv -CD = cd -CC1 = ${CXX} ${PLATFORM_COMPILE_OPTIONS} -JUST_CC = ${CC} -D${PLATFORM} -ECHO = echo -CREATE_DEPENDS_FILE = echo "" > depends -MAKE_DEPEND = ${CC1} -E -xM - - -##################### HELPER MACROS ############################### -DEPFILE = depends -LINKLIB = $(XML_LIB_DIR) - -######################### SUFFIX RULES ############################ -.SUFFIXES: -.SUFFIXES: .cpp .c .$(TO) - -# Tell make where the object files are for proper resolution of suffix rules -vpath %.$(TO) $(XML_OBJ_DIR) - -.cpp.$(TO): - $(CC1) -c $(XML_BUILD_OPTIONS) $(XML_DEF) $(XML_INCL) $(EXTRA_COMPILE_OPTIONS) -o $(XML_OBJ_DIR)/$(@) $(<) - -.c.$(TO): - $(JUST_CC) -c $(XML_BUILD_OPTIONS) $(XML_DEF) $(XML_INCL) $(EXTRA_COMPILE_OPTIONS) -o $(XML_OBJ_DIR)/$(@) $(<) - -.C.$(TO): - $(JUST_CC) -c $(XML_BUILD_OPTIONS) $(XML_DEF) $(XML_INCL) $(EXTRA_COMPILE_OPTIONS) -o $(XML_OBJ_DIR)/$(@) $(<) diff --git a/src/config.guess b/src/config.guess deleted file mode 100644 index 93e03c6888513b9be84e90f445c798de02ef713c..0000000000000000000000000000000000000000 --- a/src/config.guess +++ /dev/null @@ -1,1288 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 -# Free Software Foundation, Inc. - -version='2000-10-03' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Written by Per Bothner <bothner@cygnus.com>. -# Please send patches to <config-patches@gnu.org>. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit system type (host/target name). -# -# Only a few systems have been added to this list; please add others -# (but try to keep the structure clean). -# - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of this system. - -Operation modes: - -h, --help print this help, then exit - -V, --version print version number, then exit" - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case "$1" in - --version | --vers* | -V ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - exec >&2 - echo "$me: invalid option $1" - echo "$help" - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -# Use $HOST_CC if defined. $CC may point to a cross-compiler -if test x"$CC_FOR_BUILD" = x; then - if test x"$HOST_CC" != x; then - CC_FOR_BUILD="$HOST_CC" - else - if test x"$CC" != x; then - CC_FOR_BUILD="$CC" - else - CC_FOR_BUILD=cc - fi - fi -fi - - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -dummy=dummy-$$ -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # Netbsd (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # Determine the machine/vendor (is the vendor relevant). - case "${UNAME_MACHINE}" in - amiga) machine=m68k-unknown ;; - arm32) machine=arm-unknown ;; - atari*) machine=m68k-atari ;; - sun3*) machine=m68k-sun ;; - mac68k) machine=m68k-apple ;; - macppc) machine=powerpc-apple ;; - hp3[0-9][05]) machine=m68k-hp ;; - ibmrt|romp-ibm) machine=romp-ibm ;; - *) machine=${UNAME_MACHINE}-unknown ;; - esac - # The Operating System including object format. - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - # The OS release - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit 0 ;; - alpha:OSF1:*:*) - if test $UNAME_RELEASE = "V4.0"; then - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - fi - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - cat <<EOF >$dummy.s - .data -\$Lformat: - .byte 37,100,45,37,120,10,0 # "%d-%x\n" - - .text - .globl main - .align 4 - .ent main -main: - .frame \$30,16,\$26,0 - ldgp \$29,0(\$27) - .prologue 1 - .long 0x47e03d80 # implver \$0 - lda \$2,-1 - .long 0x47e20c21 # amask \$2,\$1 - lda \$16,\$Lformat - mov \$0,\$17 - not \$1,\$18 - jsr \$26,printf - ldgp \$29,0(\$26) - mov 0,\$16 - jsr \$26,exit - .end main -EOF - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - case `./$dummy` in - 0-0) - UNAME_MACHINE="alpha" - ;; - 1-0) - UNAME_MACHINE="alphaev5" - ;; - 1-1) - UNAME_MACHINE="alphaev56" - ;; - 1-101) - UNAME_MACHINE="alphapca56" - ;; - 2-303) - UNAME_MACHINE="alphaev6" - ;; - 2-307) - UNAME_MACHINE="alphaev67" - ;; - esac - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit 0 ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit 0 ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit 0 ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit 0;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit 0 ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit 0;; - SR2?01:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit 0;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit 0 ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit 0 ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit 0 ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit 0 ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit 0 ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit 0 ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit 0 ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit 0 ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit 0 ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit 0 ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit 0 ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit 0 ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD $dummy.c -o $dummy \ - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo mips-mips-riscos${UNAME_RELEASE} - exit 0 ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit 0 ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit 0 ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit 0 ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit 0 ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit 0 ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit 0 ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit 0 ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit 0 ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit 0 ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit 0 ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) - echo i386-ibm-aix - exit 0 ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - sed 's/^ //' << EOF >$dummy.c - #include <sys/systemcfg.h> - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo rs6000-ibm-aix3.2.5 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit 0 ;; - *:AIX:*:4) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=4.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit 0 ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit 0 ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit 0 ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit 0 ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit 0 ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit 0 ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit 0 ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit 0 ;; - 9000/[34678]??:HP-UX:*:*) - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include <stdlib.h> - #include <unistd.h> - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` - rm -f $dummy.c $dummy - esac - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit 0 ;; - 3050*:HI-UX:*:*) - sed 's/^ //' << EOF >$dummy.c - #include <unistd.h> - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - echo unknown-hitachi-hiuxwe2 - exit 0 ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit 0 ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit 0 ;; - *9??*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit 0 ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit 0 ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit 0 ;; - i?86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit 0 ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit 0 ;; - hppa*:OpenBSD:*:*) - echo hppa-unknown-openbsd - exit 0 ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit 0 ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit 0 ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit 0 ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit 0 ;; - CRAY*X-MP:*:*:*) - echo xmp-cray-unicos - exit 0 ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} - exit 0 ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ - exit 0 ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*T3E:*:*:*) - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit 0 ;; - CRAY-2:*:*:*) - echo cray2-cray-unicos - exit 0 ;; - F300:UNIX_System_V:*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit 0 ;; - F301:UNIX_System_V:*:*) - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` - exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit 0 ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit 0 ;; - *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit 0 ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit 0 ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit 0 ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i386-pc-interix - exit 0 ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit 0 ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit 0 ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit 0 ;; - *:GNU:*:*) - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit 0 ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit 0 ;; - *:Linux:*:*) - - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - ld_supported_emulations=`cd /; ld --help 2>&1 \ - | sed -ne '/supported emulations:/!d - s/[ ][ ]*/ /g - s/.*supported emulations: *// - s/ .*// - p'` - case "$ld_supported_emulations" in - *ia64) - echo "${UNAME_MACHINE}-unknown-linux" - exit 0 - ;; - i?86linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 - ;; - elf_i?86) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - i?86coff) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 - ;; - sparclinux) - echo "${UNAME_MACHINE}-unknown-linux-gnuaout" - exit 0 - ;; - armlinux) - echo "${UNAME_MACHINE}-unknown-linux-gnuaout" - exit 0 - ;; - elf32arm*) - echo "${UNAME_MACHINE}-unknown-linux-gnuoldld" - exit 0 - ;; - armelf_linux*) - echo "${UNAME_MACHINE}-unknown-linux-gnu" - exit 0 - ;; - m68klinux) - echo "${UNAME_MACHINE}-unknown-linux-gnuaout" - exit 0 - ;; - elf32ppc | elf32ppclinux) - # Determine Lib Version - cat >$dummy.c <<EOF -#include <features.h> -#if defined(__GLIBC__) -extern char __libc_version[]; -extern char __libc_release[]; -#endif -main(argc, argv) - int argc; - char *argv[]; -{ -#if defined(__GLIBC__) - printf("%s %s\n", __libc_version, __libc_release); -#else - printf("unkown\n"); -#endif - return 0; -} -EOF - LIBC="" - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy | grep 1\.99 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.c $dummy - echo powerpc-unknown-linux-gnu${LIBC} - exit 0 - ;; - shelf_linux) - echo "${UNAME_MACHINE}-unknown-linux-gnu" - exit 0 - ;; - esac - - if test "${UNAME_MACHINE}" = "alpha" ; then - cat <<EOF >$dummy.s - .data - \$Lformat: - .byte 37,100,45,37,120,10,0 # "%d-%x\n" - - .text - .globl main - .align 4 - .ent main - main: - .frame \$30,16,\$26,0 - ldgp \$29,0(\$27) - .prologue 1 - .long 0x47e03d80 # implver \$0 - lda \$2,-1 - .long 0x47e20c21 # amask \$2,\$1 - lda \$16,\$Lformat - mov \$0,\$17 - not \$1,\$18 - jsr \$26,printf - ldgp \$29,0(\$26) - mov 0,\$16 - jsr \$26,exit - .end main -EOF - LIBC="" - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - case `./$dummy` in - 0-0) - UNAME_MACHINE="alpha" - ;; - 1-0) - UNAME_MACHINE="alphaev5" - ;; - 1-1) - UNAME_MACHINE="alphaev56" - ;; - 1-101) - UNAME_MACHINE="alphapca56" - ;; - 2-303) - UNAME_MACHINE="alphaev6" - ;; - 2-307) - UNAME_MACHINE="alphaev67" - ;; - esac - - objdump --private-headers $dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 - elif test "${UNAME_MACHINE}" = "mips" ; then - cat >$dummy.c <<EOF -#ifdef __cplusplus -#include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif -#ifdef __MIPSEB__ - printf ("%s-unknown-linux-gnu\n", argv[1]); -#endif -#ifdef __MIPSEL__ - printf ("%sel-unknown-linux-gnu\n", argv[1]); -#endif - return 0; -} -EOF - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - elif test "${UNAME_MACHINE}" = "s390"; then - echo s390-ibm-linux && exit 0 - elif test "${UNAME_MACHINE}" = "x86_64"; then - echo x86_64-unknown-linux-gnu && exit 0 - else - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - test -z "$ld_supported_emulations" \ - && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; - esac - # Determine whether the default compiler is a.out or elf - cat >$dummy.c <<EOF -#include <features.h> -#ifdef __cplusplus -#include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} -EOF - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 - fi ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) - echo i386-sequent-sysv4 - exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit 0 ;; - i?86:*:5:7*) - # Fixed at (any) Pentium or better - UNAME_MACHINE=i586 - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi - exit 0 ;; - i?86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL - elif /bin/uname -X 2>/dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit 0 ;; - i?86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit 0 ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit 0 ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit 0 ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit 0 ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit 0 ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit 0 ;; - M68*:*:R3V[567]*:*) - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4.3${OS_REL} && exit 0 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit 0 ;; - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit 0 ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit 0 ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit 0 ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says <Richard.M.Bartel@ccMail.Census.GOV> - echo i586-unisys-sysv4 - exit 0 ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes <hewes@openmarket.com>. - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit 0 ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit 0 ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit 0 ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit 0 ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit 0 ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit 0 ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit 0 ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit 0 ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit 0 ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit 0 ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit 0 ;; - *:Darwin:*:*) - echo `uname -p`-apple-darwin${UNAME_RELEASE} - exit 0 ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - if test "${UNAME_MACHINE}" = "x86pc"; then - UNAME_MACHINE=pc - fi - echo `uname -p`-${UNAME_MACHINE}-nto-qnx - exit 0 ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit 0 ;; - NSR-[KW]:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit 0 ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit 0 ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit 0 ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit 0 ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -cat >$dummy.c <<EOF -#ifdef _SEQUENT_ -# include <sys/types.h> -# include <sys/utsname.h> -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include <sys/param.h> - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -#if !defined (ultrix) - printf ("vax-dec-bsd\n"); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 -rm -f $dummy.c $dummy - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit 0 ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit 0 ;; - c34*) - echo c34-convex-bsd - exit 0 ;; - c38*) - echo c38-convex-bsd - exit 0 ;; - c4*) - echo c4-convex-bsd - exit 0 ;; - esac -fi - -cat >&2 <<EOF -$0: unable to guess system type - -The $version version of this script cannot recognize your system type. -Please download the most up to date version of the config scripts: - - ftp://ftp.gnu.org/pub/gnu/config/ - -If the version you run ($0) is already up to date, please -send the following data and any information you think might be -pertinent to <config-patches@gnu.org> in order to provide the needed -information to handle your system. - -config.guess version = $version - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "version='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/src/config.h.in b/src/config.h.in deleted file mode 100644 index f7759c48ca582e1552013836245cc23436d77386..0000000000000000000000000000000000000000 --- a/src/config.h.in +++ /dev/null @@ -1,19 +0,0 @@ -/* config.h.in. Generated automatically from configure.in by autoheader. */ - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to signed char if not in <sys/types.h> */ -#undef XMLByte - -/* Define if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define if you have the m library (-lm). */ -#undef HAVE_LIBM - -/* Define if you have the pthread library (-lpthread). */ -#undef HAVE_LIBPTHREAD - -/* Define if you have the pthreads library (-lpthreads). */ -#undef HAVE_LIBPTHREADS diff --git a/src/config.sub b/src/config.sub deleted file mode 100644 index 42fc991d08ac5f6487c41b74d07c4071f062ae17..0000000000000000000000000000000000000000 --- a/src/config.sub +++ /dev/null @@ -1,1328 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script, version 1.1. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 -# Free Software Foundation, Inc. - -version='2000-09-11' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# Please send patches to <config-patches@gnu.org>. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -V, --version print version number, then exit" - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case "$1" in - --version | --vers* | -V ) - echo "$version" ; exit 0 ;; - --help | --h* | -h ) - echo "$usage"; exit 0 ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - exec >&2 - echo "$me: invalid option $1" - echo "$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit 0;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ - | arme[lb] | armv[2345] | armv[345][lb] | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 \ - | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ - | hppa64 \ - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ - | alphaev6[78] \ - | we32k | ns16k | clipper | i370 | sh | sh[34] \ - | powerpc | powerpcle \ - | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ - | mips64orion | mips64orionel | mipstx39 | mipstx39el \ - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ - | mips64vr5000 | miprs64vr5000el | mcore \ - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ - | thumb | d10v | d30v | fr30 | avr) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i[234567]86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. - # FIXME: clean up the formatting here. - vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ - | xmp-* | ymp-* \ - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ - | hppa2.0n-* | hppa64-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ - | alphaev6[78]-* \ - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ - | clipper-* | orion-* \ - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ - | mipstx39-* | mipstx39el-* | mcore-* \ - | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ - | bs2000-* | tic54x-* | c54x-* | x86_64-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | ymp) - basic_machine=ymp-cray - os=-unicos - ;; - cray2) - basic_machine=cray2-cray - os=-unicos - ;; - [ctj]90-cray) - basic_machine=c90-cray - os=-unicos - ;; - crds | unos) - basic_machine=m68k-crds - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i[34567]86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i[34567]86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i[34567]86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - i386-go32 | go32) - basic_machine=i386-unknown - os=-go32 - ;; - i386-mingw32 | mingw32) - basic_machine=i386-unknown - os=-mingw32 - ;; - i[34567]86-pw32 | pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mipsel*-linux*) - basic_machine=mipsel-unknown - os=-linux-gnu - ;; - mips*-linux*) - basic_machine=mips-unknown - os=-linux-gnu - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - msdos) - basic_machine=i386-unknown - os=-msdos - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - np1) - basic_machine=np1-gould - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | k6 | nexen) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon) - basic_machine=i686-pc - ;; - pentiumii | pentium2) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexen-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=rs6000-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sparclite-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=t3e-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xmp) - basic_machine=xmp-cray - os=-unicos - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - mips) - if [ x$os = x-linux-gnu ]; then - basic_machine=mips-unknown - else - basic_machine=mips-mips - fi - ;; - romp) - basic_machine=romp-ibm - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh3 | sh4) - base_machine=sh-unknown - ;; - sparc | sparcv9) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - c4x*) - basic_machine=c4x-none - os=-coff - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ - | -openstep* | -oskit* | -conix* | -pw32*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i[34567]86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto*) - os=-nto-qnx - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -wince*) - os=-wince - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -*MiNT) - os=-mint - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-ibm) - os=-aix - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f301-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -vxsim* | -vxworks*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -*MiNT) - vendor=atari - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit 0 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "version='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/src/configure b/src/configure deleted file mode 100755 index b8953675a41b2d230efa3a12b395e14d4438b0e1..0000000000000000000000000000000000000000 --- a/src/configure +++ /dev/null @@ -1,1698 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=util/XercesDefs.hpp - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:529: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:559: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # Extract the first word of "cl", so it can be a program name with args. -set dummy cl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:610: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -cat > conftest.$ac_ext << EOF - -#line 653 "configure" -#include "confdefs.h" - -main(){return(0);} -EOF -if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:689: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:717: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi - -for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:753: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CXX="$ac_cv_prog_CXX" -if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CXX" && break -done -test -n "$CXX" || CXX="gcc" - - -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:785: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 - -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - -cat > conftest.$ac_ext << EOF - -#line 796 "configure" -#include "confdefs.h" - -int main(){return(0);} -EOF -if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cxx_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cxx_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 -if test $ac_cv_prog_cxx_works = no; then - { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:827: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 -cross_compiling=$ac_cv_prog_cxx_cross - -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:832: checking whether we are using GNU C++" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.C <<EOF -#ifdef __GNUC__ - yes; -#endif -EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gxx" 1>&6 - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:860: checking whether ${CXX-g++} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi - -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# ./install, which can be erroneously created by make from ./install.sh. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:922: checking for a BSD compatible install" >&5 -if test -z "$INSTALL"; then -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi -fi -echo "$ac_t""$INSTALL" 1>&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -# Extract the first word of "autoconf", so it can be a program name with args. -set dummy autoconf; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:977: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AUTOCONF"; then - ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AUTOCONF="autoconf" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="true" -fi -fi -AUTOCONF="$ac_cv_prog_AUTOCONF" -if test -n "$AUTOCONF"; then - echo "$ac_t""$AUTOCONF" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - - -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1007: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext <<EOF -#line 1022 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext <<EOF -#line 1039 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext <<EOF -#line 1056 "configure" -#include "confdefs.h" -#include <assert.h> -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1087: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1092 "configure" -#include "confdefs.h" -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -cat > conftest.$ac_ext <<EOF -#line 1117 "configure" -#include "confdefs.h" -#include <string.h> -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -cat > conftest.$ac_ext <<EOF -#line 1135 "configure" -#include "confdefs.h" -#include <stdlib.h> -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - rm -rf conftest* - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -if test "$cross_compiling" = yes; then - : -else - cat > conftest.$ac_ext <<EOF -#line 1156 "configure" -#include "confdefs.h" -#include <ctype.h> -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int main () { int i; for (i = 0; i < 256; i++) -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); -exit (0); } - -EOF -if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no -fi -rm -fr conftest* -fi - -fi -fi - -echo "$ac_t""$ac_cv_header_stdc" 1>&6 -if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -echo $ac_n "checking for XMLByte""... $ac_c" 1>&6 -echo "configure:1191: checking for XMLByte" >&5 -if eval "test \"`echo '$''{'ac_cv_type_XMLByte'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 1196 "configure" -#include "confdefs.h" -#include <sys/types.h> -#if STDC_HEADERS -#include <stdlib.h> -#include <stddef.h> -#endif -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])XMLByte[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_XMLByte=yes -else - rm -rf conftest* - ac_cv_type_XMLByte=no -fi -rm -f conftest* - -fi -echo "$ac_t""$ac_cv_type_XMLByte" 1>&6 -if test $ac_cv_type_XMLByte = no; then - cat >> confdefs.h <<\EOF -#define XMLByte unsigned char -EOF - -fi - - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:1231: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - - -case "${host}" in - *-*-solaris*) platform=SOLARIS ;; - *-*-sysv5*) platform=UNIXWARE ;; - *-*-UnixWare*) platform=UNIXWARE ;; - *-*-unixware*) platform=UNIXWARE ;; - *-*-linux*) platform=LINUX ;; - *-*-freebsd*) platform=FREEBSD ;; - *-*-irix*) platform=IRIX ;; - *-*-aix*) platform=AIX - case "${host}" in - *-*-aix4.1*) osver=AIX41;; - *-*-aix4.2*) osver=AIX42;; - *-*-aix4.3*) osver=AIX43;; - *-*-aix4.*) osver=AIX43;; - esac;; - *-sequent-*) platform=PTX ;; - *-*-hp*) platform=HPUX ; - case "${host}" in - *-*-hpux11*) osver=HPUX11;; - *-*-hpux10*) osver=HPUX10;; - *) osver=HPUX11;; - esac;; - *-*-mvs*) platform=OS390 ;; - *-*-os400*) platform=OS400 ;; - *-*-OS400*) platform=OS400 ;; - *-*-osf*) platform=TRU64 ;; - *-apple-*) platform=MACOSX ;; - *) platform=UNKNOWN ;; -esac - - -cxx=${CXX} - - -cc=${CC} - - - -prefix_include='${PREFIX}/include/xercesc' - - - - -cxxflags=${CXXFLAGS} - - -cppflags=${CPPFLAGS} - - -cflags=${CFLAGS} - - -ldflags=${LDFLAGS} - - -libs=${LIBS} - - -uselibwww=${USELIBWWW} - - -messageloader=${MESSAGELOADER} - - -transcoder=${TRANSCODER} - - -netaccessor=${NETACCESSOR} - - -threads=${THREADS} - - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <<EOF -#! /bin/sh -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir -ac_given_INSTALL="$INSTALL" - -trap 'rm -fr `echo "Makefile \ -util/Makefile \ -util/Transcoders/ICU/Makefile \ -util/Transcoders/Iconv/Makefile \ -util/Transcoders/Iconv390/Makefile \ -util/Transcoders/Iconv400/Makefile \ -util/Transcoders/IconvFBSD/Makefile \ -util/Transcoders/MacOSUnicodeConverter/Makefile \ -util/Platforms/Makefile \ -util/Platforms/Solaris/Makefile \ -util/Platforms/AIX/Makefile \ -util/Platforms/Linux/Makefile \ -util/Platforms/FreeBSD/Makefile \ -util/Platforms/HPUX/Makefile \ -util/Platforms/OS390/Makefile \ -util/Platforms/OS400/Makefile \ -util/Platforms/IRIX/Makefile \ -util/Platforms/PTX/Makefile \ -util/Platforms/UnixWare/Makefile \ -util/Platforms/Tru64/Makefile \ -util/Platforms/MacOS/Makefile \ -util/Compilers/Makefile \ -util/MsgLoaders/InMemory/Makefile \ -util/MsgLoaders/ICU/Makefile \ -util/MsgLoaders/MsgCatalog/Makefile \ -util/MsgLoaders/MsgFile/Makefile \ -util/NetAccessors/Socket/Makefile \ -util/NetAccessors/libWWW/Makefile \ -util/NetAccessors/MacOSURLAccess/Makefile \ -util/regx/Makefile \ -validators/Makefile \ -validators/common/Makefile \ -validators/datatype/Makefile \ -validators/DTD/Makefile \ -validators/schema/Makefile \ -validators/schema/identity/Makefile \ -framework/Makefile \ -dom/Makefile \ -idom/Makefile \ -parsers/Makefile \ -internal/Makefile \ -sax/Makefile \ -sax2/Makefile \ -../obj/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS <<EOF - -# Protect against being on the right side of a sed subst in config.status. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@CC@%$CC%g -s%@CXX@%$CXX%g -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g -s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@AUTOCONF@%$AUTOCONF%g -s%@CPP@%$CPP%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@platform@%$platform%g -s%@cxx@%$cxx%g -s%@cc@%$cc%g -s%@prefix_include@%$prefix_include%g -s%@osver@%$osver%g -s%@cxxflags@%$cxxflags%g -s%@cppflags@%$cppflags%g -s%@cflags@%$cflags%g -s%@ldflags@%$ldflags%g -s%@libs@%$libs%g -s%@uselibwww@%$uselibwww%g -s%@messageloader@%$messageloader%g -s%@transcoder@%$transcoder%g -s%@netaccessor@%$netaccessor%g -s%@threads@%$threads%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <<EOF - -CONFIG_FILES=\${CONFIG_FILES-"Makefile \ -util/Makefile \ -util/Transcoders/ICU/Makefile \ -util/Transcoders/Iconv/Makefile \ -util/Transcoders/Iconv390/Makefile \ -util/Transcoders/Iconv400/Makefile \ -util/Transcoders/IconvFBSD/Makefile \ -util/Transcoders/MacOSUnicodeConverter/Makefile \ -util/Platforms/Makefile \ -util/Platforms/Solaris/Makefile \ -util/Platforms/AIX/Makefile \ -util/Platforms/Linux/Makefile \ -util/Platforms/FreeBSD/Makefile \ -util/Platforms/HPUX/Makefile \ -util/Platforms/OS390/Makefile \ -util/Platforms/OS400/Makefile \ -util/Platforms/IRIX/Makefile \ -util/Platforms/PTX/Makefile \ -util/Platforms/UnixWare/Makefile \ -util/Platforms/Tru64/Makefile \ -util/Platforms/MacOS/Makefile \ -util/Compilers/Makefile \ -util/MsgLoaders/InMemory/Makefile \ -util/MsgLoaders/ICU/Makefile \ -util/MsgLoaders/MsgCatalog/Makefile \ -util/MsgLoaders/MsgFile/Makefile \ -util/NetAccessors/Socket/Makefile \ -util/NetAccessors/libWWW/Makefile \ -util/NetAccessors/MacOSURLAccess/Makefile \ -util/regx/Makefile \ -validators/Makefile \ -validators/common/Makefile \ -validators/datatype/Makefile \ -validators/DTD/Makefile \ -validators/schema/Makefile \ -validators/schema/identity/Makefile \ -framework/Makefile \ -dom/Makefile \ -idom/Makefile \ -parsers/Makefile \ -internal/Makefile \ -sax/Makefile \ -sax2/Makefile \ -../obj/Makefile"} -EOF -cat >> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -s%@INSTALL@%$INSTALL%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - -EOF -cat >> $CONFIG_STATUS <<EOF -chmod +x ./runConfigure -EOF -cat >> $CONFIG_STATUS <<\EOF -chmod +x ./configure -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - -echo -echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html -echo Still cannot resolve it? Find out if someone else had the same problem before. -echo Go to http://marc.theaimsgroup.com/?l=xerces-c-dev diff --git a/src/configure.in b/src/configure.in deleted file mode 100644 index 2d674855bc7cdf65d18c423b382b234f36756043..0000000000000000000000000000000000000000 --- a/src/configure.in +++ /dev/null @@ -1,153 +0,0 @@ -dnl Process this file with autoconf to produce a configure script -AC_INIT(util/XercesDefs.hpp) -dnl AC_CONFIG_HEADER(common/icucfg.h) - -dnl AM_INIT_AUTOMAKE(xerces-c,1.6.0) -dnl Checks for programs -AC_PROG_CC -AC_PROG_CXX -AC_PROG_INSTALL -AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) - -dnl -dnl Do not know how to use this macro, so comment it out. -dnl -dnl special pthread handling (AIX uses pthreads instead of pthread) -dnl AC_CHECK_LIB(pthread, pthread_create) -dnl if test $ac_cv_lib_pthread_pthread_create = no; then -dnl AC_CHECK_LIB(pthreads, pthread_create) -dnl fi -dnl - -dnl Checks for typedefs -AC_CHECK_TYPE(XMLByte,unsigned char) - -dnl Determine the host system and Makefile fragment -AC_CANONICAL_HOST - -dnl Platform-specific Makefile setup -case "${host}" in - *-*-solaris*) platform=SOLARIS ;; - *-*-sysv5*) platform=UNIXWARE ;; - *-*-UnixWare*) platform=UNIXWARE ;; - *-*-unixware*) platform=UNIXWARE ;; - *-*-linux*) platform=LINUX ;; - *-*-freebsd*) platform=FREEBSD ;; - *-*-irix*) platform=IRIX ;; - *-*-aix*) platform=AIX - case "${host}" in - *-*-aix4.1*) osver=AIX41;; - *-*-aix4.2*) osver=AIX42;; - *-*-aix4.3*) osver=AIX43;; - *-*-aix4.*) osver=AIX43;; - esac;; - *-sequent-*) platform=PTX ;; - *-*-hp*) platform=HPUX ; - case "${host}" in - *-*-hpux11*) osver=HPUX11;; - *-*-hpux10*) osver=HPUX10;; - *) osver=HPUX11;; - esac;; - *-*-mvs*) platform=OS390 ;; - *-*-os400*) platform=OS400 ;; - *-*-OS400*) platform=OS400 ;; - *-*-osf*) platform=TRU64 ;; - *-apple-*) platform=MACOSX ;; - *) platform=UNKNOWN ;; -esac -AC_SUBST(platform) - -cxx=${CXX} -AC_SUBST(cxx) - -cc=${CC} -AC_SUBST(cc) - -AC_SUBST(prefix) -prefix_include='${PREFIX}/include/xercesc' -AC_SUBST(prefix_include) - -AC_SUBST(osver) - -cxxflags=${CXXFLAGS} -AC_SUBST(cxxflags) - -cppflags=${CPPFLAGS} -AC_SUBST(cppflags) - -cflags=${CFLAGS} -AC_SUBST(cflags) - -ldflags=${LDFLAGS} -AC_SUBST(ldflags) - -libs=${LIBS} -AC_SUBST(libs) - -uselibwww=${USELIBWWW} -AC_SUBST(uselibwww) - -messageloader=${MESSAGELOADER} -AC_SUBST(messageloader) - -transcoder=${TRANSCODER} -AC_SUBST(transcoder) - -netaccessor=${NETACCESSOR} -AC_SUBST(netaccessor) - -threads=${THREADS} -AC_SUBST(threads) - -dnl output the Makefiles -AC_OUTPUT([Makefile \ -util/Makefile \ -util/Transcoders/ICU/Makefile \ -util/Transcoders/Iconv/Makefile \ -util/Transcoders/Iconv390/Makefile \ -util/Transcoders/Iconv400/Makefile \ -util/Transcoders/IconvFBSD/Makefile \ -util/Transcoders/MacOSUnicodeConverter/Makefile \ -util/Platforms/Makefile \ -util/Platforms/Solaris/Makefile \ -util/Platforms/AIX/Makefile \ -util/Platforms/Linux/Makefile \ -util/Platforms/FreeBSD/Makefile \ -util/Platforms/HPUX/Makefile \ -util/Platforms/OS390/Makefile \ -util/Platforms/OS400/Makefile \ -util/Platforms/IRIX/Makefile \ -util/Platforms/PTX/Makefile \ -util/Platforms/UnixWare/Makefile \ -util/Platforms/Tru64/Makefile \ -util/Platforms/MacOS/Makefile \ -util/Compilers/Makefile \ -util/MsgLoaders/InMemory/Makefile \ -util/MsgLoaders/ICU/Makefile \ -util/MsgLoaders/MsgCatalog/Makefile \ -util/MsgLoaders/MsgFile/Makefile \ -util/NetAccessors/Socket/Makefile \ -util/NetAccessors/libWWW/Makefile \ -util/NetAccessors/MacOSURLAccess/Makefile \ -util/regx/Makefile \ -validators/Makefile \ -validators/common/Makefile \ -validators/datatype/Makefile \ -validators/DTD/Makefile \ -validators/schema/Makefile \ -validators/schema/identity/Makefile \ -framework/Makefile \ -dom/Makefile \ -idom/Makefile \ -parsers/Makefile \ -internal/Makefile \ -sax/Makefile \ -sax2/Makefile \ -../obj/Makefile], -[chmod +x ./configure], -[chmod +x ./runConfigure],) - -echo -echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html -echo Still cannot resolve it? Find out if someone else had the same problem before. -echo Go to http://marc.theaimsgroup.com/?l=xerces-c-dev diff --git a/src/install-sh b/src/install-sh deleted file mode 100644 index e9de23842dcd44d2953129c866b1ad25f7e1f1d9..0000000000000000000000000000000000000000 --- a/src/install-sh +++ /dev/null @@ -1,251 +0,0 @@ -#!/bin/sh -# -# install - install a program, script, or datafile -# This comes from X11R5 (mit/util/scripts/install.sh). -# -# Copyright 1991 by the Massachusetts Institute of Technology -# -# Permission to use, copy, modify, distribute, and sell this software and its -# documentation for any purpose is hereby granted without fee, provided that -# the above copyright notice appear in all copies and that both that -# copyright notice and this permission notice appear in supporting -# documentation, and that the name of M.I.T. not be used in advertising or -# publicity pertaining to distribution of the software without specific, -# written prior permission. M.I.T. makes no representations about the -# suitability of this software for any purpose. It is provided "as is" -# without express or implied warranty. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - chmodcmd="" - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi - - pathcomp="${pathcomp}/" -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - - -exit 0 diff --git a/src/runConfigure b/src/runConfigure deleted file mode 100755 index b32fa14be6b34f133e22415ca12878888d8209f4..0000000000000000000000000000000000000000 --- a/src/runConfigure +++ /dev/null @@ -1,571 +0,0 @@ -#!/bin/sh -# -# The Apache Software License, Version 1.1 -# -# Copyright (c) 1999-2001 The Apache Software Foundation. All rights -# reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# -# 3. The end-user documentation included with the redistribution, -# if any, must include the following acknowledgment: -# "This product includes software developed by the -# Apache Software Foundation (http://www.apache.org/)." -# Alternately, this acknowledgment may appear in the software itself, -# if and wherever such third-party acknowledgments normally appear. -# -# 4. The names "Xerces" and "Apache Software Foundation" must -# not be used to endorse or promote products derived from this -# software without prior written permission. For written -# permission, please contact apache\@apache.org. -# -# 5. Products derived from this software may not be called "Apache", -# nor may "Apache" appear in their name, without prior written -# permission of the Apache Software Foundation. -# -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR -# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# ==================================================================== -# -# This software consists of voluntary contributions made by many -# individuals on behalf of the Apache Software Foundation, and was -# originally based on software copyright (c) 1999, International -# Business Machines, Inc., http://www.ibm.com . For more information -# on the Apache Software Foundation, please see -# <http://www.apache.org/>. -# -# -# $Id$ -# -# - -# -# runConfigure: -# This script will run the "configure" script for the appropriate -# platform. Only supported platforms are recognized. -# -# The following variables are defined and exported at the end of this -# script. -# -# LIBS -# LDFLAGS -# CXXFLAGS -# TRANSCODER -# - -usage() -{ - echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms" - echo "Usage: runConfigure \"options\"" - echo " where options may be any of the following:" - echo " -p <platform> (accepts 'aix', 'linux', 'freebsd', 'solaris', - 'hp-10', 'hp-11', 'unixware', 'os400', 'irix', 'ptx', 'tru64', 'macosx' )" - echo " -c <C compiler name> (e.g. gcc, cc, xlc_r, icc)" - echo " -x <C++ compiler name> (e.g. g++, CC, xlC_r, icc, c++)" - echo " -d (specifies that you want to build debug version)" - echo " -m <message loader> can be 'inmem', 'icu', 'MsgFile' or 'iconv'" - echo " -n <net accessor> can be 'fileonly', 'libwww', 'socket' or 'native'" - echo " -t <transcoder> can be 'icu', 'Iconv400', 'Iconv390', 'IconvFBSD' or 'native'" - echo " -r <thread option> can be 'pthread' or 'dce' (only used on aix, HP-11 and solaris) or 'sproc' (only on IRIX) or 'none'" - echo " -l <extra linker options>" - echo " -z <extra compiler options>" - echo " -P <install-prefix>" - echo " -C <any one extra configure options>" - echo " -h (to get help on the above commands)" -} - -ERROR_EXIT_CODE=1 - -if test ${1}o = "o"; then - usage - exit ${ERROR_EXIT_CODE} -fi - -if test ${XERCESCROOT}o = "o"; then - echo ERROR : You have not set your XERCESCROOT environment variable - echo Though this environment variable has nothing to do with creating makefiles, - echo this is just a general warning to prevent you from pitfalls in future. Please - echo set an environment variable called XERCESCROOT to indicate where you installed - echo the XERCES-C files, and run this command again to proceed. See the documentation - echo for an example if you are still confused. - exit ${ERROR_EXIT_CODE} -fi - -if test $1 = "-h"; then - usage - exit ${ERROR_EXIT_CODE} -fi - -# Check the command line parameters -if test -x /usr/bin/getopt; then -getoptErr=`getopt p:c:x:dm:n:t:r:l:z:P:C:h $*` -else -getoptErr=`getopts p:c:x:dm:n:t:r:l:z:P:C:h `$*`` -fi -if [ $? != 0 ] - then - usage - exit ${ERROR_EXIT_CODE} -fi - -# Now get the command line parameters -if test -x /usr/bin/getopt; then -set -- `getopt p:c:x:dm:n:t:r:l:z:P:C:h $*` -else -set -- `getopts p:c:x:dm:n:t:r:l:z:P:C:h `$*`` -fi - -# Set up the default values for each parameter -debug=off # by default debug is off -transcoder=native # by default use native transcoder -msgloader=inmem # by default use inmem message loader -netaccessor=socket # by default use socket (can do HTTP URL's) -thread=pthread # by default use POSIX threads -configureoptions="" - -while [ $# -gt 0 ] - do - case $1 in - -p) - platform=$2; shift 2;; - - -c) - ccompiler=$2; shift 2;; - - -x) - cppcompiler=$2; shift 2;; - - -d) - debug=on; shift;; - - -m) - msgloader=$2; shift 2;; - - -n) - netaccessor=$2; shift 2;; - - -t) - transcoder=$2; shift 2;; - - -r) - thread=$2; shift 2;; - - -l) - linkeroptions="$linkeroptions $2"; shift 2;; - - -z) - compileroptions="$compileroptions $2"; shift 2;; - - -P) - configureoptions="$configureoptions --prefix=$2"; shift 2;; - - -C) - configureoptions="$configureoptions $2"; shift 2;; - - -h) - usage - exit ${ERROR_EXIT_CODE};; - - --) - shift; break;; - - *) - echo "unknown option $1" - usage - exit ${ERROR_EXIT_CODE};; - esac -done - -echo "Generating makefiles with the following options ..." -echo "Platform: $platform" -echo "C Compiler: $ccompiler" -echo "C++ Compiler: $cppcompiler" -echo "Extra compile options: $compileroptions" -echo "Extra link options: $linkeroptions" -echo "Message Loader: $msgloader" -echo "Net Accessor: $netaccessor" -echo "Transcoder: $transcoder" -echo "Thread option: $thread" -echo "Extra configure options: $configureoptions" - - -# -# Now check if the options are correct or not, bail out if incorrect -# - -case $platform in - aix | linux | freebsd | solaris | hp-10 | hp-11 | irix | unixware | os400 | ptx | tru64 | macosx) - # platform has been recognized - ;; - *) - echo "I do not recognize the platform '$platform'. Please type '${0} -h' for help." - exit ${ERROR_EXIT_CODE};; -esac - -# -# Enable debugging or not... -# - -if test $debug = "off"; then - echo "Debug is OFF" - if test ${SYSOVR}o = "o"; then - if test $platform = "os400"; then - echo "NATIVE OS400 BUILD" - debugflag=""; - elif test $platform = "irix"; then - debugflag="-O2"; - elif test $platform = "aix"; then - debugflag="-O2"; - else - debugflag="-O"; - fi - else - echo "OVERRIDE FOR OS400 ON AIX" - debugflag=""; - fi -else - echo "Debug is ON" - debugflag="-g"; -fi - - -# -# Check for the threading option -# -if test $thread = "none"; then - THREADS=none - threadingLibs="" - threadingDefines="-DAPP_NO_THREADS -DXML_USE_NO_THREADS" -else - THREADS=pthread - threadingDefines="-DXML_USE_PTHREADS" - threadingLibs="-lpthread" - if test $platform = "hp-11"; then - if test $thread; then - case $thread in - pthread) - ;; - dce) - THREADS=dce ; - threadingLibs="-lcma" ; - threadingDefines="-D_PTHREADS_DRAFT4 -D_THREAD_SAFE -DXML_USE_DCE" ;; - *) - echo "I do not recognize the thread option '$thread'. Please type '${0} -h' for help." ; - exit ${ERROR_EXIT_CODE};; - esac - fi - elif test $platform = "freebsd"; then - threadingLibs="-pthread -lc_r" - threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS" - elif test $platform = "aix"; then - aix_version=`./config.guess`; - echo Found host system to be $aix_version - case $aix_version in - *4.3*) - ## Linkflags control the use of libpthreads on AIX - threadingLibs="-lpthreads_compat";; - *) - threadingLibs="-lpthreads";; - esac - if test $thread; then - case $thread in - pthread) - ;; - dce) - THREADS=dce ; - threadingDefines="-DXML_USE_DCE" - case $aix_version in - *4.3*) - ## Linkflags control the use of libpthreads on AIX - threadingLibs="-ldcelibc_r -ldcepthreads -lpthreads_compat";; - *) - threadingLibs="-lC_r -lC -ldcelibc_r -ldcepthreads";; - esac - ;; - *) - echo "I do not recognize the thread option '$thread'. Please type '${0} -h' for help." ; - exit ${ERROR_EXIT_CODE};; - esac - fi - elif test $platform = "ptx"; then - threadingLibs=" " - if test -z $XMLINSTALL; then - XMLINSTALL=$ICUROOT ## use either the -C or the -P option now. - fi - elif test $platform = "hp-10"; then - THREADS=dce - threadingLibs="-lcma" - threadingDefines="-DXML_USE_DCE" - elif test $platform = "unixware"; then - threadingLibs="" ## Linkflags control the use of threads on UnixWare - elif test $platform = "solaris"; then - if test $thread; then - case $thread in - pthread) - ;; - dce) - THREADS=dce ; - threadingLibs="-ldce"; - threadingDefines="-DXML_USE_DCE";; - *) - echo "I do not recognize the thread option '$thread'. Please type '${0} -h' for help." - exit ${ERROR_EXIT_CODE};; - esac - fi - elif test $platform = "irix"; then - if test $thread; then - case $thread in - pthread) - ;; - - sproc) - threadingLibs=" "; - threadingDefines="-DXML_USE_SPROC" ;; - *) - echo "I do not recognize the thread option '$thread'. Please type '${0} -h' for help." - exit ${ERROR_EXIT_CODE};; - esac - fi - fi -fi - -export THREADS - - -# -# Now check for what kind of transcoding service is desired. -# - -transcodingDefines="-DXML_USE_NATIVE_TRANSCODER" -TRANSCODER=NATIVE - -if test $transcoder; then -case $transcoder in - icu) - if test ${ICUROOT}o = "o"; then - echo '***Error*** ICUROOT environment variable not defined. Exiting...'; - exit ${ERROR_EXIT_CODE}; - fi - transcodingDefines="-DXML_USE_ICU_TRANSCODER -I${ICUROOT}/include"; - transcodingLibs="-L${ICUROOT} -L${ICUROOT}/lib -L${ICUROOT}/data"; - TRANSCODER=ICU;; - Iconv400) - transcodingDefines="-DXML_USE_ICONV400_TRANSCODER" ; - TRANSCODER=Iconv400 ;; - Iconv390) - transcodingDefines="-DXML_USE_ICONV390_TRANSCODER" ; - TRANSCODER=Iconv390 ;; - IconvFBSD) - TRANSCODER=IconvFBSD ; - transcodingDefines="-DXML_USE_LIBICONV -I/usr/local/include" ;; - native) - if test $platform = "freebsd"; then - TRANSCODER=IconvFBSD ; - fi ;; - *) - echo "I do not recognize the transcoder option '$transcoder'. Please type '${0} -h' for help." - exit ${ERROR_EXIT_CODE};; -esac -fi - -export TRANSCODER - - -# -# Now check for the message loader -# - -MESSAGELOADER=INMEM # By default use in-memory -msgloaderDefines="-DXML_USE_INMEM_MESSAGELOADER" - -if test $msgloader ; then -case $msgloader in - icu) - if test ${ICUROOT}o = "o" ; then - echo '***Error*** ICUROOT environment variable not defined. Exiting...'; - exit ${ERROR_EXIT_CODE}; - fi - MESSAGELOADER=ICU; - msgloaderDefines="-DXML_USE_ICU_MESSAGELOADER" ;; - - inmem) - ;; - MsgFile) - MESSAGELOADER=MSGFILE; - msgloaderDefines="-DXML_USE_MSGFILE_MESSAGELOADER" ;; - - - iconv) - MESSAGELOADER=ICONV; - msgloaderDefines="-DXML_USE_ICONV_MESSAGELOADER" ;; - - *) - echo "I do not recognize the message loader option '$msgloader'. Please type '${0} -h' for help."; - exit ${ERROR_EXIT_CODE};; -esac -fi - -export MESSAGELOADER - - - - -# -# Check for the type of net accessor -# - -NETACCESSOR=Socket # By default use socket (does HTTP URL's) -if test $netaccessor ; then -case $netaccessor in - fileonly) - NETACCESSOR=FileOnly - netaccessorDefines="" ;; - - socket) - NETACCESSOR=Socket - netaccessorDefines="-DXML_USE_NETACCESSOR_SOCKET" - case $platform in - unixware) - netaccessorLibs="-lnsl -lsocket";; - hp-11) - netaccessorLibs="-lnsl";; - aix) - netaccessorLibs="-lbsd";; - solaris) - netaccessorLibs="-lnsl -lsocket" - if test $thread = "dce"; then - netaccessorLibs="" - fi - ;; - *) - ;; - esac;; - - libwww) - NETACCESSOR=LibWWW - if test -z "`libwww-config --libs 2>/dev/null`" ; then - echo "Netaccessor is libwww, but libwww-config is not found. Cannot proceed further." - exit ${ERROR_EXIT_CODE}; - fi - netaccessorDefines="-DXML_USE_NETACCESSOR_LIBWWW `libwww-config --cflags`" - netaccessorLibs="`libwww-config --libs`" - USELIBWWW=1;; - - native) - NETACCESSOR=NATIVE - netaccessorDefines="-DXML_USE_NETACCESSOR_NATIVE" - netaccessorLibs="" - ;; - - *) - echo "I do not recognize the netaccessor option '$netaccessor'. Please type '${0} -h' for help." - exit ${ERROR_EXIT_CODE};; -esac -fi - -export NETACCESSOR - - - -# -# Set the C compiler and C++ compiler environment variables -# - -case $cppcompiler in - xlC* | xlc* | g++ | c++ | cc | CC | aCC | icc | ICC | cxx) - ;; - - *) - echo "I do not recognize the C++ compiler '$cppcompiler'. Continuing anyway ..." - ;; -esac - -CC="$ccompiler" -export CC - -CXX="$cppcompiler" -export CXX - -# -# Set the extra C and C++ compiler flags -# -# -# include the user defined CXXFLAGS/CFLAGS first in case they have -# set an platform spefic flags -# -CXXFLAGS="$CXXFLAGS $compileroptions $debugflag $transcodingDefines $msgloaderDefines $threadingDefines $netaccessorDefines" -export CXXFLAGS - -CFLAGS="$CFLAGS $compileroptions $debugflag $transcodingDefines $msgloaderDefines $threadingDefines $netaccessorDefines" -export CFLAGS - -# gcc crashes if optimisation is turned on in a Tru64 environment -if [ $platform = "tru64" -a $CXX = "g++" ]; then - CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]*//g'` - CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]*//g'` - export CXXFLAGS CFLAGS -fi - -LDFLAGS="$LDFLAGS $linkeroptions" -export LDFLAGS - -LIBS="$transcodingLibs $threadingLibs $netaccessorLibs" -export LIBS - - -echo -rm -f config.cache -rm -f config.log -rm -f config.status -if test $platform = "os400"; then -./configure --host AS400-OS400 $configureoptions -elif test $platform = "ptx"; then -./configure --prefix=$XMLINSTALL -else -sh ./configure $configureoptions -fi -# exit if configure failed -if test $? != 0; then - exit 1 -fi - -echo -echo In future, you may also directly type the following commands to create the Makefiles. -echo -echo export TRANSCODER=\"$TRANSCODER\" -echo export MESSAGELOADER=\"$MESSAGELOADER\" -echo export NETACCESSOR=\"$NETACCESSOR\" -echo export THREADS=\"$THREADS\" -echo export CC=\"$CC\" -echo export CXX=\"$CXX\" -echo export CXXFLAGS=\"$CXXFLAGS\" -echo export CFLAGS=\"$CFLAGS\" -echo export LDFLAGS=\"$LDFLAGS\" -echo export LIBS=\"$LIBS\" -echo configure $configureoptions - -echo -echo If the result of the above commands look OK to you, go to the directory -echo ${XERCESCROOT}/src and type \"gmake\" to make the XERCES-C system. - -exit 0;