configure.in 24.9 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2 3 4
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gimprc.in)

dnl Initialize automake stuff
Manish Singh's avatar
Manish Singh committed
5
GIMP_MAJOR_VERSION=1
Manish Singh's avatar
Manish Singh committed
6
GIMP_MINOR_VERSION=1
Manish Singh's avatar
Manish Singh committed
7
GIMP_MICRO_VERSION=24
Manish Singh's avatar
Manish Singh committed
8 9
GIMP_INTERFACE_AGE=0
GIMP_BINARY_AGE=0
10
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
Elliot Lee's avatar
Elliot Lee committed
11

Manish Singh's avatar
Manish Singh committed
12 13 14 15 16 17 18 19 20 21
dnl libtool versioning
LT_RELEASE=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
LT_CURRENT=`expr $GIMP_MICRO_VERSION - $GIMP_INTERFACE_AGE`
LT_REVISION=$GIMP_INTERFACE_AGE
LT_AGE=`expr $GIMP_BINARY_AGE - $GIMP_INTERFACE_AGE`

VERSION=$GIMP_VERSION
PACKAGE=gimp

AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
Elliot Lee's avatar
Elliot Lee committed
22

23

Elliot Lee's avatar
Elliot Lee committed
24 25 26 27 28 29 30 31 32 33
AM_CONFIG_HEADER(config.h)

dnl Initialize libtool
AM_PROG_LIBTOOL

dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_CANONICAL_HOST

34 35 36 37 38 39 40 41 42
dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
AM_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_CPP

Elliot Lee's avatar
Elliot Lee committed
43 44 45 46 47
AC_ARG_ENABLE(debug, [  --enable-debug          turn on debugging [default=no]],
if eval "test x$enable_debug = xyes"; then
  DEBUGFLAG="-g"
fi)

48 49 50 51
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"

dnl Why the heck isn't there already a macro for this?

Manish Singh's avatar
Manish Singh committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
dnl AC_ARG_WITH(gnu-make, [  --with-gnu-make         assume 'make' understands gnu extensions],
dnl,
dnl if $ac_make -v 2>/dev/null | grep 'GNU Make' >/dev/null; then
dnl   with_gnu_make=yes
dnl fi)
dnl
dnl AC_ARG_WITH(gcg, [  --with-gcg              build 'gcg' code generation tool],
dnl,
dnl with_gcg=$enable_maintainer_mode)
dnl
dnl if test "x$with_gcg" = xyes; then
dnl   AC_CONFIG_SUBDIRS(tools/gcg)
dnl fi
dnl
dnl AC_ARG_ENABLE(gcg-deps, [  --enable-gcg-deps       turn on dynamic gcg dependency tracking (need gcc and gnu make)],
dnl ,
dnl if eval "test x$GCC$with_gnu_make$with_gcg = xyesyesyes"; then
dnl   enable_gcg_deps=yes
dnl fi)
dnl
dnl AM_CONDITIONAL(WITH_GCG, test x$with_gcg = xyes)
dnl AM_CONDITIONAL(WITH_GNU_MAKE, test x$with_gnu_make = xyes)
dnl AM_CONDITIONAL(ENABLE_GCG_DEPS, test x$enable_gcg_deps = xyes)
75

Elliot Lee's avatar
Elliot Lee committed
76 77 78 79
AC_ARG_ENABLE(ansi, [  --enable-ansi           turn on strict ansi [default=no]],
		    , enable_ansi=no)

dnl Possibly change default gimpdir from .gimp
Manish Singh's avatar
Manish Singh committed
80
gimpdir=.gimp-1.1
Elliot Lee's avatar
Elliot Lee committed
81 82 83 84 85 86 87 88
AC_ARG_ENABLE(gimpdir, [  --enable-gimpdir=DIR    change default gimpdir from .gimp to DIR],
if eval "test x$enable_gimpdir != x"; then
  if eval "test x$enable_gimpdir != xyes"; then
    gimpdir=$enable_gimpdir
  fi
fi)

if test -n "$DEBUGFLAG"; then
89
  CFLAGS="$DEBUGFLAG $CFLAGS"
Elliot Lee's avatar
Elliot Lee committed
90 91
fi

Manish Singh's avatar
Manish Singh committed
92

93
dnl i18n stuff
Pablo Saratxaga's avatar
Pablo Saratxaga committed
94
ALL_LINGUAS="ca cs da de en_GB es fi fr hu it ja ko nl no pl ru sk sv uk"
95

96 97
AM_GNU_GETTEXT

98
dnl Check for GTK+
Sven Neumann's avatar
removed  
Sven Neumann committed
99
AM_PATH_GTK(1.2.8,,
Manish Singh's avatar
Manish Singh committed
100
  AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))
Elliot Lee's avatar
Elliot Lee committed
101

Manish Singh's avatar
Manish Singh committed
102 103
changequote(,)dnl

