1 /* 2 * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2013-2015 Intel, Inc. All rights reserved 4 * Copyright (c) 2016 IBM Corporation. All rights reserved. 5 * $COPYRIGHT$ 6 * 7 * Additional copyrights may follow 8 * 9 * $HEADER$ 10 * 11 * This file is included at the top of pmix_config.h, and is 12 * therefore a) before all the #define's that were output from 13 * configure, and b) included in most/all files in PMIx. 14 * 15 * Since this file is *only* ever included by pmix_config.h, and 16 * pmix_config.h already has #ifndef/#endif protection, there is no 17 * need to #ifndef/#endif protection here. 18 */ 19 20 #ifndef PMIX_CONFIG_H 21 #error "pmix_config_top.h should only be included from config.h(.in)" 22 #endif 23 24 /* The only purpose of this file is to undef the PACKAGE_<foo> macros 25 that are put in by autoconf/automake projects. Specifically, if 26 you include a .h file from another project that defines these 27 macros (e.g., gmp.h) and then include PMIX's config.h, 28 you'll get a preprocessor conflict. So put these undef's here to 29 protect us from other package's PACKAGE_<foo> macros. 30 31 Note that we can't put them directly in pmix_config.h (e.g., via 32 AH_TOP) because they will be turned into #define's by autoconf. */ 33 34 #undef PACKAGE_BUGREPORT 35 #undef PACKAGE_NAME 36 #undef PACKAGE_STRING 37 #undef PACKAGE_TARNAME 38 #undef PACKAGE_VERSION 39 #undef PACKAGE_URL 40 #undef HAVE_CONFIG_H