home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
gnat-2.06-src.tgz
/
tar.out
/
fsf
/
gnat
/
ada
/
threads
/
src
/
config_header.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
3KB
|
81 lines
/* Copyright (C) 1992, the Florida State University
Distributed by the Florida State University under the terms of the
GNU Library General Public License.
This file is part of Pthreads.
Pthreads is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation (version 2).
Pthreads is distributed "AS IS" 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 Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with Pthreads; see the file COPYING. If not, write
to the Free Software Foundation, 675 Mass Ave, Cambridge,
MA 02139, USA.
Report problems and direct all questions to:
pthreads-bugs@ada.cs.fsu.edu
@(#)config_header.c 2.5 4/12/95
*/
/*
* Create configuration header files depending on compile options
*/
main(argc, argv)
int argc;
char *argv[];
{
short local = (argv[1][0] == '-' && argv[1][1] == 'l');
printf("/* Copyright (C) 1992, the Florida State University\n");
printf(" Distributed by the Florida State University under the terms of the\n");
printf(" GNU Library General Public License.\n");
printf("\n");
printf("This file is part of Pthreads.\n");
printf("\n");
printf("Pthreads is free software; you can redistribute it and/or\n");
printf("modify it under the terms of the GNU Library General Public\n");
printf("License as published by the Free Software Foundation (version 2).\n");
printf("\n");
printf("Pthreads is distributed \"AS IS\" in the hope that it will be\n");
printf("useful, but WITHOUT ANY WARRANTY; without even the implied\n");
printf("warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
printf("See the GNU Library General Public License for more details.\n");
printf("\n");
printf("You should have received a copy of the GNU Library General Public\n");
printf("License along with Pthreads; see the file COPYING. If not, write\n");
printf("to the Free Software Foundation, 675 Mass Ave, Cambridge,\n");
printf("MA 02139, USA.\n");
printf("\n");
printf("Report problems and direct all questions to:\n");
printf("\n");
printf(" pthreads-bugs@ada.cs.fsu.edu\n");
printf("\n");
printf(" %@(#)config_header.c 2.5% %4/12/95%\n");
printf("*/\n");
printf("\n");
printf("/*\n");
printf(" * configuration header file to identify compile options\n");
printf(" */\n");
printf("\n");
for (argc--; argc; argc--)
if (argv[argc][0] == '-' && argv[argc][1] == 'D') {
printf("#ifndef %s%s\n", &argv[argc][2], local ? "" : "_NP");
printf("#define %s%s\n", &argv[argc][2], local ? "" : "_NP");
printf("#endif\n\n");
}
return(0);
}