Manish Singh's avatar
Manish Singh committed
104 105
dnl Evil stuff to extract GLIB stuff from gtk-config output
dnl (we want to make sure it matches with the gtk we're using)
106 107 108 109 110 111 112 113
GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^\(-I[^ ]*\).*$/\1/'`
if echo $GTK_TEMP_CFLAGS | grep 'glib/include$' > /dev/null; then
  GTK_TEMP_CFLAGS=$GTK_CFLAGS
else
  GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^-I[^ ]* \(.*\)$/\1/'`
fi
GLIB_CFLAGS=`echo $GTK_TEMP_CFLAGS | sed 's/^\(-I[^ ]*glib[^ ]*  *-I[^ ]*\).*/\1/'`

Manish Singh's avatar
Manish Singh committed
114
GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`
115
if test -z "$GLIB_LDFLAGS" ; then
Manish Singh's avatar
Manish Singh committed
116
  GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[^ ]*\) .*$/\1/'`
Manish Singh's avatar
Manish Singh committed
117
fi 
Manish Singh's avatar
Manish Singh committed
118
GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`"
Manish Singh's avatar
Manish Singh committed
119

Elliot Lee's avatar
Elliot Lee committed
120
if eval "test x$GCC = xyes"; then
Manish Singh's avatar
Manish Singh committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
  case " $CFLAGS " in
  *[\ \	]-Wall[\ \	]*) ;;
  *) CFLAGS="$CFLAGS -Wall" ;;
  esac

  if test "x$enable_ansi" = "xyes"; then
    case " $CFLAGS " in
    *[\ \	]-ansi[\ \	]*) ;;
    *) CFLAGS="$CFLAGS -ansi" ;;
    esac

    case " $CFLAGS " in
    *[\ \	]-pedantic[\ \	]*) ;;
    *) CFLAGS="$CFLAGS -pedantic" ;;
    esac
Elliot Lee's avatar
Elliot Lee committed
136 137 138
  fi
fi

Manish Singh's avatar
Manish Singh committed
139 140
changequote([,])dnl

Manish Singh's avatar
Manish Singh committed
141 142 143 144 145 146 147 148 149 150 151 152 153 154
dnl DU4 native cc currently needs -std1 for ANSI mode (instead of K&R)
AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
gimp_save_LIBS=$LIBS
LIBS="$LIBS -lm"
AC_TRY_RUN([#include <math.h>
             int main (void) { return (log(1) != log(1.)); }],
  AC_MSG_RESULT(none needed),
  gimp_save_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS -std1"
  AC_TRY_RUN([#include <math.h>
               int main (void) { return (log(1) != log(1.)); }],
    AC_MSG_RESULT(-std1),
    AC_MSG_RESULT()
    CFLAGS=$gimp_save_CFLAGS
155 156 157 158
    AC_MSG_WARN([No ANSI prototypes found in library. (-std1 didn't work.)]),
    AC_MSG_RESULT),
  AC_MSG_RESULT())

Manish Singh's avatar
Manish Singh committed
159 160 161 162 163 164 165 166 167 168 169 170
LIBS=$gimp_save_LIBS

dnl NeXTStep cc seems to need this
AC_MSG_CHECKING([for extra flags for POSIX compliance])
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
  AC_MSG_RESULT(none needed),
  gimp_save_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS -posix"
  AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
    AC_MSG_RESULT(-posix),
    AC_MSG_RESULT()
    CFLAGS=$gimp_save_CFLAGS
171
    AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
Manish Singh's avatar
Manish Singh committed
172

173
gimp_save_CPPFLAGS="$CPPFLAGS"
174
gimp_save_LDFLAGS="$LDFLAGS"
Manish Singh's avatar
Manish Singh committed
175 176
gimp_save_LIBS="$LIBS"

177 178
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
LDFLAGS="$LDFLAGS `echo $GTK_LIBS | sed 's/\(.*\)\(-lgtk.*\)/\1/'`"
Manish Singh's avatar
Manish Singh committed
179 180
LIBS="$LIBS $GTK_LIBS"

Manish Singh's avatar
Manish Singh committed
181
dnl Test for Xmu
Manish Singh's avatar
Manish Singh committed
182
  if test -z "$LIBXMU"; then
Manish Singh's avatar
Manish Singh committed
183
    AC_CHECK_LIB(Xmu, XmuClientWindow,
184
      AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
Manish Singh's avatar
Manish Singh committed
185
	WEBBROWSER="webbrowser"; LIBXMU='-lXmu -lXt -lSM -lICE',
186 187 188
	AC_MSG_WARN(*** webbrowser plug-in will not be built (XMU header file not found) ***)),
	AC_CHECK_LIB(Xmu, XmuUpdateMapHints,
	  AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
Manish Singh's avatar
Manish Singh committed
189
	    WEBBROWSER="webbrowser"; LIBXMU='-lXmu -lXt',
190 191
	    AC_MSG_WARN(*** webbrowser plug-in will not be built (XMU header file not found) ***)),
	AC_MSG_WARN(*** webbrowser plug-in will not be built (XMU library not found) ***), -lXt), -lXt -lSM -lICE)
Manish Singh's avatar
Manish Singh committed
192 193
  fi

194
dnl Test for libaa
Manish Singh's avatar
Manish Singh committed
195
  if test -z "$LIBAA"; then
196
    AC_CHECK_LIB(aa, aa_printf,
197
      AC_CHECK_HEADER(aalib.h,
Manish Singh's avatar
Manish Singh committed
198
	AA='aa'; LIBAA='-laa',
199 200
	AC_MSG_WARN(*** AA plug-in will not be built (AA header file not found) ***)),
      AC_MSG_WARN(*** AA plug-in will not be built (AA library not found) ***))
201 202
  fi

Elliot Lee's avatar
Elliot Lee committed
203
dnl Test for libtiff
Manish Singh's avatar
Manish Singh committed
204
  if test -z "$LIBTIFF"; then
Elliot Lee's avatar
Elliot Lee committed
205
    AC_CHECK_LIB(tiff, TIFFReadScanline,
206
      AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
207
	TIFF='tiff'; LIBTIFF='-ltiff',
208
	AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Elliot Lee's avatar
Elliot Lee committed
209
      AC_CHECK_LIB(tiff, TIFFWriteScanline,
210
	AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
211
          TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
212
	  AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Manish Singh's avatar
Manish Singh committed
213
	AC_CHECK_LIB(tiff34, TIFFFlushData,
214
	  AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
215
            TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
216
	    AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Manish Singh's avatar
Manish Singh committed
217
        AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***), -ljpeg -lz -lm), -ljpeg -lz -lm), -lm)
Elliot Lee's avatar
Elliot Lee committed
218 219 220
  fi

dnl Test for libjpeg
Manish Singh's avatar
Manish Singh committed
221
  if test -z "$LIBJPEG"; then
222
    AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
223 224
      jpeg_ok=yes,
      jpeg_ok=no
Sven Neumann's avatar
Sven Neumann committed
225 226
      AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG library not found) ***)
      AC_MSG_WARN(*** XJT plug-in will not be built (JPEG library not found) ***))
227
    if test "$jpeg_ok" = yes; then
228
      AC_MSG_CHECKING([for jpeglib.h])
229
      AC_TRY_CPP(
230 231
[#include <stdio.h>
#undef PACKAGE
232 233 234 235 236 237
#undef VERSION
#include <jpeglib.h>],
	jpeg_ok=yes,
	jpeg_ok=no)
      AC_MSG_RESULT($jpeg_ok)
      if test "$jpeg_ok" = yes; then
Manish Singh's avatar
Manish Singh committed
238
	JPEG='jpeg'; XJT='xjt'; LIBJPEG='-ljpeg'
239 240 241
	AC_CHECK_LIB(jpeg, jpeg_simple_progression,	
	  AC_DEFINE(HAVE_PROGRESSIVE_JPEG),
	  AC_MSG_WARN(JPEG library does not support progressive saving.))
242 243
      else
	AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG header file not found) ***)
Sven Neumann's avatar
Sven Neumann committed
244
        AC_MSG_WARN(*** XJT plug-in will not be built (JPEG header file not found) ***)
245 246
      fi
    fi
Elliot Lee's avatar
Elliot Lee committed
247 248
  fi

249 250 251 252 253 254 255 256 257
dnl Test for libz
  if test -z "$LIBZ"; then
    AC_CHECK_LIB(z, gzsetparams,
      AC_CHECK_HEADER(zlib.h,
	PSP='psp'; LIBZ='-lz',
	AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***)),
      AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB library not found) ***))
  fi

Elliot Lee's avatar
Elliot Lee committed
258
dnl Test for libpng
259
  if test -z "$LIBPNG" && test -n "$LIBZ"; then
Elliot Lee's avatar
Elliot Lee committed
260
    AC_CHECK_LIB(png, png_read_info,
261 262 263 264 265 266 267
      AC_CHECK_HEADER(png.h,
	png_ok=yes,
	png_ok=no),
      AC_MSG_WARN(*** PNG plug-in will not be built (PNG library not found) ***), -lz -lm)
    if test "$png_ok" = yes; then
      AC_MSG_CHECKING([for png_structp in png.h])
      AC_TRY_COMPILE([#include <png.h>],
268
        [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
269 270 271 272
        png_ok=yes,
        png_ok=no)
      AC_MSG_RESULT($png_ok)
      if test "$png_ok" = yes; then
273
        PNG='png'; LIBPNG="-lpng $LIBZ"
274 275 276 277 278 279
      else
        AC_MSG_WARN(*** PNG plug-in will not be built (PNG library is too old) ***)
      fi
    else
      AC_MSG_WARN(*** PNG plug-in will not be built (PNG header file not found) ***)
    fi
Elliot Lee's avatar
Elliot Lee committed
280 281 282
  fi

dnl Test for libmpeg
Manish Singh's avatar
Manish Singh committed
283
  if test -z "$LIBMPEG"; then
Elliot Lee's avatar
Elliot Lee committed
284
    AC_CHECK_LIB(mpeg, GetMPEGFrame,
285
      AC_CHECK_HEADER(mpeg.h,
286
	MPEG='mpeg'; LIBMPEG='-lmpeg'; GAP_DECODE_MPEG='gap_decode_mpeg',
287 288
	AC_MSG_WARN(*** MPEG plug-in will not be built (MPEG header file not found) ***)),
      AC_MSG_WARN(*** MPEG plug-in will not be built (MPEG library not found) ***))
Elliot Lee's avatar
Elliot Lee committed
289 290 291
  fi

dnl Test for libXpm
Manish Singh's avatar
Manish Singh committed
292
  if test -z "$LIBXPM"; then
Elliot Lee's avatar
Elliot Lee committed
293
    AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage,
294
      AC_CHECK_HEADER(X11/xpm.h,
Manish Singh's avatar
Manish Singh committed
295
	XPM='xpm'; LIBXPM='-lXpm',
296 297
	AC_MSG_WARN(*** XPM plug-in will not be built (XPM header file not found) ***)),
      AC_MSG_WARN(*** XPM plug-in will not be built (XPM library not found) ***), $X_LIBS)
Elliot Lee's avatar
Elliot Lee committed
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338
  fi

dnl Check for shared memory
AC_CHECK_HEADER(sys/ipc.h, AC_DEFINE(HAVE_IPC_H), no_sys_ipc=yes)
AC_CHECK_HEADER(sys/shm.h, AC_DEFINE(HAVE_SHM_H), no_sys_shm=yes)
if test "$ac_cv_header_sys_shm_h" = "yes"; then
  AC_MSG_CHECKING(whether shmctl IPC_RMID allowes subsequent attaches)
  AC_TRY_RUN([
	#include <sys/types.h>
	#include <sys/ipc.h>
	#include <sys/shm.h>
	int main()
	{
	  int id;
	  char *shmaddr;
	id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
	if (id == -1)
	  exit (2);
	  shmaddr = shmat (id, 0, 0);
	  shmctl (id, IPC_RMID, 0);
	  if ((char*) shmat (id, 0, 0) == (char*) -1)
	  {
	    shmdt (shmaddr);
	    exit (1);
	  }
	  shmdt (shmaddr);
	  shmdt (shmaddr);
	  exit (0);
	}
    ],
    AC_DEFINE(IPC_RMID_DEFERRED_RELEASE)
      AC_MSG_RESULT(yes),
    AC_MSG_RESULT(no),
    AC_MSG_RESULT(assuming no))
fi

AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME

339
AC_CHECK_HEADER(sys/param.h, AC_DEFINE(HAVE_SYS_PARAM_H))
Elliot Lee's avatar
Elliot Lee committed
340
AC_CHECK_HEADER(sys/time.h, AC_DEFINE(HAVE_SYS_TIME_H))
341 342
AC_CHECK_HEADER(sys/times.h, AC_DEFINE(HAVE_SYS_TIMES_H))
AC_CHECK_HEADER(sys/wait.h, AC_DEFINE(HAVE_SYS_WAIT_H))
Elliot Lee's avatar
Elliot Lee committed
343 344 345 346 347 348
AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))

AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF

Manish Singh's avatar
Manish Singh committed
349 350
AC_FUNC_ALLOCA

351
dnl Check for sys/select.h
Elliot Lee's avatar
Elliot Lee committed
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366

AC_MSG_CHECKING([fd_set and sys/select])
AC_TRY_COMPILE([#include <sys/types.h>],
        [fd_set readMask, writeMask;], gimp_ok=yes, gimp_ok=no)
if test $gimp_ok = no; then
    AC_HEADER_EGREP(fd_mask, sys/select.h, gimp_ok=yes)
    if test $gimp_ok = yes; then
        AC_DEFINE(HAVE_SYS_SELECT_H)
    fi
fi
AC_MSG_RESULT($gimp_ok)
if test $gimp_ok = no; then
    AC_DEFINE(NO_FD_SET)
fi

367
dnl Check for random number functions
Manish Singh's avatar
Manish Singh committed
368
LIBUCB=""
369 370 371 372 373 374
AC_CHECK_FUNC(random, [
  AC_DEFINE(RAND_FUNC, random)
  AC_DEFINE(SRAND_FUNC, srandom)],
  [AC_CHECK_LIB(ucb, random, [
    AC_DEFINE(RAND_FUNC, random)
    AC_DEFINE(SRAND_FUNC, srandom)
Manish Singh's avatar
Manish Singh committed
375
    LIBUCB='-lucb'],
376 377 378
    [AC_CHECK_FUNC(lrand48,
      [AC_DEFINE(RAND_FUNC, lrand48) AC_DEFINE(SRAND_FUNC, srand48)],
      [AC_DEFINE(RAND_FUNC, rand) AC_DEFINE(SRAND_FUNC, srand)])])])
379 380 381

dnl check for difftime
AC_CHECK_FUNC(difftime, , AC_DEFINE(NO_DIFFTIME))
382

383 384 385
dnl check for putenv (because %#@&% NeXTStep doesn't have it)
AC_CHECK_FUNC(putenv, AC_DEFINE(HAVE_PUTENV))

386 387 388 389 390
dnl check for rint
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), [
  AC_CHECK_LIB(m, rint, [
    AC_DEFINE(HAVE_RINT)])])

Manish Singh's avatar
Manish Singh committed
391
dnl check for mmap
Tor Lillqvist's avatar
Tor Lillqvist committed
392 393
AC_CHECK_FUNCS(mmap)

394 395 396 397 398 399 400 401 402 403 404 405 406
dnl check for inline
AC_MSG_CHECKING([for inline definition in glibconfig.h])
AC_EGREP_CPP(glib_defines_inline,
[#include <glibconfig.h>
#ifdef inline
   glib_defines_inline
#endif
], have_glib_inline=yes, have_glib_inline=no)
AC_MSG_RESULT($have_glib_inline)
if test "$have_glib_inline" = "no"; then
  AC_C_INLINE
fi  

407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
dnl This is for the help browser
AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
if test "$GNOME_CONFIG" = "no"; then
  dnl Test for standalone GtkXMHTML widget
  HELPBROWSER=
  if test -n "$LIBPNG" && test -n "$LIBJPEG" && test -n "$LIBXPM"; then
    helpbrowser_save_LIBS=$LIBS
    LIBS="$LIBS $LIBPNG $LIBJPEG $LIBXPM"
    AC_CHECK_LIB(gtkxmhtml, gtk_xmhtml_new,
      GTKXMHTML_CFLAGS=$GTK_CFLAGS
      GTKXMHTML_LIBS="-lgtkxmhtml $GTK_LIBS $LIBPNG $LIBJPEG $LIBXPM"
      HELPBROWSER=helpbrowser,
      AC_MSG_WARN(*** Help browser plug-in will not be built (GtkXMHTML library not found) ***))
    LIBS=$helpbrowser_save_LIBS
  else
    AC_MSG_WARN(*** Help browser plug-in will not be built (PNG, JPEG or XPM libraries not found) ***)
  fi
else
  GTKXMHTML_CFLAGS=`$GNOME_CONFIG --cflags gnomeui`
  GTKXMHTML_LIBS=`$GNOME_CONFIG --libs gtkxmhtml`
  HELPBROWSER=helpbrowser
fi

dnl Sanity check to make sure the headers are there too and that gnome-config
dnl didn't lie to us
if test -n "$HELPBROWSER"; then
  CPPFLAGS="$CPPFLAGS $GTKXMHTML_CFLAGS"
  LDFLAGS="$LDFLAGS `echo $GTKXMHTML_LIBS | sed 's/\(.*\)\(-lgtkxmhtml.*\)/\1/'`"
  LIBS="$LIBS $GTKXMHTML_LIBS"

  AC_MSG_CHECKING([to see if we can build with GtkXMHTML])
  AC_TRY_LINK([#include <gtk-xmhtml/gtk-xmhtml.h>], [return 0;],
    gtkxmhtml_ok=yes, gtkxmhtml_ok=no)
  AC_MSG_RESULT($gtkxmhtml_ok)

  if test "$gtkxmhtml_ok" = no; then
    AC_MSG_WARN(*** Help browser plug-in will not be built (GtkXMHTML setup busted) ***)
    HELPBROWSER=
  fi
fi

448 449 450 451
CPPFLAGS="$gimp_save_CPPFLAGS"
LDFLAGS="$gimp_save_LDFLAGS"
LIBS="$gimp_save_LIBS"

452
dnl Threads
Manish Singh's avatar
Manish Singh committed
453 454 455 456 457 458 459 460 461 462 463 464 465
dnl AC_ARG_WITH(threads, [  --with-threads=[posix]  support threading ])
dnl GIMP_THREAD_LIBS=
dnl if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
dnl   AC_CHECK_LIB(pthread, pthread_attr_init, 
dnl     [AC_DEFINE(USE_PTHREADS)
dnl     GIMP_THREAD_LIBS="-lpthread"
dnl     GIMP_THREAD_FLAGS="-D_REENTRANT"],
dnl     # AIX has libpthreads, cause they're special. Special friends (TM)
dnl     AC_CHECK_LIB(pthreads, pthread_attr_init,
dnl       [AC_DEFINE(USE_PTHREADS)
dnl       GIMP_THREAD_LIBS="-lpthreads"
dnl       GIMP_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
dnl fi
466

467 468
dnl Multi-Processor Support
AC_ARG_WITH(mp, [  --with-mp=[no]          support multiple processors ])
469
GIMP_MP_LIBS=
470 471 472
if test "x$with_mp" = "xyes"; then
  AC_CHECK_LIB(pthread, pthread_attr_init, 
    [AC_DEFINE(ENABLE_MP)
473 474
    GIMP_MP_LIBS="-lpthread"
    GIMP_MP_FLAGS="-D_REENTRANT"],
475 476 477
    # AIX has libpthreads, cause they're special. Special friends (TM)
    AC_CHECK_LIB(pthreads, pthread_attr_init,
      [AC_DEFINE(ENABLE_MP)
478 479
      GIMP_MP_LIBS="-lpthreads"
      GIMP_MP_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
480 481
fi

482
gimpdatadir=$datadir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
483
gimpplugindir=$libdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
484
localedir='${prefix}/${DATADIRNAME}/locale'
Elliot Lee's avatar
Elliot Lee committed
485

486 487 488 489
brushdata=`ls -1 $srcdir/data/brushes | grep -v Makefile`
gradientdata=`ls -1 $srcdir/data/gradients | grep -v Makefile`
palettedata=`ls -1 $srcdir/data/palettes | grep -v Makefile`
patterndata=`ls -1 $srcdir/data/patterns | grep -v Makefile`
Manish Singh's avatar
Manish Singh committed
490 491 492 493 494 495

brushdata=`echo $brushdata`
gradientdata=`echo $gradientdata`
palettedata=`echo $palettedata`
patterndata=`echo $patterndata`

Elliot Lee's avatar
Elliot Lee committed
496
dnl This is for generating PDB docuemntation.
497
AC_PATH_PROGS(EMACS, emacs xemacs, :)
Elliot Lee's avatar
Elliot Lee committed
498

Sven Neumann's avatar
Sven Neumann committed
499 500 501 502 503 504
dnl This is for the developers documentation.
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
AC_SUBST(HAVE_GTK_DOC)

dnl Let people disable the gtk-doc stuff.
505
AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc        use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
Sven Neumann's avatar
Sven Neumann committed
506 507 508 509 510 511 512 513 514 515 516

if test x$enable_gtk_doc = xauto ; then
  if test x$GTKDOC = xtrue ; then
    enable_gtk_doc=yes
  else
    enable_gtk_doc=no
  fi
fi

AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)

517 518 519 520 521 522 523
AC_ARG_WITH(html-dir, [  --with-html-dir=PATH    path to installed docs ])
if test "x$with_html_dir" = "x" ; then
  HTML_DIR='${gimpdatadir}/devel-docs/html'
else
  HTML_DIR=$with_html_dir
fi

524 525 526 527 528 529
dnl This is for the mail plug-in
sendmail_path=":"
AC_ARG_ENABLE(sendmail_path, [  --with-sendmail=DIR     set sendmail command location],
if eval "test x$with_sendmail != x"; then
    sendmail_path=$with_sendmail
fi)
530
AC_PATH_PROG(SENDMAIL, "sendmail", $sendmail_path, $PATH:/usr/sbin:/usr/lib)
531 532 533 534 535

if test $ac_cv_path_SENDMAIL != ":"; then
  MAILER="-DMAILER=\\\"$ac_cv_path_SENDMAIL\\\""
fi

536
dnl This is for the print plug-in
537
lp_path=":"
538
AC_ARG_ENABLE(lp_path, [  --with-lp=DIR           set lp command location],
539 540 541
if eval "test x$with_lp != x"; then
    lp_path=$with_lp
fi)
542 543
AC_PATH_PROG(LP_COMMAND, "lp", $lp_path,
  $PATH:/usr/bin:/usr/sbin:/usr/ucb:/usr/bsd)
544

545 546
if test $ac_cv_path_LP_COMMAND != ":"; then
  LP_DEF="-DLP_COMMAND=\\\"$ac_cv_path_LP_COMMAND\\\""
547 548 549
fi

lpstat_path=":"
550
AC_ARG_ENABLE(lpstat_path, [  --with-lpstat=DIR       set lpstat command location],
551 552 553
if eval "test x$with_lpstat != x"; then
    lpstat_path=$with_lpstat
fi)
554 555
AC_PATH_PROG(LPSTAT_COMMAND, "lpstat", $lpstat_path,
  $PATH:/usr/bin:/usr/sbin:/usr/ucb:/usr/bsd)
556

557 558
if test $ac_cv_path_LPSTAT_COMMAND != ":"; then
  LPSTAT_DEF="-DLPSTAT_COMMAND=\\\"$ac_cv_path_LPSTAT_COMMAND\\\""
559 560 561
fi

lpr_path=":"
562
AC_ARG_ENABLE(lpr_path, [  --with-lpr=DIR          set lpr command location],
563 564 565
if eval "test x$with_lpr != x"; then
    lpr_path=$with_lpr
fi)
566 567
AC_PATH_PROG(LPR_COMMAND, "lpr", $lpr_path,
  $PATH:/usr/bin:/usr/sbin:/usr/ucb:/usr/bsd)
568

569 570
if test $ac_cv_path_LPR_COMMAND != ":"; then
  LPR_DEF="-DLPR_COMMAND=\\\"$ac_cv_path_LPR_COMMAND\\\""
571 572 573
fi

lpc_path=":"
574
AC_ARG_ENABLE(lpc_path, [  --with-lpc=DIR          set lpc command location],
575 576 577
if eval "test x$with_lpc != x"; then
    lpc_path=$with_lpc
fi)
578 579 580
AC_PATH_PROG(LPC_COMMAND, "lpc", $lpc_path,
  $PATH:/usr/bin:/usr/sbin:/usr/ucb:/usr/bsd)

581 582
if test $ac_cv_path_LPC_COMMAND != ":"; then
  LPC_DEF="-DLPC_COMMAND=\\\"$ac_cv_path_LPC_COMMAND\\\""
583
fi
584

585
dnl This is for the gimp-perl plug-in
Marc Lehmann's avatar
Marc Lehmann committed
586 587
AC_ARG_ENABLE(perl, [  --disable-perl          do not build perl extension [by default enabled]
  --enable-perl[=prefix]  use specified prefix for perl (see INSTALL)])
588 589 590 591 592 593 594 595 596 597 598

AC_ARG_WITH(pdbgen, [  --with-pdbgen           use 'pdbgen' code generation tool],
,
with_pdbgen=$enable_maintainer_mode)

if test "x$enable_perl" != xno || test "x$with_pdbgen" = xyes ; then
   AC_PATH_PROGS(PERL,perl5 perl perl5.005 perl5.004,perl)
fi

AM_CONDITIONAL(WITH_PDBGEN, test x$with_pdbgen = xyes)

599 600
rm -f plug-ins/perl/config.status

601
if test "x$enable_perl" != xno; then
Marc Lehmann's avatar
Marc Lehmann committed
602 603
   AC_MSG_CHECKING(for perl version >= 5.004_04)
   if test "`$PERL -e 'print $]>=5.004_04'`" = "1"; then
604 605 606
      AC_MSG_RESULT(yes)
      
      dnl perl does not allow VPATH builds (yet)
607 608
      if test ! -f plug-ins/perl/Makefile.PL; then
         mkdir plug-ins || true
609 610 611 612
         cp -r $srcdir/plug-ins/perl plug-ins/perl
      fi
      
      dnl these are gross hacks
Marc Lehmann's avatar
Marc Lehmann committed
613
      GIMP_CFLAGS_NOUI="-I\$topdir/../.. $GLIB_CFLAGS $GTK_CFLAGS"
Marc Lehmann's avatar
Marc Lehmann committed
614
      GIMP_CFLAGS="$GIMP_CFLAGS_NOUI"
Marc Lehmann's avatar
Marc Lehmann committed
615
      GIMP_LIBS_NOUI="-L\$topdir/../../libgimp/.libs -L\$topdir/../../libgimp -lgimp $GLIB_LIBS $LIBS"
Marc Lehmann's avatar
Marc Lehmann committed
616
      GIMP_LIBS="$GIMP_LIBS_NOUI -lgimpui"
617 618 619
      GIMPTOOL="../../gimptool"
      IN_GIMP=1
      EXTENSIVE_TESTS=0
620

621
      dnl include the autoconf fragment from there
Marc Lehmann's avatar
Marc Lehmann committed
622
      sinclude(plug-ins/perl/configure.frag)
623

624
      dnl we ignore prefix
Marc Lehmann's avatar
Marc Lehmann committed
625
      if test -n "$enable_perl" && test "x$enable_perl" != xyes; then
Marc Lehmann's avatar
Marc Lehmann committed
626 627
         perl_prefix="PREFIX=$enable_perl"
      fi
628 629
      cat >plug-ins/perl/config.status <<EOF
      echo invoking perl for configuration...
Marc Lehmann's avatar
Marc Lehmann committed
630
      $PERL Makefile.PL --writemakefile $perl_prefix
631
EOF
632 633 634 635
      GIMP_PERL=perl
   else
      GIMP_PERL=
      AC_MSG_RESULT(no)
Marc Lehmann's avatar
Marc Lehmann committed
636
      AC_MSG_WARN(*** gimp-perl plug-in won't be build (perl5.004_04 or higher required) ***)
637 638 639
   fi
fi

640
dnl Pygimp configure stuff ...
Manish Singh's avatar
Manish Singh committed
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
dnl AC_ARG_ENABLE(python,
dnl [  --disable-python        do not build python extension],,[enable_python=no])
dnl build_python=false
dnl if test "x$enable_python" != xno; then
dnl   AM_PATH_PYTHON
dnl   if test "x$PYTHON" != xno; then
dnl     AM_INIT_PYEXEC_MOD
dnl     if test "x$am_cv_python_makefile" != xno; then
dnl       PYGIMP_CFLAGS_NOUI="-I\$(top_srcdir) $GLIB_CFLAGS"
dnl       PYGIMP_LIBS_NOUI="-L\$(top_builddir)/libgimp/.libs -lgimp $GLIB_LIBS"
dnl 
dnl       build_python=true
dnl       AM_CHECK_PYMOD(gtk,,,build_python=false)
dnl     fi
dnl   fi
dnl fi
dnl AC_SUBST(PYGIMP_CFLAGS_NOUI)
dnl AC_SUBST(PYGIMP_LIBS_NOUI)
dnl AM_CONDITIONAL(BUILD_PYTHON, $build_python)
660 661
  

662 663 664 665 666
GIMPINSTALL=
if test "$INSTALL" = "$ac_install_sh"; then
  GIMPINSTALL="gimpinstall"
fi

Manish Singh's avatar
Manish Singh committed
667 668 669
GIMPDOCS=
if test -n "$DISTMAKE"; then
  WEBBROWSER=webbrowser TIFF=tiff JPEG=jpeg PNG=png AA=aa MPEG=mpeg
670
  XJT=xjt XPM=xpm GIMPDOCS=docs
Manish Singh's avatar
Manish Singh committed
671 672
fi

673 674
AM_CONDITIONAL(STATICLIBS, test x$enable_static = xyes)

675 676 677
AC_SUBST(GIMP_MAJOR_VERSION)
AC_SUBST(GIMP_MINOR_VERSION)
AC_SUBST(GIMP_MICRO_VERSION)
678
AC_SUBST(GIMP_VERSION)
679

Manish Singh's avatar
Manish Singh committed
680 681 682 683 684
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)

Manish Singh's avatar
Manish Singh committed
685 686 687
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

Elliot Lee's avatar
Elliot Lee committed
688 689 690
AC_SUBST(gimpdir)
AC_SUBST(gimpdatadir)
AC_SUBST(gimpplugindir)
Manish Singh's avatar
Manish Singh committed
691
AC_SUBST(localedir)
692 693 694 695
AC_SUBST(brushdata)
AC_SUBST(gradientdata)
AC_SUBST(palettedata)
AC_SUBST(patterndata)
Manish Singh's avatar
Manish Singh committed
696
AC_SUBST(WEBBROWSER)
Manish Singh's avatar
Manish Singh committed
697
AC_SUBST(LIBXMU)
Elliot Lee's avatar
Elliot Lee committed
698
AC_SUBST(TIFF)
Manish Singh's avatar
Manish Singh committed
699
AC_SUBST(LIBTIFF)
Elliot Lee's avatar
Elliot Lee committed
700
AC_SUBST(JPEG)
Sven Neumann's avatar
Sven Neumann committed
701
AC_SUBST(XJT)
Manish Singh's avatar
Manish Singh committed
702
AC_SUBST(LIBJPEG)
703 704
AC_SUBST(PSP)
AC_SUBST(LIBZ)
Elliot Lee's avatar
Elliot Lee committed
705
AC_SUBST(PNG)
Manish Singh's avatar
Manish Singh committed
706
AC_SUBST(LIBPNG)
707
AC_SUBST(AA)
Manish Singh's avatar
Manish Singh committed
708
AC_SUBST(LIBAA)
Elliot Lee's avatar
Elliot Lee committed
709
AC_SUBST(MPEG)
Manish Singh's avatar
Manish Singh committed
710
AC_SUBST(LIBMPEG)
711
AC_SUBST(GAP_DECODE_MPEG)
Elliot Lee's avatar
Elliot Lee committed
712
AC_SUBST(XPM)
Manish Singh's avatar
Manish Singh committed
713 714
AC_SUBST(LIBXPM)
AC_SUBST(LIBUCB)
715 716 717 718
AC_SUBST(LP_DEF)
AC_SUBST(LPSTAT_DEF)
AC_SUBST(LPR_DEF)
AC_SUBST(LPC_DEF)
719
AC_SUBST(MAILER)
720 721
AC_SUBST(GIMP_THREAD_FLAGS)
AC_SUBST(GIMP_THREAD_LIBS)
722 723
AC_SUBST(GIMP_MP_FLAGS)
AC_SUBST(GIMP_MP_LIBS)
724
AC_SUBST(GIMP_PERL)
Manish Singh's avatar
Manish Singh committed
725
AC_SUBST(GIMPDOCS)
726
AC_SUBST(GIMPINSTALL)
Manish Singh's avatar
Manish Singh committed
727 728 729
AC_SUBST(HELPBROWSER)
AC_SUBST(GTKXMHTML_CFLAGS)
AC_SUBST(GTKXMHTML_LIBS)
730
AC_SUBST(HTML_DIR)
Elliot Lee's avatar
Elliot Lee committed
731

732 733 734 735 736 737
dnl easy way to skip the plug-in build
GIMP_PLUGINS=plug-ins
GIMP_MODULES=modules
AC_SUBST(GIMP_PLUGINS)
AC_SUBST(GIMP_MODULES)

Elliot Lee's avatar
Elliot Lee committed
738 739
dnl Output the Makefiles

740
AC_OUTPUT([
Sven Neumann's avatar
removed  
Sven Neumann committed
741
gimp.1
Elliot Lee's avatar
Elliot Lee committed
742
gimprc
743
gimprc_user
744
gimprc.5
745
gimptool
Sven Neumann's avatar
removed  
Sven Neumann committed
746
gimp.spec
Manish Singh's avatar
Manish Singh committed
747
libgimp/gimpfeatures.h
748 749
libgimp/Makefile
app/Makefile
Elliot Lee's avatar
Elliot Lee committed
750
plug-ins/Makefile
Marc Lehmann's avatar
Marc Lehmann committed
751
plug-ins/perl/config.pl
752 753
plug-ins/libgck/Makefile
plug-ins/libgck/gck/Makefile
Elliot Lee's avatar
Elliot Lee committed
754 755 756
plug-ins/dbbrowser/Makefile
plug-ins/script-fu/Makefile
plug-ins/script-fu/scripts/Makefile
757
plug-ins/webbrowser/Makefile
Sven Neumann's avatar
Sven Neumann committed
758
plug-ins/xjt/Makefile
759
plug-ins/AlienMap/Makefile
760
plug-ins/AlienMap2/Makefile
Michael Natterer's avatar
Michael Natterer committed
761 762
plug-ins/FractalExplorer/Makefile
plug-ins/FractalExplorer/fractalexplorer-examples/Makefile
763 764 765
plug-ins/Lighting/Makefile
plug-ins/MapObject/Makefile
plug-ins/bmp/Makefile
Manish Singh's avatar
Manish Singh committed
766
plug-ins/common/Makefile
767 768 769
plug-ins/faxg3/Makefile
plug-ins/fits/Makefile
plug-ins/flame/Makefile
770
plug-ins/fp/Makefile
771
plug-ins/gap/Makefile
Manish Singh's avatar
Manish Singh committed
772
plug-ins/gdyntext/Makefile
773
plug-ins/gfig/Makefile
Manish Singh's avatar
Manish Singh committed
774
plug-ins/gfig/gfig-examples/Makefile
Marc Lehmann's avatar
Marc Lehmann committed
775
plug-ins/gflare/Makefile
Sven Neumann's avatar
Sven Neumann committed
776
plug-ins/gflare/gflares/Makefile
777
plug-ins/gfli/Makefile
Manish Singh's avatar
Manish Singh committed
778 779 780 781
plug-ins/gimpressionist/Makefile
plug-ins/gimpressionist/Brushes/Makefile
plug-ins/gimpressionist/Paper/Makefile
plug-ins/gimpressionist/Presets/Makefile
Manish Singh's avatar
Manish Singh committed
782
plug-ins/helpbrowser/Makefile
783
plug-ins/ifscompose/Makefile
Sven Neumann's avatar
Sven Neumann committed
784
plug-ins/imagemap/Makefile
785 786 787 788
plug-ins/maze/Makefile
plug-ins/mosaic/Makefile
plug-ins/pagecurl/Makefile
plug-ins/print/Makefile
Sven Neumann's avatar
Sven Neumann committed
789
plug-ins/rcm/Makefile
790
plug-ins/sel2path/Makefile
791 792 793
plug-ins/sgi/Makefile
plug-ins/sinus/Makefile
plug-ins/struc/Makefile
794
modules/Makefile
Sven Neumann's avatar
Sven Neumann committed
795 796
devel-docs/Makefile
devel-docs/libgimp/Makefile
797
devel-docs/pdb/Makefile
Manish Singh's avatar
Manish Singh committed
798 799 800 801
data/Makefile
data/brushes/Makefile
data/gradients/Makefile
data/palettes/Makefile
802
data/patterns/Makefile
803 804
Makefile
po/Makefile.in
805
po-libgimp/Makefile.in
806
po-plug-ins/Makefile.in
Sven Neumann's avatar
Sven Neumann committed
807
po-script-fu/Makefile.in
808 809
intl/Makefile
tools/Makefile
Manish Singh's avatar
Manish Singh committed
810
tools/pdbgen/Makefile
Michael Natterer's avatar
Michael Natterer committed
811
tips/Makefile
812
help/Makefile
813
help/C/Makefile
Michael Natterer's avatar
Michael Natterer committed
814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829
help/C/channels/Makefile
help/C/dialogs/Makefile
help/C/dialogs/channels/Makefile
help/C/dialogs/color_selectors/Makefile
help/C/dialogs/display_filters/Makefile
help/C/dialogs/gradient_editor/Makefile
help/C/dialogs/layers/Makefile
help/C/dialogs/palette_editor/Makefile
help/C/dialogs/paths/Makefile
help/C/dialogs/preferences/Makefile
help/C/file/Makefile
help/C/filters/Makefile
help/C/image/Makefile
help/C/image/edit/Makefile
help/C/image/image/Makefile
help/C/image/image/colors/Makefile
830 831
help/C/image/image/colors/auto/Makefile
help/C/image/image/mode/Makefile
Michael Natterer's avatar
Michael Natterer committed
832 833 834 835 836 837 838 839 840
help/C/image/image/transforms/Makefile
help/C/image/select/Makefile
help/C/image/view/Makefile
help/C/layers/Makefile
help/C/layers/stack/Makefile
help/C/open/Makefile
help/C/paths/Makefile
help/C/save/Makefile
help/C/toolbox/Makefile
841
help/C/toolbox/help/Makefile
Michael Natterer's avatar
Michael Natterer committed
842 843
help/C/tools/Makefile
help/images/Makefile],
844 845 846
[
   chmod +x gimptool
   sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
847
   sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
848
   sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
Sven Neumann's avatar
Sven Neumann committed
849
   sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile
850 851
   case "$CONFIG_FILES" in
   *plug-ins/perl*)
852
      if test -f plug-ins/perl/config.status; then
853
         ( cd plug-ins/perl; ${CONFIG_SHELL-/bin/sh} config.status )
854 855 856 857
      fi
      ;;
   esac
]
Elliot Lee's avatar
Elliot Lee committed
858
)