17
17
*
18
18
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
19
19
*
20
- * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.14 2005/10/05 12:16:28 momjian Exp $
20
+ * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.15 2005/10/06 12:04:58 petere Exp $
21
21
*
22
22
*-------------------------------------------------------------------------
23
23
*/
@@ -255,7 +255,10 @@ show_configure(bool all)
255
255
printf ("%s\n" , VAL_CONFIGURE );
256
256
#else
257
257
if (!all )
258
- printf ("not recorded\n" );
258
+ {
259
+ fprintf (stderr , _ ("not recorded\n" ));
260
+ exit (1 );
261
+ }
259
262
#endif
260
263
}
261
264
@@ -268,7 +271,10 @@ show_cc(bool all)
268
271
printf ("%s\n" , VAL_CC );
269
272
#else
270
273
if (!all )
271
- printf ("not recorded\n" );
274
+ {
275
+ fprintf (stderr , _ ("not recorded\n" ));
276
+ exit (1 );
277
+ }
272
278
#endif
273
279
}
274
280
@@ -281,7 +287,10 @@ show_cppflags(bool all)
281
287
printf ("%s\n" , VAL_CPPFLAGS );
282
288
#else
283
289
if (!all )
284
- printf ("not recorded\n" );
290
+ {
291
+ fprintf (stderr , _ ("not recorded\n" ));
292
+ exit (1 );
293
+ }
285
294
#endif
286
295
}
287
296
@@ -294,7 +303,10 @@ show_cflags(bool all)
294
303
printf ("%s\n" , VAL_CFLAGS );
295
304
#else
296
305
if (!all )
297
- printf ("not recorded\n" );
306
+ {
307
+ fprintf (stderr , _ ("not recorded\n" ));
308
+ exit (1 );
309
+ }
298
310
#endif
299
311
}
300
312
@@ -307,7 +319,10 @@ show_cflags_sl(bool all)
307
319
printf ("%s\n" , VAL_CFLAGS_SL );
308
320
#else
309
321
if (!all )
310
- printf ("not recorded\n" );
322
+ {
323
+ fprintf (stderr , _ ("not recorded\n" ));
324
+ exit (1 );
325
+ }
311
326
#endif
312
327
}
313
328
@@ -320,7 +335,10 @@ show_ldflags(bool all)
320
335
printf ("%s\n" , VAL_LDFLAGS );
321
336
#else
322
337
if (!all )
323
- printf ("not recorded\n" );
338
+ {
339
+ fprintf (stderr , _ ("not recorded\n" ));
340
+ exit (1 );
341
+ }
324
342
#endif
325
343
}
326
344
@@ -333,7 +351,10 @@ show_ldflags_sl(bool all)
333
351
printf ("%s\n" , VAL_LDFLAGS_SL );
334
352
#else
335
353
if (!all )
336
- printf ("not recorded\n" );
354
+ {
355
+ fprintf (stderr , _ ("not recorded\n" ));
356
+ exit (1 );
357
+ }
337
358
#endif
338
359
}
339
360
@@ -346,7 +367,10 @@ show_libs(bool all)
346
367
printf ("%s\n" , VAL_LIBS );
347
368
#else
348
369
if (!all )
349
- printf ("not recorded\n" );
370
+ {
371
+ fprintf (stderr , _ ("not recorded\n" ));
372
+ exit (1 );
373
+ }
350
374
#endif
351
375
}
352
376
@@ -427,14 +451,14 @@ help(void)
427
451
printf (_ (" --libs show LIBS value used when PostgreSQL was built\n" ));
428
452
printf (_ (" --version show the PostgreSQL version\n" ));
429
453
printf (_ (" --help show this help, then exit\n" ));
430
- printf (_ ("With no arguments, all known items are shown.\n\n" ));
454
+ printf (_ ("\nWith no arguments, all known items are shown.\n\n" ));
431
455
printf (_ ("Report bugs to <pgsql-bugs@postgresql.org>.\n" ));
432
456
}
433
457
434
458
static void
435
459
advice (void )
436
460
{
437
- fprintf (stderr , _ ("\nTry \"%s --help\" for more information\n" ), progname );
461
+ fprintf (stderr , _ ("Try \"%s --help\" for more information. \n" ), progname );
438
462
}
439
463
440
464
static void
0 commit comments