1
1

opal_check_ident.m4: make the test match what we do in the code base

Per #257, the configure test used to check:

```c
```

But out in the code base, we actually do this:

```c
// ...
```

This commit updates the configure test to ```#define``` a string and
then use that with the various ident strategies.

Fixes #257
Этот коммит содержится в:
Jeff Squyres 2014-11-03 12:17:19 -08:00
родитель 273135dbc7
Коммит 8c3fb41eb7

Просмотреть файл

@ -1,6 +1,7 @@
dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
dnl Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
@ -68,7 +69,8 @@ AC_DEFUN([_OPAL_CHECK_IDENT], [
opal_ident="string_not_coincidentally_inserted_by_the_compiler"
cat > conftest.$3 <<EOF
$4 "$opal_ident" $5
#define IDENT_MSG "$opal_ident"
$4 IDENT_MSG $5
int main(int argc, char** argv);
int main(int argc, char** argv) { return 0; }
EOF