53 #undef NEED_BSD_STRINGS 55 #ifdef NEED_BSD_STRINGS 66 #undef NEED_SYS_TYPES_H 67 #ifdef NEED_SYS_TYPES_H 68 #include <sys/types.h> 84 #undef NEED_SPECIAL_INCLUDE 86 #ifdef NEED_SPECIAL_INCLUDE 87 #include <someincludefile.h> 100 #define HAVE_PROTOTYPES 102 #ifdef HAVE_PROTOTYPES 128 #define HAVE_UNSIGNED_CHAR 130 #ifdef HAVE_UNSIGNED_CHAR 140 #define HAVE_UNSIGNED_SHORT 142 #ifdef HAVE_UNSIGNED_SHORT 156 #ifdef HAVE_PROTOTYPES 162 #ifdef HAVE_PROTOTYPES 170 char * locptr = (
char *) arg1;
171 arg1 = (
void *) locptr;
186 #ifdef HAVE_PROTOTYPES 202 #undef INCOMPLETE_TYPES_BROKEN 204 #ifndef INCOMPLETE_TYPES_BROKEN 213 #undef NEED_SHORT_EXTERNAL_NAMES 215 #ifndef NEED_SHORT_EXTERNAL_NAMES 242 #ifdef HAVE_PROTOTYPES 252 else if (arg != -67) {
253 printf(
"Hmm, it seems 'char' is not eight bits wide on your machine.\n");
254 printf(
"I fear the JPEG software will not work at all.\n\n");
260 #ifdef HAVE_PROTOTYPES 270 if (res == -0x7F7E80CL) {
275 res |= (~0L) << (32-4);
276 if (res == -0x7F7E80CL) {
279 printf(
"Right shift isn't acting as I expect it to.\n");
280 printf(
"I fear the JPEG software will not work at all.\n\n");
285 #ifdef HAVE_PROTOTYPES 286 int main (
int argc,
char ** argv)
288 int main (argc, argv)
293 char signed_char_check = (char) (-67);
297 if ((outfile = fopen(
"jconfig.h",
"w")) == NULL) {
298 printf(
"Failed to write jconfig.h\n");
303 fprintf(outfile,
"/* jconfig.h --- generated by ckconfig.c */\n");
304 fprintf(outfile,
"/* see jconfig.doc for explanations */\n\n");
305 #ifdef HAVE_PROTOTYPES 306 fprintf(outfile,
"#define HAVE_PROTOTYPES\n");
308 fprintf(outfile,
"#undef HAVE_PROTOTYPES\n");
310 #ifdef HAVE_UNSIGNED_CHAR 311 fprintf(outfile,
"#define HAVE_UNSIGNED_CHAR\n");
313 fprintf(outfile,
"#undef HAVE_UNSIGNED_CHAR\n");
315 #ifdef HAVE_UNSIGNED_SHORT 316 fprintf(outfile,
"#define HAVE_UNSIGNED_SHORT\n");
318 fprintf(outfile,
"#undef HAVE_UNSIGNED_SHORT\n");
321 fprintf(outfile,
"/* #define void char */\n");
323 fprintf(outfile,
"#define void char\n");
326 fprintf(outfile,
"/* #define const */\n");
328 fprintf(outfile,
"#define const\n");
331 fprintf(outfile,
"#undef CHAR_IS_UNSIGNED\n");
333 fprintf(outfile,
"#define CHAR_IS_UNSIGNED\n");
335 fprintf(outfile,
"#define HAVE_STDDEF_H\n");
337 fprintf(outfile,
"#undef HAVE_STDDEF_H\n");
340 fprintf(outfile,
"#define HAVE_STDLIB_H\n");
342 fprintf(outfile,
"#undef HAVE_STDLIB_H\n");
344 #ifdef NEED_BSD_STRINGS 345 fprintf(outfile,
"#define NEED_BSD_STRINGS\n");
347 fprintf(outfile,
"#undef NEED_BSD_STRINGS\n");
349 #ifdef NEED_SYS_TYPES_H 350 fprintf(outfile,
"#define NEED_SYS_TYPES_H\n");
352 fprintf(outfile,
"#undef NEED_SYS_TYPES_H\n");
354 fprintf(outfile,
"#undef NEED_FAR_POINTERS\n");
355 #ifdef NEED_SHORT_EXTERNAL_NAMES 356 fprintf(outfile,
"#define NEED_SHORT_EXTERNAL_NAMES\n");
358 fprintf(outfile,
"#undef NEED_SHORT_EXTERNAL_NAMES\n");
360 #ifdef INCOMPLETE_TYPES_BROKEN 361 fprintf(outfile,
"#define INCOMPLETE_TYPES_BROKEN\n");
363 fprintf(outfile,
"#undef INCOMPLETE_TYPES_BROKEN\n");
365 fprintf(outfile,
"\n#ifdef JPEG_INTERNALS\n\n");
367 fprintf(outfile,
"#undef RIGHT_SHIFT_IS_UNSIGNED\n");
369 fprintf(outfile,
"#define RIGHT_SHIFT_IS_UNSIGNED\n");
370 fprintf(outfile,
"\n#endif /* JPEG_INTERNALS */\n");
371 fprintf(outfile,
"\n#ifdef JPEG_CJPEG_DJPEG\n\n");
372 fprintf(outfile,
"#define BMP_SUPPORTED /* BMP image file format */\n");
373 fprintf(outfile,
"#define GIF_SUPPORTED /* GIF image file format */\n");
374 fprintf(outfile,
"#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */\n");
375 fprintf(outfile,
"#undef RLE_SUPPORTED /* Utah RLE image file format */\n");
376 fprintf(outfile,
"#define TARGA_SUPPORTED /* Targa image file format */\n\n");
377 fprintf(outfile,
"#undef TWO_FILE_COMMANDLINE /* You may need this on non-Unix systems */\n");
378 fprintf(outfile,
"#undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */\n");
379 fprintf(outfile,
"#undef DONT_USE_B_MODE\n");
380 fprintf(outfile,
"/* #define PROGRESS_REPORT */ /* optional */\n");
381 fprintf(outfile,
"\n#endif /* JPEG_CJPEG_DJPEG */\n");
387 printf(
"Configuration check for Independent JPEG Group's software done.\n");
388 printf(
"\nI have written the jconfig.h file for you.\n\n");
389 #ifdef HAVE_PROTOTYPES 390 printf(
"You should use makefile.ansi as the starting point for your Makefile.\n");
392 printf(
"You should use makefile.unix as the starting point for your Makefile.\n");
395 #ifdef NEED_SPECIAL_INCLUDE 396 printf(
"\nYou'll need to change jconfig.h to include the system include file\n");
397 printf(
"that you found type size_t in, or add a direct definition of type\n");
398 printf(
"size_t if that's what you used. Just add it to the end.\n");
int(* another_method)(void)
int possibly_dupli_function()
void test3function(void_ptr arg1, void_func arg2)
int main(int argc, char **argv)
void(* void_func)(int a, int b)
int is_char_signed(int arg)
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
int possibly_duplicate_function()
int(* trace_message)(char *msgtext)
static const int carray[3]
int is_shifting_signed(long arg)
int(* error_exit)(char *msgtext)
struct undefined_structure * undef_struct_ptr
int test4function(const int arg1)
int testfunction(int arg1, int *arg2)