Suggested changes for Power/AIX

After the updates to the LAMMPS sources on Feb 6 there have been some reports with problems to compile the code on AIX/Power

Enclosed are some patches to address the issue.

I am not a C/C++ expert but from what I have gathered the C99 extensions to the standard C++ needs to be explicitly enabled in the IBM compiler.
This is done with the macro _ISOC99_SOURCE in the Makefile.power5. Also, as not all source files that take use of the C99 format macros include lmptypes.h the format
macro is also explicitly set in the Makefile. However, this makes it necessary to protect the setting of this macro in lmptypes.h

Other changes to the power5 makefile makes the file explicitly request 64-bit compilation and also generate dependency information correctly.

The changes to the global Makefile make sure that gmake can be used [by $(MAKE)] instead of make for package-regenerate

Cheers,

/Nils

PS, The files that use __STDC_FORMAT_MACROS, but do not set the corresponding macro def are:
lammps-28Mar11/src/{delete_bonds.cpp,dump_atom.cpp,dump_cfg.cpp,dump_custom.cpp,dump_local.cpp,dump_xyz.cpp,finish.cpp,fix_orient_fcc.cpp,improper_umbrella.cpp,output.cpp}

— lammps-28Mar11/src.orig/lmptype.h 2011-02-22 17:09:18.000000000 -0500
+++ lammps-28Mar11/src/lmptype.h 2011-04-01 05:10:41.000000000 -0400
@@ -32,8 +32,12 @@
#ifndef LMP_LMPTYPE_H
#define LMP_LMPTYPE_H

+#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
+#endif
+#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
+#endif

#include “limits.h”
#include “stdint.h”
diff -rup lammps-28Mar11/src.orig/pppm.cpp lammps-28Mar11/src/pppm.cpp
— lammps-28Mar11/src.orig/pppm.cpp 2011-03-26 19:22:45.000000000 -0400
+++ lammps-28Mar11/src/pppm.cpp 2011-04-01 05:12:04.000000000 -0400
@@ -35,6 +35,10 @@
#include “memory.h”
#include “error.h”

+#if defined(_AIX) && defined(hz)
+#undef hz
+#endif /* _AIX && hz */