~ubuntu-branches/ubuntu/utopic/gimp/utopic

« back to all changes in this revision

Viewing changes to .pc/fix-python-multiarch-includes.patch/configure

  • Committer: Package Import Robot
  • Author(s): Chris J Arges
  • Date: 2013-01-14 15:06:30 UTC
  • Revision ID: package-import@ubuntu.com-20130114150630-l2otu0hjqhnwb6qm
Tags: 2.8.2-1ubuntu3
Fix multi-arch python includes issues. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.69 for GIMP 2.8.2.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in #((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in # ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in #(
 
172
  *posix*) :
 
173
    set -o posix ;; #(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
 
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
 
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in #(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in # ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
# as_fn_unset VAR
 
298
# ---------------
 
299
# Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
# as_fn_set_status STATUS
 
307
# -----------------------
 
308
# Set $? to STATUS, without forking.
 
309
as_fn_set_status ()
 
310
{
 
311
  return $1
 
312
} # as_fn_set_status
 
313
 
 
314
# as_fn_exit STATUS
 
315
# -----------------
 
316
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
317
as_fn_exit ()
 
318
{
 
319
  set +e
 
320
  as_fn_set_status $1
 
321
  exit $1
 
322
} # as_fn_exit
 
323
 
 
324
# as_fn_mkdir_p
 
325
# -------------
 
326
# Create "$as_dir" as a directory, including parents if necessary.
 
327
as_fn_mkdir_p ()
 
328
{
 
329
 
 
330
  case $as_dir in #(
 
331
  -*) as_dir=./$as_dir;;
 
332
  esac
 
333
  test -d "$as_dir" || eval $as_mkdir_p || {
 
334
    as_dirs=
 
335
    while :; do
 
336
      case $as_dir in #(
 
337
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
338
      *) as_qdir=$as_dir;;
 
339
      esac
 
340
      as_dirs="'$as_qdir' $as_dirs"
 
341
      as_dir=`$as_dirname -- "$as_dir" ||
 
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
343
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
344
         X"$as_dir" : 'X\(//\)$' \| \
 
345
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
346
$as_echo X"$as_dir" |
 
347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)[^/].*/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\/\)$/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          /^X\(\/\).*/{
 
360
            s//\1/
 
361
            q
 
362
          }
 
363
          s/.*/./; q'`
 
364
      test -d "$as_dir" && break
 
365
    done
 
366
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
367
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
368
 
 
369
 
 
370
} # as_fn_mkdir_p
 
371
 
 
372
# as_fn_executable_p FILE
 
373
# -----------------------
 
374
# Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} # as_fn_executable_p
 
379
# as_fn_append VAR VALUE
 
380
# ----------------------
 
381
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
382
# advantage of any shell optimizations that allow amortized linear growth over
 
383
# repeated appends, instead of the typical quadratic growth present in naive
 
384
# implementations.
 
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
386
  eval 'as_fn_append ()
 
387
  {
 
388
    eval $1+=\$2
 
389
  }'
 
390
else
 
391
  as_fn_append ()
 
392
  {
 
393
    eval $1=\$$1\$2
 
394
  }
 
395
fi # as_fn_append
 
396
 
 
397
# as_fn_arith ARG...
 
398
# ------------------
 
399
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
401
# must be portable across $(()) and expr.
 
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
403
  eval 'as_fn_arith ()
 
404
  {
 
405
    as_val=$(( $* ))
 
406
  }'
 
407
else
 
408
  as_fn_arith ()
 
409
  {
 
410
    as_val=`expr "$@" || test $? -eq 1`
 
411
  }
 
412
fi # as_fn_arith
 
413
 
 
414
 
 
415
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
416
# ----------------------------------------
 
417
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
418
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
419
# script with STATUS, using 1 if that was 0.
 
420
as_fn_error ()
 
421
{
 
422
  as_status=$1; test $as_status -eq 0 && as_status=1
 
423
  if test "$4"; then
 
424
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
425
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
426
  fi
 
427
  $as_echo "$as_me: error: $2" >&2
 
428
  as_fn_exit $as_status
 
429
} # as_fn_error
 
430
 
 
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
433
  as_expr=expr
 
434
else
 
435
  as_expr=false
 
436
fi
 
437
 
 
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
439
  as_basename=basename
 
440
else
 
441
  as_basename=false
 
442
fi
 
443
 
 
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
445
  as_dirname=dirname
 
446
else
 
447
  as_dirname=false
 
448
fi
 
449
 
 
450
as_me=`$as_basename -- "$0" ||
 
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
452
         X"$0" : 'X\(//\)$' \| \
 
453
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
454
$as_echo X/"$0" |
 
455
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\/\)$/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          /^X\/\(\/\).*/{
 
464
            s//\1/
 
465
            q
 
466
          }
 
467
          s/.*/./; q'`
 
468
 
 
469
# Avoid depending upon Character Ranges.
 
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
473
as_cr_digits='0123456789'
 
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
475
 
 
476
 
 
477
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
478
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
479
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
480
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
481
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
482
  sed -n '
 
483
    p
 
484
    /[$]LINENO/=
 
485
  ' <$as_myself |
 
486
    sed '
 
487
      s/[$]LINENO.*/&-/
 
488
      t lineno
 
489
      b
 
490
      :lineno
 
491
      N
 
492
      :loop
 
493
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
494
      t loop
 
495
      s/-\n.*//
 
496
    ' >$as_me.lineno &&
 
497
  chmod +x "$as_me.lineno" ||
 
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
 
504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
505
  # (the dirname of $[0] is not the place where we might find the
 
506
  # original and so on.  Autoconf is especially sensitive to this).
 
507
  . "./$as_me.lineno"
 
508
  # Exit status is that of the last command.
 
509
  exit
 
510
}
 
511
 
 
512
ECHO_C= ECHO_N= ECHO_T=
 
513
case `echo -n x` in #(((((
 
514
-n*)
 
515
  case `echo 'xy\c'` in
 
516
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
517
  xy)  ECHO_C='\c';;
 
518
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
519
       ECHO_T=' ';;
 
520
  esac;;
 
521
*)
 
522
  ECHO_N='-n';;
 
523
esac
 
524
 
 
525
rm -f conf$$ conf$$.exe conf$$.file
 
526
if test -d conf$$.dir; then
 
527
  rm -f conf$$.dir/conf$$.file
 
528
else
 
529
  rm -f conf$$.dir
 
530
  mkdir conf$$.dir 2>/dev/null
 
531
fi
 
532
if (echo >conf$$.file) 2>/dev/null; then
 
533
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
534
    as_ln_s='ln -s'
 
535
    # ... but there are two gotchas:
 
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
538
    # In both cases, we have to default to `cp -pR'.
 
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
540
      as_ln_s='cp -pR'
 
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
542
    as_ln_s=ln
 
543
  else
 
544
    as_ln_s='cp -pR'
 
545
  fi
 
546
else
 
547
  as_ln_s='cp -pR'
 
548
fi
 
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
550
rmdir conf$$.dir 2>/dev/null
 
551
 
 
552
if mkdir -p . 2>/dev/null; then
 
553
  as_mkdir_p='mkdir -p "$as_dir"'
 
554
else
 
555
  test -d ./-p && rmdir ./-p
 
556
  as_mkdir_p=false
 
557
fi
 
558
 
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
 
561
 
 
562
# Sed expression to map a string onto a valid CPP name.
 
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
564
 
 
565
# Sed expression to map a string onto a valid variable name.
 
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
 
569
 
 
570
 
 
571
test -n "$DJDIR" || exec 7<&0 </dev/null
 
572
exec 6>&1
 
573
 
 
574
# Name of the host.
 
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
576
# so uname gets run too.
 
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
578
 
 
579
#
 
580
# Initializations.
 
581
#
 
582
ac_default_prefix=/usr/local
 
583
ac_clean_files=
 
584
ac_config_libobj_dir=.
 
585
LIBOBJS=
 
586
cross_compiling=no
 
587
subdirs=
 
588
MFLAGS=
 
589
MAKEFLAGS=
 
590
 
 
591
# Identity of this package.
 
592
PACKAGE_NAME='GIMP'
 
593
PACKAGE_TARNAME='gimp'
 
594
PACKAGE_VERSION='2.8.2'
 
595
PACKAGE_STRING='GIMP 2.8.2'
 
596
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP'
 
597
PACKAGE_URL=''
 
598
 
 
599
ac_unique_file="app/core/gimp.c"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_subst_vars='am__EXEEXT_FALSE
 
637
am__EXEEXT_TRUE
 
638
LTLIBOBJS
 
639
LIBOBJS
 
640
GIMP_MODULES
 
641
GIMP_PLUGINS
 
642
MIME_TYPES
 
643
GIMP_MKENUMS
 
644
STATICLIBS_FALSE
 
645
STATICLIBS_TRUE
 
646
gimplocaledir
 
647
gimpsysconfdir
 
648
gimpplugindir
 
649
gimpdatadir
 
650
gimpdir
 
651
ENABLE_GIMP_CONSOLE_FALSE
 
652
ENABLE_GIMP_CONSOLE_TRUE
 
653
DEFAULT_BINARY_FALSE
 
654
DEFAULT_BINARY_TRUE
 
655
ENABLE_GTK_DOC_APP_FALSE
 
656
ENABLE_GTK_DOC_APP_TRUE
 
657
GTK_DOC_USE_REBASE_FALSE
 
658
GTK_DOC_USE_REBASE_TRUE
 
659
GTK_DOC_USE_LIBTOOL_FALSE
 
660
GTK_DOC_USE_LIBTOOL_TRUE
 
661
GTK_DOC_BUILD_PDF_FALSE
 
662
GTK_DOC_BUILD_PDF_TRUE
 
663
GTK_DOC_BUILD_HTML_FALSE
 
664
GTK_DOC_BUILD_HTML_TRUE
 
665
ENABLE_GTK_DOC_FALSE
 
666
ENABLE_GTK_DOC_TRUE
 
667
GTKDOC_DEPS_LIBS
 
668
GTKDOC_DEPS_CFLAGS
 
669
HTML_DIR
 
670
GTKDOC_MKPDF
 
671
GTKDOC_REBASE
 
672
GTKDOC_CHECK
 
673
HAVE_XVFB_RUN_FALSE
 
674
HAVE_XVFB_RUN_TRUE
 
675
XVFB_RUN
 
676
HAVE_XSLTPROC_FALSE
 
677
HAVE_XSLTPROC_TRUE
 
678
XSLTPROC
 
679
HAVE_XMLLINT_FALSE
 
680
HAVE_XMLLINT_TRUE
 
681
XMLLINT
 
682
DESKTOP_DATADIR
 
683
DESKTOP_DATADIR_FALSE
 
684
DESKTOP_DATADIR_TRUE
 
685
HAVE_MAC_TWAIN_FALSE
 
686
HAVE_MAC_TWAIN_TRUE
 
687
PLATFORM_OSX_FALSE
 
688
PLATFORM_OSX_TRUE
 
689
SCREENSHOT
 
690
MAIL
 
691
BUILD_SCRIPT_FU_FALSE
 
692
BUILD_SCRIPT_FU_TRUE
 
693
BUILD_PYTHON_FALSE
 
694
BUILD_PYTHON_TRUE
 
695
PYGIMP_EXTRA_CFLAGS
 
696
PYGTK_DEFSDIR
 
697
PYGTK_CODEGEN
 
698
PYGTK_LIBS
 
699
PYGTK_CFLAGS
 
700
PYBIN_PATH
 
701
PYLINK_LIBS
 
702
PYTHON_INCLUDES
 
703
pkgpyexecdir
 
704
pyexecdir
 
705
pkgpythondir
 
706
pythondir
 
707
PYTHON_PLATFORM
 
708
PYTHON_EXEC_PREFIX
 
709
PYTHON_PREFIX
 
710
PYTHON_VERSION
 
711
PYTHON
 
712
WITH_PDBGEN_FALSE
 
713
WITH_PDBGEN_TRUE
 
714
PERL
 
715
SENDMAIL
 
716
GUDEV_LIBS
 
717
GUDEV_CFLAGS
 
718
DBUS_BINDING_TOOL
 
719
DBUS_GLIB_LIBS
 
720
DBUS_GLIB_CFLAGS
 
721
HAVE_DX_DINPUT_FALSE
 
722
HAVE_DX_DINPUT_TRUE
 
723
HAVE_LINUX_INPUT_FALSE
 
724
HAVE_LINUX_INPUT_TRUE
 
725
ALSA_LIBS
 
726
ALSA_CFLAGS
 
727
FILE_XMC
 
728
XMC_LIBS
 
729
XMC_CFLAGS
 
730
HAVE_LCMS_FALSE
 
731
HAVE_LCMS_TRUE
 
732
LCMS
 
733
LCMS_LIBS
 
734
LCMS_CFLAGS
 
735
JP2_LIBS
 
736
FILE_JP2_LOAD
 
737
BUILD_JP2_FALSE
 
738
BUILD_JP2_TRUE
 
739
WMF_CFLAGS
 
740
WMF_LIBS
 
741
FILE_WMF
 
742
WMF_CONFIG
 
743
HAVE_LIBCURL_FALSE
 
744
HAVE_LIBCURL_TRUE
 
745
CURL_LIBS
 
746
CURL_CFLAGS
 
747
HAVE_GVFS_FALSE
 
748
HAVE_GVFS_TRUE
 
749
FILE_PDF_SAVE
 
750
CAIRO_PDF_LIBS
 
751
CAIRO_PDF_CFLAGS
 
752
FILE_PDF_LOAD
 
753
POPPLER_LIBS
 
754
POPPLER_CFLAGS
 
755
BUILD_PRINT_FALSE
 
756
BUILD_PRINT_TRUE
 
757
FILE_SVG
 
758
SVG_LIBS
 
759
SVG_CFLAGS
 
760
HAVE_WEBKIT_FALSE
 
761
HAVE_WEBKIT_TRUE
 
762
WEB_PAGE
 
763
WEBKIT_LIBS
 
764
WEBKIT_CFLAGS
 
765
XPM_LIBS
 
766
FILE_XPM
 
767
AA_LIBS
 
768
FILE_AA
 
769
HAVE_LIBEXIF_FALSE
 
770
HAVE_LIBEXIF_TRUE
 
771
EXIF_LIBS
 
772
EXIF_CFLAGS
 
773
MNG_CFLAGS
 
774
MNG_LIBS
 
775
FILE_MNG
 
776
HAVE_PNG_FALSE
 
777
HAVE_PNG_TRUE
 
778
FILE_PNG
 
779
PNG_LIBS
 
780
PNG_CFLAGS
 
781
GS_LIBS
 
782
HAVE_GS_FALSE
 
783
HAVE_GS_TRUE
 
784
FILE_PS
 
785
BZIP2_LIBS
 
786
HAVE_BZIP2_FALSE
 
787
HAVE_BZIP2_TRUE
 
788
Z_LIBS
 
789
HAVE_Z_FALSE
 
790
HAVE_Z_TRUE
 
791
FILE_PSP
 
792
BUILD_XJT_FALSE
 
793
BUILD_XJT_TRUE
 
794
JPEG_LIBS
 
795
BUILD_JPEG_FALSE
 
796
BUILD_JPEG_TRUE
 
797
TIFF_LIBS
 
798
FILE_TIFF_SAVE
 
799
FILE_TIFF_LOAD
 
800
GIMP_COMMAND
 
801
DOC_SHOOTER
 
802
SCREENSHOT_LIBS
 
803
XMU_LIBS
 
804
XFIXES_LIBS
 
805
XFIXES_CFLAGS
 
806
SYMPREFIX
 
807
RT_LIBS
 
808
ALTIVEC_EXTRA_CFLAGS
 
809
SSE_EXTRA_CFLAGS
 
810
MMX_EXTRA_CFLAGS
 
811
SOCKET_LIBS
 
812
HAVE_ISFINITE
 
813
HAVE_FINITE
 
814
FREETYPE_LIBS
 
815
FREETYPE_CONFIG
 
816
FONTCONFIG_LIBS
 
817
FONTCONFIG_CFLAGS
 
818
PANGOCAIRO_LIBS
 
819
PANGOCAIRO_CFLAGS
 
820
CAIRO_LIBS
 
821
CAIRO_CFLAGS
 
822
GDK_PIXBUF_CSOURCE
 
823
GDK_PIXBUF_LIBS
 
824
GDK_PIXBUF_CFLAGS
 
825
GTK_LIBS
 
826
GTK_CFLAGS
 
827
X_EXTRA_LIBS
 
828
X_LIBS
 
829
X_PRE_LIBS
 
830
X_CFLAGS
 
831
XMKMF
 
832
GIO_LIBS
 
833
GIO_CFLAGS
 
834
GMODULE_NO_EXPORT_LIBS
 
835
GMODULE_NO_EXPORT_CFLAGS
 
836
GLIB_COMPILE_RESOURCES
 
837
GLIB_MKENUMS
 
838
GOBJECT_QUERY
 
839
GLIB_GENMARSHAL
 
840
GLIB_LIBS
 
841
GLIB_CFLAGS
 
842
ATK_LIBS
 
843
ATK_CFLAGS
 
844
GEGL_LIBS
 
845
GEGL_CFLAGS
 
846
BABL_LIBS
 
847
BABL_CFLAGS
 
848
ISO_CODES_LOCALEDIR
 
849
ISO_CODES_LOCATION
 
850
MKINSTALLDIRS
 
851
POSUB
 
852
POFILES
 
853
PO_IN_DATADIR_FALSE
 
854
PO_IN_DATADIR_TRUE
 
855
INTLLIBS
 
856
INSTOBJEXT
 
857
GMOFILES
 
858
CATOBJEXT
 
859
CATALOGS
 
860
MSGFMT_OPTS
 
861
DATADIRNAME
 
862
ALL_LINGUAS
 
863
INTLTOOL_PERL
 
864
GMSGFMT
 
865
MSGFMT
 
866
MSGMERGE
 
867
XGETTEXT
 
868
INTLTOOL_POLICY_RULE
 
869
INTLTOOL_SERVICE_RULE
 
870
INTLTOOL_THEME_RULE
 
871
INTLTOOL_SCHEMAS_RULE
 
872
INTLTOOL_CAVES_RULE
 
873
INTLTOOL_XML_NOMERGE_RULE
 
874
INTLTOOL_XML_RULE
 
875
INTLTOOL_KBD_RULE
 
876
INTLTOOL_XAM_RULE
 
877
INTLTOOL_UI_RULE
 
878
INTLTOOL_SOUNDLIST_RULE
 
879
INTLTOOL_SHEET_RULE
 
880
INTLTOOL_SERVER_RULE
 
881
INTLTOOL_PONG_RULE
 
882
INTLTOOL_OAF_RULE
 
883
INTLTOOL_PROP_RULE
 
884
INTLTOOL_KEYS_RULE
 
885
INTLTOOL_DIRECTORY_RULE
 
886
INTLTOOL_DESKTOP_RULE
 
887
intltool__v_merge_options_0
 
888
intltool__v_merge_options_
 
889
INTLTOOL_V_MERGE_OPTIONS
 
890
INTLTOOL__v_MERGE_0
 
891
INTLTOOL__v_MERGE_
 
892
INTLTOOL_V_MERGE
 
893
INTLTOOL_EXTRACT
 
894
INTLTOOL_MERGE
 
895
INTLTOOL_UPDATE
 
896
USE_NLS
 
897
USE_BINRELOC_FALSE
 
898
USE_BINRELOC_TRUE
 
899
BINRELOC_LIBS
 
900
BINRELOC_CFLAGS
 
901
ALLOCA
 
902
HAVE_WINDRES_FALSE
 
903
HAVE_WINDRES_TRUE
 
904
MS_LIB_AVAILABLE_FALSE
 
905
MS_LIB_AVAILABLE_TRUE
 
906
WINDRES
 
907
ms_librarian
 
908
OS_UNIX_FALSE
 
909
OS_UNIX_TRUE
 
910
OS_WIN32_FALSE
 
911
OS_WIN32_TRUE
 
912
PATHSEP
 
913
WIN32_LARGE_ADDRESS_AWARE
 
914
PLATFORM_WIN32_FALSE
 
915
PLATFORM_WIN32_TRUE
 
916
PKG_CONFIG_LIBDIR
 
917
PKG_CONFIG_PATH
 
918
PKG_CONFIG
 
919
MAINT
 
920
MAINTAINER_MODE_FALSE
 
921
MAINTAINER_MODE_TRUE
 
922
am__fastdepCCAS_FALSE
 
923
am__fastdepCCAS_TRUE
 
924
CCASDEPMODE
 
925
CCASFLAGS
 
926
CCAS
 
927
CPP
 
928
OTOOL64
 
929
OTOOL
 
930
LIPO
 
931
NMEDIT
 
932
DSYMUTIL
 
933
MANIFEST_TOOL
 
934
RANLIB
 
935
ac_ct_AR
 
936
AR
 
937
LN_S
 
938
NM
 
939
ac_ct_DUMPBIN
 
940
DUMPBIN
 
941
LD
 
942
FGREP
 
943
EGREP
 
944
GREP
 
945
SED
 
946
host_os
 
947
host_vendor
 
948
host_cpu
 
949
host
 
950
build_os
 
951
build_vendor
 
952
build_cpu
 
953
build
 
954
LIBTOOL
 
955
OBJDUMP
 
956
DLLTOOL
 
957
AS
 
958
am__fastdepCC_FALSE
 
959
am__fastdepCC_TRUE
 
960
CCDEPMODE
 
961
am__nodep
 
962
AMDEPBACKSLASH
 
963
AMDEP_FALSE
 
964
AMDEP_TRUE
 
965
am__quote
 
966
am__include
 
967
DEPDIR
 
968
OBJEXT
 
969
EXEEXT
 
970
ac_ct_CC
 
971
CPPFLAGS
 
972
LDFLAGS
 
973
CFLAGS
 
974
CC
 
975
GETTEXT_PACKAGE
 
976
LT_CURRENT_MINUS_AGE
 
977
LT_VERSION_INFO
 
978
GIMP_UNSTABLE_FALSE
 
979
GIMP_UNSTABLE_TRUE
 
980
CAIRO_REQUIRED_VERSION
 
981
GTK_REQUIRED_VERSION
 
982
GDK_PIXBUF_REQUIRED_VERSION
 
983
GLIB_REQUIRED_VERSION
 
984
GIMP_FULL_NAME
 
985
GIMP_UNSTABLE
 
986
GIMP_USER_VERSION
 
987
GIMP_SYSCONF_VERSION
 
988
GIMP_DATA_VERSION
 
989
GIMP_PKGCONFIG_VERSION
 
990
GIMP_TOOL_VERSION
 
991
GIMP_PLUGIN_VERSION
 
992
GIMP_APP_VERSION
 
993
GIMP_API_VERSION
 
994
GIMP_REAL_VERSION
 
995
GIMP_VERSION
 
996
GIMP_BINARY_AGE
 
997
GIMP_INTERFACE_AGE
 
998
GIMP_MICRO_VERSION
 
999
GIMP_MINOR_VERSION
 
1000
GIMP_MAJOR_VERSION
 
1001
AM_BACKSLASH
 
1002
AM_DEFAULT_VERBOSITY
 
1003
AM_DEFAULT_V
 
1004
AM_V
 
1005
am__untar
 
1006
am__tar
 
1007
AMTAR
 
1008
am__leading_dot
 
1009
SET_MAKE
 
1010
AWK
 
1011
mkdir_p
 
1012
MKDIR_P
 
1013
INSTALL_STRIP_PROGRAM
 
1014
STRIP
 
1015
install_sh
 
1016
MAKEINFO
 
1017
AUTOHEADER
 
1018
AUTOMAKE
 
1019
AUTOCONF
 
1020
ACLOCAL
 
1021
VERSION
 
1022
PACKAGE
 
1023
CYGPATH_W
 
1024
am__isrc
 
1025
INSTALL_DATA
 
1026
INSTALL_SCRIPT
 
1027
INSTALL_PROGRAM
 
1028
target_alias
 
1029
host_alias
 
1030
build_alias
 
1031
LIBS
 
1032
ECHO_T
 
1033
ECHO_N
 
1034
ECHO_C
 
1035
DEFS
 
1036
mandir
 
1037
localedir
 
1038
libdir
 
1039
psdir
 
1040
pdfdir
 
1041
dvidir
 
1042
htmldir
 
1043
infodir
 
1044
docdir
 
1045
oldincludedir
 
1046
includedir
 
1047
localstatedir
 
1048
sharedstatedir
 
1049
sysconfdir
 
1050
datadir
 
1051
datarootdir
 
1052
libexecdir
 
1053
sbindir
 
1054
bindir
 
1055
program_transform_name
 
1056
prefix
 
1057
exec_prefix
 
1058
PACKAGE_URL
 
1059
PACKAGE_BUGREPORT
 
1060
PACKAGE_STRING
 
1061
PACKAGE_VERSION
 
1062
PACKAGE_TARNAME
 
1063
PACKAGE_NAME
 
1064
PATH_SEPARATOR
 
1065
SHELL'
 
1066
ac_subst_files=''
 
1067
ac_user_opts='
 
1068
enable_option_checking
 
1069
enable_silent_rules
 
1070
enable_dependency_tracking
 
1071
enable_static
 
1072
enable_shared
 
1073
with_pic
 
1074
enable_fast_install
 
1075
with_gnu_ld
 
1076
with_sysroot
 
1077
enable_libtool_lock
 
1078
enable_maintainer_mode
 
1079
enable_largefile
 
1080
enable_debug
 
1081
enable_profile
 
1082
enable_ansi
 
1083
enable_binreloc
 
1084
enable_binreloc_threads
 
1085
enable_nls
 
1086
enable_glibtest
 
1087
with_x
 
1088
enable_gtktest
 
1089
enable_mmx
 
1090
enable_sse
 
1091
enable_altivec
 
1092
with_shm
 
1093
enable_mp
 
1094
with_libtiff
 
1095
with_libjpeg
 
1096
with_bzip2
 
1097
with_gs
 
1098
with_libpng
 
1099
with_libmng
 
1100
with_libexif
 
1101
with_aa
 
1102
with_libxpm
 
1103
with_webkit
 
1104
with_librsvg
 
1105
with_print
 
1106
with_poppler
 
1107
with_cairo_pdf
 
1108
with_gvfs
 
1109
with_libcurl
 
1110
with_wmf
 
1111
with_libjasper
 
1112
with_lcms
 
1113
with_xmc
 
1114
with_alsa
 
1115
with_alsa_prefix
 
1116
with_alsa_inc_prefix
 
1117
enable_alsatest
 
1118
with_linux_input
 
1119
with_directx_sdk
 
1120
with_dbus
 
1121
with_gudev
 
1122
with_gif_compression
 
1123
with_sendmail
 
1124
with_pdbgen
 
1125
enable_python
 
1126
with_script_fu
 
1127
with_mac_twain
 
1128
with_desktop_dir
 
1129
with_xvfb_run
 
1130
with_html_dir
 
1131
enable_gtk_doc
 
1132
enable_gtk_doc_html
 
1133
enable_gtk_doc_pdf
 
1134
enable_gtk_doc_app
 
1135
enable_default_binary
 
1136
enable_gimp_console
 
1137
with_gimpdir
 
1138
'
 
1139
      ac_precious_vars='build_alias
 
1140
host_alias
 
1141
target_alias
 
1142
CC
 
1143
CFLAGS
 
1144
LDFLAGS
 
1145
LIBS
 
1146
CPPFLAGS
 
1147
CPP
 
1148
CCAS
 
1149
CCASFLAGS
 
1150
PKG_CONFIG
 
1151
PKG_CONFIG_PATH
 
1152
PKG_CONFIG_LIBDIR
 
1153
BABL_CFLAGS
 
1154
BABL_LIBS
 
1155
GEGL_CFLAGS
 
1156
GEGL_LIBS
 
1157
ATK_CFLAGS
 
1158
ATK_LIBS
 
1159
GMODULE_NO_EXPORT_CFLAGS
 
1160
GMODULE_NO_EXPORT_LIBS
 
1161
GIO_CFLAGS
 
1162
GIO_LIBS
 
1163
XMKMF
 
1164
GDK_PIXBUF_CFLAGS
 
1165
GDK_PIXBUF_LIBS
 
1166
CAIRO_CFLAGS
 
1167
CAIRO_LIBS
 
1168
PANGOCAIRO_CFLAGS
 
1169
PANGOCAIRO_LIBS
 
1170
FONTCONFIG_CFLAGS
 
1171
FONTCONFIG_LIBS
 
1172
XFIXES_CFLAGS
 
1173
XFIXES_LIBS
 
1174
PNG_CFLAGS
 
1175
PNG_LIBS
 
1176
EXIF_CFLAGS
 
1177
EXIF_LIBS
 
1178
WEBKIT_CFLAGS
 
1179
WEBKIT_LIBS
 
1180
SVG_CFLAGS
 
1181
SVG_LIBS
 
1182
POPPLER_CFLAGS
 
1183
POPPLER_LIBS
 
1184
CAIRO_PDF_CFLAGS
 
1185
CAIRO_PDF_LIBS
 
1186
CURL_CFLAGS
 
1187
CURL_LIBS
 
1188
LCMS_CFLAGS
 
1189
LCMS_LIBS
 
1190
XMC_CFLAGS
 
1191
XMC_LIBS
 
1192
DBUS_GLIB_CFLAGS
 
1193
DBUS_GLIB_LIBS
 
1194
GUDEV_CFLAGS
 
1195
GUDEV_LIBS
 
1196
PYTHON
 
1197
PYGTK_CFLAGS
 
1198
PYGTK_LIBS
 
1199
GTKDOC_DEPS_CFLAGS
 
1200
GTKDOC_DEPS_LIBS'
 
1201
 
 
1202
 
 
1203
# Initialize some variables set by options.
 
1204
ac_init_help=
 
1205
ac_init_version=false
 
1206
ac_unrecognized_opts=
 
1207
ac_unrecognized_sep=
 
1208
# The variables have the same names as the options, with
 
1209
# dashes changed to underlines.
 
1210
cache_file=/dev/null
 
1211
exec_prefix=NONE
 
1212
no_create=
 
1213
no_recursion=
 
1214
prefix=NONE
 
1215
program_prefix=NONE
 
1216
program_suffix=NONE
 
1217
program_transform_name=s,x,x,
 
1218
silent=
 
1219
site=
 
1220
srcdir=
 
1221
verbose=
 
1222
x_includes=NONE
 
1223
x_libraries=NONE
 
1224
 
 
1225
# Installation directory options.
 
1226
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1227
# and all the variables that are supposed to be based on exec_prefix
 
1228
# by default will actually change.
 
1229
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1230
# (The list follows the same order as the GNU Coding Standards.)
 
1231
bindir='${exec_prefix}/bin'
 
1232
sbindir='${exec_prefix}/sbin'
 
1233
libexecdir='${exec_prefix}/libexec'
 
1234
datarootdir='${prefix}/share'
 
1235
datadir='${datarootdir}'
 
1236
sysconfdir='${prefix}/etc'
 
1237
sharedstatedir='${prefix}/com'
 
1238
localstatedir='${prefix}/var'
 
1239
includedir='${prefix}/include'
 
1240
oldincludedir='/usr/include'
 
1241
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1242
infodir='${datarootdir}/info'
 
1243
htmldir='${docdir}'
 
1244
dvidir='${docdir}'
 
1245
pdfdir='${docdir}'
 
1246
psdir='${docdir}'
 
1247
libdir='${exec_prefix}/lib'
 
1248
localedir='${datarootdir}/locale'
 
1249
mandir='${datarootdir}/man'
 
1250
 
 
1251
ac_prev=
 
1252
ac_dashdash=
 
1253
for ac_option
 
1254
do
 
1255
  # If the previous option needs an argument, assign it.
 
1256
  if test -n "$ac_prev"; then
 
1257
    eval $ac_prev=\$ac_option
 
1258
    ac_prev=
 
1259
    continue
 
1260
  fi
 
1261
 
 
1262
  case $ac_option in
 
1263
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1264
  *=)   ac_optarg= ;;
 
1265
  *)    ac_optarg=yes ;;
 
1266
  esac
 
1267
 
 
1268
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1269
 
 
1270
  case $ac_dashdash$ac_option in
 
1271
  --)
 
1272
    ac_dashdash=yes ;;
 
1273
 
 
1274
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1275
    ac_prev=bindir ;;
 
1276
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1277
    bindir=$ac_optarg ;;
 
1278
 
 
1279
  -build | --build | --buil | --bui | --bu)
 
1280
    ac_prev=build_alias ;;
 
1281
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1282
    build_alias=$ac_optarg ;;
 
1283
 
 
1284
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1285
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1286
    ac_prev=cache_file ;;
 
1287
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1288
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1289
    cache_file=$ac_optarg ;;
 
1290
 
 
1291
  --config-cache | -C)
 
1292
    cache_file=config.cache ;;
 
1293
 
 
1294
  -datadir | --datadir | --datadi | --datad)
 
1295
    ac_prev=datadir ;;
 
1296
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1297
    datadir=$ac_optarg ;;
 
1298
 
 
1299
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1300
  | --dataroo | --dataro | --datar)
 
1301
    ac_prev=datarootdir ;;
 
1302
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1303
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1304
    datarootdir=$ac_optarg ;;
 
1305
 
 
1306
  -disable-* | --disable-*)
 
1307
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1308
    # Reject names that are not valid shell variable names.
 
1309
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1310
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1311
    ac_useropt_orig=$ac_useropt
 
1312
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1313
    case $ac_user_opts in
 
1314
      *"
 
1315
"enable_$ac_useropt"
 
1316
"*) ;;
 
1317
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1318
         ac_unrecognized_sep=', ';;
 
1319
    esac
 
1320
    eval enable_$ac_useropt=no ;;
 
1321
 
 
1322
  -docdir | --docdir | --docdi | --doc | --do)
 
1323
    ac_prev=docdir ;;
 
1324
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1325
    docdir=$ac_optarg ;;
 
1326
 
 
1327
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1328
    ac_prev=dvidir ;;
 
1329
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1330
    dvidir=$ac_optarg ;;
 
1331
 
 
1332
  -enable-* | --enable-*)
 
1333
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1334
    # Reject names that are not valid shell variable names.
 
1335
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1336
      as_fn_error $? "invalid feature name: $ac_useropt"
 
1337
    ac_useropt_orig=$ac_useropt
 
1338
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1339
    case $ac_user_opts in
 
1340
      *"
 
1341
"enable_$ac_useropt"
 
1342
"*) ;;
 
1343
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1344
         ac_unrecognized_sep=', ';;
 
1345
    esac
 
1346
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1347
 
 
1348
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1349
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1350
  | --exec | --exe | --ex)
 
1351
    ac_prev=exec_prefix ;;
 
1352
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1353
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1354
  | --exec=* | --exe=* | --ex=*)
 
1355
    exec_prefix=$ac_optarg ;;
 
1356
 
 
1357
  -gas | --gas | --ga | --g)
 
1358
    # Obsolete; use --with-gas.
 
1359
    with_gas=yes ;;
 
1360
 
 
1361
  -help | --help | --hel | --he | -h)
 
1362
    ac_init_help=long ;;
 
1363
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1364
    ac_init_help=recursive ;;
 
1365
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1366
    ac_init_help=short ;;
 
1367
 
 
1368
  -host | --host | --hos | --ho)
 
1369
    ac_prev=host_alias ;;
 
1370
  -host=* | --host=* | --hos=* | --ho=*)
 
1371
    host_alias=$ac_optarg ;;
 
1372
 
 
1373
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1374
    ac_prev=htmldir ;;
 
1375
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1376
  | --ht=*)
 
1377
    htmldir=$ac_optarg ;;
 
1378
 
 
1379
  -includedir | --includedir | --includedi | --included | --include \
 
1380
  | --includ | --inclu | --incl | --inc)
 
1381
    ac_prev=includedir ;;
 
1382
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1383
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1384
    includedir=$ac_optarg ;;
 
1385
 
 
1386
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1387
    ac_prev=infodir ;;
 
1388
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1389
    infodir=$ac_optarg ;;
 
1390
 
 
1391
  -libdir | --libdir | --libdi | --libd)
 
1392
    ac_prev=libdir ;;
 
1393
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1394
    libdir=$ac_optarg ;;
 
1395
 
 
1396
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1397
  | --libexe | --libex | --libe)
 
1398
    ac_prev=libexecdir ;;
 
1399
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1400
  | --libexe=* | --libex=* | --libe=*)
 
1401
    libexecdir=$ac_optarg ;;
 
1402
 
 
1403
  -localedir | --localedir | --localedi | --localed | --locale)
 
1404
    ac_prev=localedir ;;
 
1405
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1406
    localedir=$ac_optarg ;;
 
1407
 
 
1408
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1409
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1410
    ac_prev=localstatedir ;;
 
1411
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1412
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1413
    localstatedir=$ac_optarg ;;
 
1414
 
 
1415
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1416
    ac_prev=mandir ;;
 
1417
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1418
    mandir=$ac_optarg ;;
 
1419
 
 
1420
  -nfp | --nfp | --nf)
 
1421
    # Obsolete; use --without-fp.
 
1422
    with_fp=no ;;
 
1423
 
 
1424
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1425
  | --no-cr | --no-c | -n)
 
1426
    no_create=yes ;;
 
1427
 
 
1428
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1429
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1430
    no_recursion=yes ;;
 
1431
 
 
1432
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1433
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1434
  | --oldin | --oldi | --old | --ol | --o)
 
1435
    ac_prev=oldincludedir ;;
 
1436
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1437
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1438
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1439
    oldincludedir=$ac_optarg ;;
 
1440
 
 
1441
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1442
    ac_prev=prefix ;;
 
1443
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1444
    prefix=$ac_optarg ;;
 
1445
 
 
1446
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1447
  | --program-pre | --program-pr | --program-p)
 
1448
    ac_prev=program_prefix ;;
 
1449
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1450
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1451
    program_prefix=$ac_optarg ;;
 
1452
 
 
1453
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1454
  | --program-suf | --program-su | --program-s)
 
1455
    ac_prev=program_suffix ;;
 
1456
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1457
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1458
    program_suffix=$ac_optarg ;;
 
1459
 
 
1460
  -program-transform-name | --program-transform-name \
 
1461
  | --program-transform-nam | --program-transform-na \
 
1462
  | --program-transform-n | --program-transform- \
 
1463
  | --program-transform | --program-transfor \
 
1464
  | --program-transfo | --program-transf \
 
1465
  | --program-trans | --program-tran \
 
1466
  | --progr-tra | --program-tr | --program-t)
 
1467
    ac_prev=program_transform_name ;;
 
1468
  -program-transform-name=* | --program-transform-name=* \
 
1469
  | --program-transform-nam=* | --program-transform-na=* \
 
1470
  | --program-transform-n=* | --program-transform-=* \
 
1471
  | --program-transform=* | --program-transfor=* \
 
1472
  | --program-transfo=* | --program-transf=* \
 
1473
  | --program-trans=* | --program-tran=* \
 
1474
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1475
    program_transform_name=$ac_optarg ;;
 
1476
 
 
1477
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1478
    ac_prev=pdfdir ;;
 
1479
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1480
    pdfdir=$ac_optarg ;;
 
1481
 
 
1482
  -psdir | --psdir | --psdi | --psd | --ps)
 
1483
    ac_prev=psdir ;;
 
1484
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1485
    psdir=$ac_optarg ;;
 
1486
 
 
1487
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1488
  | -silent | --silent | --silen | --sile | --sil)
 
1489
    silent=yes ;;
 
1490
 
 
1491
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1492
    ac_prev=sbindir ;;
 
1493
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1494
  | --sbi=* | --sb=*)
 
1495
    sbindir=$ac_optarg ;;
 
1496
 
 
1497
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1498
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1499
  | --sharedst | --shareds | --shared | --share | --shar \
 
1500
  | --sha | --sh)
 
1501
    ac_prev=sharedstatedir ;;
 
1502
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1503
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1504
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1505
  | --sha=* | --sh=*)
 
1506
    sharedstatedir=$ac_optarg ;;
 
1507
 
 
1508
  -site | --site | --sit)
 
1509
    ac_prev=site ;;
 
1510
  -site=* | --site=* | --sit=*)
 
1511
    site=$ac_optarg ;;
 
1512
 
 
1513
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1514
    ac_prev=srcdir ;;
 
1515
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1516
    srcdir=$ac_optarg ;;
 
1517
 
 
1518
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1519
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1520
    ac_prev=sysconfdir ;;
 
1521
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1522
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1523
    sysconfdir=$ac_optarg ;;
 
1524
 
 
1525
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1526
    ac_prev=target_alias ;;
 
1527
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1528
    target_alias=$ac_optarg ;;
 
1529
 
 
1530
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1531
    verbose=yes ;;
 
1532
 
 
1533
  -version | --version | --versio | --versi | --vers | -V)
 
1534
    ac_init_version=: ;;
 
1535
 
 
1536
  -with-* | --with-*)
 
1537
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1538
    # Reject names that are not valid shell variable names.
 
1539
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1540
      as_fn_error $? "invalid package name: $ac_useropt"
 
1541
    ac_useropt_orig=$ac_useropt
 
1542
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1543
    case $ac_user_opts in
 
1544
      *"
 
1545
"with_$ac_useropt"
 
1546
"*) ;;
 
1547
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1548
         ac_unrecognized_sep=', ';;
 
1549
    esac
 
1550
    eval with_$ac_useropt=\$ac_optarg ;;
 
1551
 
 
1552
  -without-* | --without-*)
 
1553
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1554
    # Reject names that are not valid shell variable names.
 
1555
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1556
      as_fn_error $? "invalid package name: $ac_useropt"
 
1557
    ac_useropt_orig=$ac_useropt
 
1558
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1559
    case $ac_user_opts in
 
1560
      *"
 
1561
"with_$ac_useropt"
 
1562
"*) ;;
 
1563
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1564
         ac_unrecognized_sep=', ';;
 
1565
    esac
 
1566
    eval with_$ac_useropt=no ;;
 
1567
 
 
1568
  --x)
 
1569
    # Obsolete; use --with-x.
 
1570
    with_x=yes ;;
 
1571
 
 
1572
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1573
  | --x-incl | --x-inc | --x-in | --x-i)
 
1574
    ac_prev=x_includes ;;
 
1575
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1576
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1577
    x_includes=$ac_optarg ;;
 
1578
 
 
1579
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1580
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1581
    ac_prev=x_libraries ;;
 
1582
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1583
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1584
    x_libraries=$ac_optarg ;;
 
1585
 
 
1586
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1587
Try \`$0 --help' for more information"
 
1588
    ;;
 
1589
 
 
1590
  *=*)
 
1591
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1592
    # Reject names that are not valid shell variable names.
 
1593
    case $ac_envvar in #(
 
1594
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1595
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1596
    esac
 
1597
    eval $ac_envvar=\$ac_optarg
 
1598
    export $ac_envvar ;;
 
1599
 
 
1600
  *)
 
1601
    # FIXME: should be removed in autoconf 3.0.
 
1602
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1603
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1604
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1605
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1606
    ;;
 
1607
 
 
1608
  esac
 
1609
done
 
1610
 
 
1611
if test -n "$ac_prev"; then
 
1612
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1613
  as_fn_error $? "missing argument to $ac_option"
 
1614
fi
 
1615
 
 
1616
if test -n "$ac_unrecognized_opts"; then
 
1617
  case $enable_option_checking in
 
1618
    no) ;;
 
1619
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1620
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1621
  esac
 
1622
fi
 
1623
 
 
1624
# Check all directory arguments for consistency.
 
1625
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1626
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1627
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1628
                libdir localedir mandir
 
1629
do
 
1630
  eval ac_val=\$$ac_var
 
1631
  # Remove trailing slashes.
 
1632
  case $ac_val in
 
1633
    */ )
 
1634
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1635
      eval $ac_var=\$ac_val;;
 
1636
  esac
 
1637
  # Be sure to have absolute directory names.
 
1638
  case $ac_val in
 
1639
    [\\/$]* | ?:[\\/]* )  continue;;
 
1640
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1641
  esac
 
1642
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1643
done
 
1644
 
 
1645
# There might be people who depend on the old broken behavior: `$host'
 
1646
# used to hold the argument of --host etc.
 
1647
# FIXME: To remove some day.
 
1648
build=$build_alias
 
1649
host=$host_alias
 
1650
target=$target_alias
 
1651
 
 
1652
# FIXME: To remove some day.
 
1653
if test "x$host_alias" != x; then
 
1654
  if test "x$build_alias" = x; then
 
1655
    cross_compiling=maybe
 
1656
  elif test "x$build_alias" != "x$host_alias"; then
 
1657
    cross_compiling=yes
 
1658
  fi
 
1659
fi
 
1660
 
 
1661
ac_tool_prefix=
 
1662
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1663
 
 
1664
test "$silent" = yes && exec 6>/dev/null
 
1665
 
 
1666
 
 
1667
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1668
ac_ls_di=`ls -di .` &&
 
1669
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1670
  as_fn_error $? "working directory cannot be determined"
 
1671
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1672
  as_fn_error $? "pwd does not report name of working directory"
 
1673
 
 
1674
 
 
1675
# Find the source files, if location was not specified.
 
1676
if test -z "$srcdir"; then
 
1677
  ac_srcdir_defaulted=yes
 
1678
  # Try the directory containing this script, then the parent directory.
 
1679
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1680
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1681
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1682
         X"$as_myself" : 'X\(//\)$' \| \
 
1683
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1684
$as_echo X"$as_myself" |
 
1685
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1686
            s//\1/
 
1687
            q
 
1688
          }
 
1689
          /^X\(\/\/\)[^/].*/{
 
1690
            s//\1/
 
1691
            q
 
1692
          }
 
1693
          /^X\(\/\/\)$/{
 
1694
            s//\1/
 
1695
            q
 
1696
          }
 
1697
          /^X\(\/\).*/{
 
1698
            s//\1/
 
1699
            q
 
1700
          }
 
1701
          s/.*/./; q'`
 
1702
  srcdir=$ac_confdir
 
1703
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1704
    srcdir=..
 
1705
  fi
 
1706
else
 
1707
  ac_srcdir_defaulted=no
 
1708
fi
 
1709
if test ! -r "$srcdir/$ac_unique_file"; then
 
1710
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1711
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1712
fi
 
1713
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1714
ac_abs_confdir=`(
 
1715
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1716
        pwd)`
 
1717
# When building in place, set srcdir=.
 
1718
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1719
  srcdir=.
 
1720
fi
 
1721
# Remove unnecessary trailing slashes from srcdir.
 
1722
# Double slashes in file names in object file debugging info
 
1723
# mess up M-x gdb in Emacs.
 
1724
case $srcdir in
 
1725
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1726
esac
 
1727
for ac_var in $ac_precious_vars; do
 
1728
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1729
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1730
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1731
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1732
done
 
1733
 
 
1734
#
 
1735
# Report the --help message.
 
1736
#
 
1737
if test "$ac_init_help" = "long"; then
 
1738
  # Omit some internal or obsolete options to make the list less imposing.
 
1739
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1740
  cat <<_ACEOF
 
1741
\`configure' configures GIMP 2.8.2 to adapt to many kinds of systems.
 
1742
 
 
1743
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1744
 
 
1745
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1746
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1747
 
 
1748
Defaults for the options are specified in brackets.
 
1749
 
 
1750
Configuration:
 
1751
  -h, --help              display this help and exit
 
1752
      --help=short        display options specific to this package
 
1753
      --help=recursive    display the short help of all the included packages
 
1754
  -V, --version           display version information and exit
 
1755
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1756
      --cache-file=FILE   cache test results in FILE [disabled]
 
1757
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1758
  -n, --no-create         do not create output files
 
1759
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1760
 
 
1761
Installation directories:
 
1762
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1763
                          [$ac_default_prefix]
 
1764
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1765
                          [PREFIX]
 
1766
 
 
1767
By default, \`make install' will install all the files in
 
1768
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1769
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1770
for instance \`--prefix=\$HOME'.
 
1771
 
 
1772
For better control, use the options below.
 
1773
 
 
1774
Fine tuning of the installation directories:
 
1775
  --bindir=DIR            user executables [EPREFIX/bin]
 
1776
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1777
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1778
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1779
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1780
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1781
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1782
  --includedir=DIR        C header files [PREFIX/include]
 
1783
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1784
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1785
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1786
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1787
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1788
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1789
  --docdir=DIR            documentation root [DATAROOTDIR/doc/gimp]
 
1790
  --htmldir=DIR           html documentation [DOCDIR]
 
1791
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1792
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1793
  --psdir=DIR             ps documentation [DOCDIR]
 
1794
_ACEOF
 
1795
 
 
1796
  cat <<\_ACEOF
 
1797
 
 
1798
Program names:
 
1799
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1800
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1801
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1802
 
 
1803
X features:
 
1804
  --x-includes=DIR    X include files are in DIR
 
1805
  --x-libraries=DIR   X library files are in DIR
 
1806
 
 
1807
System types:
 
1808
  --build=BUILD     configure for building on BUILD [guessed]
 
1809
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1810
_ACEOF
 
1811
fi
 
1812
 
 
1813
if test -n "$ac_init_help"; then
 
1814
  case $ac_init_help in
 
1815
     short | recursive ) echo "Configuration of GIMP 2.8.2:";;
 
1816
   esac
 
1817
  cat <<\_ACEOF
 
1818
 
 
1819
Optional Features:
 
1820
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1821
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1822
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1823
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1824
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1825
  --disable-dependency-tracking  speeds up one-time build
 
1826
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1827
  --enable-static[=PKGS]  build static libraries [default=no]
 
1828
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1829
  --enable-fast-install[=PKGS]
 
1830
                          optimize for fast installation [default=yes]
 
1831
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1832
  --disable-maintainer-mode  disable make rules and dependencies not useful
 
1833
                          (and sometimes confusing) to the casual installer
 
1834
  --disable-largefile     omit support for large files
 
1835
  --enable-debug          turn on debugging (default=no)
 
1836
  --enable-profile        turn on profiling (default=no)
 
1837
  --enable-ansi           turn on strict ansi (default=no)
 
1838
  --enable-binreloc       compile with binary relocation support
 
1839
                          (default=no)
 
1840
  --enable-binreloc-threads      compile binary relocation with threads support
 
1841
                                 (default=yes)
 
1842
  --disable-nls           do not use Native Language Support
 
1843
  --disable-glibtest      do not try to compile and run a test GLIB program
 
1844
  --disable-gtktest       do not try to compile and run a test GTK+ program
 
1845
  --enable-mmx            enable MMX support (default=auto)
 
1846
  --enable-sse            enable SSE support (default=auto)
 
1847
  --enable-altivec        enable AltiVec support (default=auto)
 
1848
  --disable-mp            disable support for multiple processors
 
1849
  --disable-alsatest      Do not try to compile and run a test Alsa program
 
1850
  --disable-python        do not build the python extension
 
1851
  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
 
1852
  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
 
1853
  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
 
1854
  --enable-gtk-doc-app    build developer documentation for app (default=no)
 
1855
  --enable-default-binary install this as the default gimp binary (default=yes)
 
1856
  --enable-gimp-console   build a console-only binary which does not link GTK+
 
1857
 
 
1858
Optional Packages:
 
1859
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1860
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1861
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1862
                          both]
 
1863
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1864
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1865
                        (or the compiler's sysroot if not specified).
 
1866
  --with-x                use the X Window System
 
1867
  --with-shm=none|sysv|posix|auto    shared memory transport type (default=auto)
 
1868
  --without-libtiff       build without TIFF support
 
1869
  --without-libjpeg       build without JPEG support
 
1870
  --without-bzip2         build without bzip2 support
 
1871
  --without-gs            build without Ghostscript support
 
1872
  --without-libpng        build without PNG support
 
1873
  --without-libmng        build without MNG support
 
1874
  --without-libexif       build without EXIF support
 
1875
  --without-aa            do not build the AA plug-in
 
1876
  --without-libxpm        build without XPM support
 
1877
  --without-webkit        don't build the help-browser plug-in
 
1878
  --without-librsvg       build without librsvg support
 
1879
  --without-print         build without print support
 
1880
  --without-poppler       build without poppler support
 
1881
  --without-cairo-pdf     build without cairo-pdf support
 
1882
  --without-gvfs          build without GIO/GVfs support
 
1883
  --without-libcurl       build without curl support
 
1884
  --without-wmf           build without WMF support
 
1885
  --without-libjasper     build without JPEG-2000 support
 
1886
  --without-lcms          build without lcms support
 
1887
  --without-xmc           build without Xcursor support
 
1888
  --without-alsa          disable alsa support in midi input controller
 
1889
  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
 
1890
  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
 
1891
  --without-linux-input   don't build linux input event controller module
 
1892
  --with-directx-sdk=PFX  prefix where the DirectX SDK is installed(optional)
 
1893
  --without-dbus          build without D-Bus support
 
1894
  --without-gudev         build without GUdev support
 
1895
  --with-gif-compression=lzw|rle|none     GIF compression style (default=lzw)
 
1896
  --with-sendmail=DIR     set sendmail command location
 
1897
  --with-pdbgen           use 'pdbgen' code generation tool
 
1898
  --without-script-fu     do not build the script-fu extension
 
1899
  --without-mac-twain     don't build the Mac TWAIN plug-in
 
1900
  --with-desktop-dir=PATH where to install desktop files (default=PREFIX/share)
 
1901
  --without-xvfb-run      do not use xvfb-run for UI-dependent automatic tests
 
1902
  --with-html-dir=PATH    path to installed docs
 
1903
  --with-gimpdir=DIR      change default gimpdir from .gimp-2.8 to DIR
 
1904
 
 
1905
Some influential environment variables:
 
1906
  CC          C compiler command
 
1907
  CFLAGS      C compiler flags
 
1908
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1909
              nonstandard directory <lib dir>
 
1910
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1911
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1912
              you have headers in a nonstandard directory <include dir>
 
1913
  CPP         C preprocessor
 
1914
  CCAS        assembler compiler command (defaults to CC)
 
1915
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1916
  PKG_CONFIG  path to pkg-config utility
 
1917
  PKG_CONFIG_PATH
 
1918
              directories to add to pkg-config's search path
 
1919
  PKG_CONFIG_LIBDIR
 
1920
              path overriding pkg-config's built-in search path
 
1921
  BABL_CFLAGS C compiler flags for BABL, overriding pkg-config
 
1922
  BABL_LIBS   linker flags for BABL, overriding pkg-config
 
1923
  GEGL_CFLAGS C compiler flags for GEGL, overriding pkg-config
 
1924
  GEGL_LIBS   linker flags for GEGL, overriding pkg-config
 
1925
  ATK_CFLAGS  C compiler flags for ATK, overriding pkg-config
 
1926
  ATK_LIBS    linker flags for ATK, overriding pkg-config
 
1927
  GMODULE_NO_EXPORT_CFLAGS
 
1928
              C compiler flags for GMODULE_NO_EXPORT, overriding pkg-config
 
1929
  GMODULE_NO_EXPORT_LIBS
 
1930
              linker flags for GMODULE_NO_EXPORT, overriding pkg-config
 
1931
  GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
 
1932
  GIO_LIBS    linker flags for GIO, overriding pkg-config
 
1933
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1934
  GDK_PIXBUF_CFLAGS
 
1935
              C compiler flags for GDK_PIXBUF, overriding pkg-config
 
1936
  GDK_PIXBUF_LIBS
 
1937
              linker flags for GDK_PIXBUF, overriding pkg-config
 
1938
  CAIRO_CFLAGS
 
1939
              C compiler flags for CAIRO, overriding pkg-config
 
1940
  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
 
1941
  PANGOCAIRO_CFLAGS
 
1942
              C compiler flags for PANGOCAIRO, overriding pkg-config
 
1943
  PANGOCAIRO_LIBS
 
1944
              linker flags for PANGOCAIRO, overriding pkg-config
 
1945
  FONTCONFIG_CFLAGS
 
1946
              C compiler flags for FONTCONFIG, overriding pkg-config
 
1947
  FONTCONFIG_LIBS
 
1948
              linker flags for FONTCONFIG, overriding pkg-config
 
1949
  XFIXES_CFLAGS
 
1950
              C compiler flags for XFIXES, overriding pkg-config
 
1951
  XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
 
1952
  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
 
1953
  PNG_LIBS    linker flags for PNG, overriding pkg-config
 
1954
  EXIF_CFLAGS C compiler flags for EXIF, overriding pkg-config
 
1955
  EXIF_LIBS   linker flags for EXIF, overriding pkg-config
 
1956
  WEBKIT_CFLAGS
 
1957
              C compiler flags for WEBKIT, overriding pkg-config
 
1958
  WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
 
1959
  SVG_CFLAGS  C compiler flags for SVG, overriding pkg-config
 
1960
  SVG_LIBS    linker flags for SVG, overriding pkg-config
 
1961
  POPPLER_CFLAGS
 
1962
              C compiler flags for POPPLER, overriding pkg-config
 
1963
  POPPLER_LIBS
 
1964
              linker flags for POPPLER, overriding pkg-config
 
1965
  CAIRO_PDF_CFLAGS
 
1966
              C compiler flags for CAIRO_PDF, overriding pkg-config
 
1967
  CAIRO_PDF_LIBS
 
1968
              linker flags for CAIRO_PDF, overriding pkg-config
 
1969
  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
 
1970
  CURL_LIBS   linker flags for CURL, overriding pkg-config
 
1971
  LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
 
1972
  LCMS_LIBS   linker flags for LCMS, overriding pkg-config
 
1973
  XMC_CFLAGS  C compiler flags for XMC, overriding pkg-config
 
1974
  XMC_LIBS    linker flags for XMC, overriding pkg-config
 
1975
  DBUS_GLIB_CFLAGS
 
1976
              C compiler flags for DBUS_GLIB, overriding pkg-config
 
1977
  DBUS_GLIB_LIBS
 
1978
              linker flags for DBUS_GLIB, overriding pkg-config
 
1979
  GUDEV_CFLAGS
 
1980
              C compiler flags for GUDEV, overriding pkg-config
 
1981
  GUDEV_LIBS  linker flags for GUDEV, overriding pkg-config
 
1982
  PYTHON      the Python interpreter
 
1983
  PYGTK_CFLAGS
 
1984
              C compiler flags for PYGTK, overriding pkg-config
 
1985
  PYGTK_LIBS  linker flags for PYGTK, overriding pkg-config
 
1986
  GTKDOC_DEPS_CFLAGS
 
1987
              C compiler flags for GTKDOC_DEPS, overriding pkg-config
 
1988
  GTKDOC_DEPS_LIBS
 
1989
              linker flags for GTKDOC_DEPS, overriding pkg-config
 
1990
 
 
1991
Use these variables to override the choices made by `configure' or to help
 
1992
it to find libraries and programs with nonstandard names/locations.
 
1993
 
 
1994
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP>.
 
1995
_ACEOF
 
1996
ac_status=$?
 
1997
fi
 
1998
 
 
1999
if test "$ac_init_help" = "recursive"; then
 
2000
  # If there are subdirs, report their specific --help.
 
2001
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
2002
    test -d "$ac_dir" ||
 
2003
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
2004
      continue
 
2005
    ac_builddir=.
 
2006
 
 
2007
case "$ac_dir" in
 
2008
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2009
*)
 
2010
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
2011
  # A ".." for each directory in $ac_dir_suffix.
 
2012
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
2013
  case $ac_top_builddir_sub in
 
2014
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
2015
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
2016
  esac ;;
 
2017
esac
 
2018
ac_abs_top_builddir=$ac_pwd
 
2019
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
2020
# for backward compatibility:
 
2021
ac_top_builddir=$ac_top_build_prefix
 
2022
 
 
2023
case $srcdir in
 
2024
  .)  # We are building in place.
 
2025
    ac_srcdir=.
 
2026
    ac_top_srcdir=$ac_top_builddir_sub
 
2027
    ac_abs_top_srcdir=$ac_pwd ;;
 
2028
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
2029
    ac_srcdir=$srcdir$ac_dir_suffix;
 
2030
    ac_top_srcdir=$srcdir
 
2031
    ac_abs_top_srcdir=$srcdir ;;
 
2032
  *) # Relative name.
 
2033
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
2034
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
2035
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
2036
esac
 
2037
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
2038
 
 
2039
    cd "$ac_dir" || { ac_status=$?; continue; }
 
2040
    # Check for guested configure.
 
2041
    if test -f "$ac_srcdir/configure.gnu"; then
 
2042
      echo &&
 
2043
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
2044
    elif test -f "$ac_srcdir/configure"; then
 
2045
      echo &&
 
2046
      $SHELL "$ac_srcdir/configure" --help=recursive
 
2047
    else
 
2048
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
2049
    fi || ac_status=$?
 
2050
    cd "$ac_pwd" || { ac_status=$?; break; }
 
2051
  done
 
2052
fi
 
2053
 
 
2054
test -n "$ac_init_help" && exit $ac_status
 
2055
if $ac_init_version; then
 
2056
  cat <<\_ACEOF
 
2057
GIMP configure 2.8.2
 
2058
generated by GNU Autoconf 2.69
 
2059
 
 
2060
Copyright (C) 2012 Free Software Foundation, Inc.
 
2061
This configure script is free software; the Free Software Foundation
 
2062
gives unlimited permission to copy, distribute and modify it.
 
2063
_ACEOF
 
2064
  exit
 
2065
fi
 
2066
 
 
2067
## ------------------------ ##
 
2068
## Autoconf initialization. ##
 
2069
## ------------------------ ##
 
2070
 
 
2071
# ac_fn_c_try_compile LINENO
 
2072
# --------------------------
 
2073
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2074
ac_fn_c_try_compile ()
 
2075
{
 
2076
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2077
  rm -f conftest.$ac_objext
 
2078
  if { { ac_try="$ac_compile"
 
2079
case "(($ac_try" in
 
2080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2081
  *) ac_try_echo=$ac_try;;
 
2082
esac
 
2083
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2084
$as_echo "$ac_try_echo"; } >&5
 
2085
  (eval "$ac_compile") 2>conftest.err
 
2086
  ac_status=$?
 
2087
  if test -s conftest.err; then
 
2088
    grep -v '^ *+' conftest.err >conftest.er1
 
2089
    cat conftest.er1 >&5
 
2090
    mv -f conftest.er1 conftest.err
 
2091
  fi
 
2092
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2093
  test $ac_status = 0; } && {
 
2094
         test -z "$ac_c_werror_flag" ||
 
2095
         test ! -s conftest.err
 
2096
       } && test -s conftest.$ac_objext; then :
 
2097
  ac_retval=0
 
2098
else
 
2099
  $as_echo "$as_me: failed program was:" >&5
 
2100
sed 's/^/| /' conftest.$ac_ext >&5
 
2101
 
 
2102
        ac_retval=1
 
2103
fi
 
2104
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2105
  as_fn_set_status $ac_retval
 
2106
 
 
2107
} # ac_fn_c_try_compile
 
2108
 
 
2109
# ac_fn_c_try_link LINENO
 
2110
# -----------------------
 
2111
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2112
ac_fn_c_try_link ()
 
2113
{
 
2114
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2115
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2116
  if { { ac_try="$ac_link"
 
2117
case "(($ac_try" in
 
2118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2119
  *) ac_try_echo=$ac_try;;
 
2120
esac
 
2121
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2122
$as_echo "$ac_try_echo"; } >&5
 
2123
  (eval "$ac_link") 2>conftest.err
 
2124
  ac_status=$?
 
2125
  if test -s conftest.err; then
 
2126
    grep -v '^ *+' conftest.err >conftest.er1
 
2127
    cat conftest.er1 >&5
 
2128
    mv -f conftest.er1 conftest.err
 
2129
  fi
 
2130
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2131
  test $ac_status = 0; } && {
 
2132
         test -z "$ac_c_werror_flag" ||
 
2133
         test ! -s conftest.err
 
2134
       } && test -s conftest$ac_exeext && {
 
2135
         test "$cross_compiling" = yes ||
 
2136
         test -x conftest$ac_exeext
 
2137
       }; then :
 
2138
  ac_retval=0
 
2139
else
 
2140
  $as_echo "$as_me: failed program was:" >&5
 
2141
sed 's/^/| /' conftest.$ac_ext >&5
 
2142
 
 
2143
        ac_retval=1
 
2144
fi
 
2145
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2146
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2147
  # interfere with the next link command; also delete a directory that is
 
2148
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2149
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2150
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2151
  as_fn_set_status $ac_retval
 
2152
 
 
2153
} # ac_fn_c_try_link
 
2154
 
 
2155
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
2156
# -------------------------------------------------------
 
2157
# Tests whether HEADER exists and can be compiled using the include files in
 
2158
# INCLUDES, setting the cache variable VAR accordingly.
 
2159
ac_fn_c_check_header_compile ()
 
2160
{
 
2161
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2162
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2163
$as_echo_n "checking for $2... " >&6; }
 
2164
if eval \${$3+:} false; then :
 
2165
  $as_echo_n "(cached) " >&6
 
2166
else
 
2167
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2168
/* end confdefs.h.  */
 
2169
$4
 
2170
#include <$2>
 
2171
_ACEOF
 
2172
if ac_fn_c_try_compile "$LINENO"; then :
 
2173
  eval "$3=yes"
 
2174
else
 
2175
  eval "$3=no"
 
2176
fi
 
2177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2178
fi
 
2179
eval ac_res=\$$3
 
2180
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2181
$as_echo "$ac_res" >&6; }
 
2182
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2183
 
 
2184
} # ac_fn_c_check_header_compile
 
2185
 
 
2186
# ac_fn_c_try_cpp LINENO
 
2187
# ----------------------
 
2188
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2189
ac_fn_c_try_cpp ()
 
2190
{
 
2191
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2192
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2193
case "(($ac_try" in
 
2194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2195
  *) ac_try_echo=$ac_try;;
 
2196
esac
 
2197
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2198
$as_echo "$ac_try_echo"; } >&5
 
2199
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2200
  ac_status=$?
 
2201
  if test -s conftest.err; then
 
2202
    grep -v '^ *+' conftest.err >conftest.er1
 
2203
    cat conftest.er1 >&5
 
2204
    mv -f conftest.er1 conftest.err
 
2205
  fi
 
2206
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2207
  test $ac_status = 0; } > conftest.i && {
 
2208
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2209
         test ! -s conftest.err
 
2210
       }; then :
 
2211
  ac_retval=0
 
2212
else
 
2213
  $as_echo "$as_me: failed program was:" >&5
 
2214
sed 's/^/| /' conftest.$ac_ext >&5
 
2215
 
 
2216
    ac_retval=1
 
2217
fi
 
2218
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2219
  as_fn_set_status $ac_retval
 
2220
 
 
2221
} # ac_fn_c_try_cpp
 
2222
 
 
2223
# ac_fn_c_try_run LINENO
 
2224
# ----------------------
 
2225
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
2226
# that executables *can* be run.
 
2227
ac_fn_c_try_run ()
 
2228
{
 
2229
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2230
  if { { ac_try="$ac_link"
 
2231
case "(($ac_try" in
 
2232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2233
  *) ac_try_echo=$ac_try;;
 
2234
esac
 
2235
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2236
$as_echo "$ac_try_echo"; } >&5
 
2237
  (eval "$ac_link") 2>&5
 
2238
  ac_status=$?
 
2239
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2240
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
2241
  { { case "(($ac_try" in
 
2242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2243
  *) ac_try_echo=$ac_try;;
 
2244
esac
 
2245
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2246
$as_echo "$ac_try_echo"; } >&5
 
2247
  (eval "$ac_try") 2>&5
 
2248
  ac_status=$?
 
2249
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2250
  test $ac_status = 0; }; }; then :
 
2251
  ac_retval=0
 
2252
else
 
2253
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
2254
       $as_echo "$as_me: failed program was:" >&5
 
2255
sed 's/^/| /' conftest.$ac_ext >&5
 
2256
 
 
2257
       ac_retval=$ac_status
 
2258
fi
 
2259
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2260
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2261
  as_fn_set_status $ac_retval
 
2262
 
 
2263
} # ac_fn_c_try_run
 
2264
 
 
2265
# ac_fn_c_check_func LINENO FUNC VAR
 
2266
# ----------------------------------
 
2267
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2268
ac_fn_c_check_func ()
 
2269
{
 
2270
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2271
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2272
$as_echo_n "checking for $2... " >&6; }
 
2273
if eval \${$3+:} false; then :
 
2274
  $as_echo_n "(cached) " >&6
 
2275
else
 
2276
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2277
/* end confdefs.h.  */
 
2278
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2279
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2280
#define $2 innocuous_$2
 
2281
 
 
2282
/* System header to define __stub macros and hopefully few prototypes,
 
2283
    which can conflict with char $2 (); below.
 
2284
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2285
    <limits.h> exists even on freestanding compilers.  */
 
2286
 
 
2287
#ifdef __STDC__
 
2288
# include <limits.h>
 
2289
#else
 
2290
# include <assert.h>
 
2291
#endif
 
2292
 
 
2293
#undef $2
 
2294
 
 
2295
/* Override any GCC internal prototype to avoid an error.
 
2296
   Use char because int might match the return type of a GCC
 
2297
   builtin and then its argument prototype would still apply.  */
 
2298
#ifdef __cplusplus
 
2299
extern "C"
 
2300
#endif
 
2301
char $2 ();
 
2302
/* The GNU C library defines this for functions which it implements
 
2303
    to always fail with ENOSYS.  Some functions are actually named
 
2304
    something starting with __ and the normal name is an alias.  */
 
2305
#if defined __stub_$2 || defined __stub___$2
 
2306
choke me
 
2307
#endif
 
2308
 
 
2309
int
 
2310
main ()
 
2311
{
 
2312
return $2 ();
 
2313
  ;
 
2314
  return 0;
 
2315
}
 
2316
_ACEOF
 
2317
if ac_fn_c_try_link "$LINENO"; then :
 
2318
  eval "$3=yes"
 
2319
else
 
2320
  eval "$3=no"
 
2321
fi
 
2322
rm -f core conftest.err conftest.$ac_objext \
 
2323
    conftest$ac_exeext conftest.$ac_ext
 
2324
fi
 
2325
eval ac_res=\$$3
 
2326
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2327
$as_echo "$ac_res" >&6; }
 
2328
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2329
 
 
2330
} # ac_fn_c_check_func
 
2331
 
 
2332
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
2333
# -------------------------------------------------------
 
2334
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
2335
# the include files in INCLUDES and setting the cache variable VAR
 
2336
# accordingly.
 
2337
ac_fn_c_check_header_mongrel ()
 
2338
{
 
2339
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2340
  if eval \${$3+:} false; then :
 
2341
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2342
$as_echo_n "checking for $2... " >&6; }
 
2343
if eval \${$3+:} false; then :
 
2344
  $as_echo_n "(cached) " >&6
 
2345
fi
 
2346
eval ac_res=\$$3
 
2347
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2348
$as_echo "$ac_res" >&6; }
 
2349
else
 
2350
  # Is the header compilable?
 
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
2352
$as_echo_n "checking $2 usability... " >&6; }
 
2353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2354
/* end confdefs.h.  */
 
2355
$4
 
2356
#include <$2>
 
2357
_ACEOF
 
2358
if ac_fn_c_try_compile "$LINENO"; then :
 
2359
  ac_header_compiler=yes
 
2360
else
 
2361
  ac_header_compiler=no
 
2362
fi
 
2363
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
2365
$as_echo "$ac_header_compiler" >&6; }
 
2366
 
 
2367
# Is the header present?
 
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
2369
$as_echo_n "checking $2 presence... " >&6; }
 
2370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2371
/* end confdefs.h.  */
 
2372
#include <$2>
 
2373
_ACEOF
 
2374
if ac_fn_c_try_cpp "$LINENO"; then :
 
2375
  ac_header_preproc=yes
 
2376
else
 
2377
  ac_header_preproc=no
 
2378
fi
 
2379
rm -f conftest.err conftest.i conftest.$ac_ext
 
2380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2381
$as_echo "$ac_header_preproc" >&6; }
 
2382
 
 
2383
# So?  What about this header?
 
2384
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2385
  yes:no: )
 
2386
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2387
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2388
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2389
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2390
    ;;
 
2391
  no:yes:* )
 
2392
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2393
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2394
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2395
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2396
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2397
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2398
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2399
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2400
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2401
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2402
( $as_echo "## ------------------------------------------------------------------- ##
 
2403
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP ##
 
2404
## ------------------------------------------------------------------- ##"
 
2405
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2406
    ;;
 
2407
esac
 
2408
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2409
$as_echo_n "checking for $2... " >&6; }
 
2410
if eval \${$3+:} false; then :
 
2411
  $as_echo_n "(cached) " >&6
 
2412
else
 
2413
  eval "$3=\$ac_header_compiler"
 
2414
fi
 
2415
eval ac_res=\$$3
 
2416
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2417
$as_echo "$ac_res" >&6; }
 
2418
fi
 
2419
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2420
 
 
2421
} # ac_fn_c_check_header_mongrel
 
2422
 
 
2423
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2424
# -------------------------------------------
 
2425
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2426
# variable VAR accordingly.
 
2427
ac_fn_c_check_type ()
 
2428
{
 
2429
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2430
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2431
$as_echo_n "checking for $2... " >&6; }
 
2432
if eval \${$3+:} false; then :
 
2433
  $as_echo_n "(cached) " >&6
 
2434
else
 
2435
  eval "$3=no"
 
2436
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2437
/* end confdefs.h.  */
 
2438
$4
 
2439
int
 
2440
main ()
 
2441
{
 
2442
if (sizeof ($2))
 
2443
         return 0;
 
2444
  ;
 
2445
  return 0;
 
2446
}
 
2447
_ACEOF
 
2448
if ac_fn_c_try_compile "$LINENO"; then :
 
2449
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2450
/* end confdefs.h.  */
 
2451
$4
 
2452
int
 
2453
main ()
 
2454
{
 
2455
if (sizeof (($2)))
 
2456
            return 0;
 
2457
  ;
 
2458
  return 0;
 
2459
}
 
2460
_ACEOF
 
2461
if ac_fn_c_try_compile "$LINENO"; then :
 
2462
 
 
2463
else
 
2464
  eval "$3=yes"
 
2465
fi
 
2466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2467
fi
 
2468
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2469
fi
 
2470
eval ac_res=\$$3
 
2471
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2472
$as_echo "$ac_res" >&6; }
 
2473
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2474
 
 
2475
} # ac_fn_c_check_type
 
2476
cat >config.log <<_ACEOF
 
2477
This file contains any messages produced by compilers while
 
2478
running configure, to aid debugging if configure makes a mistake.
 
2479
 
 
2480
It was created by GIMP $as_me 2.8.2, which was
 
2481
generated by GNU Autoconf 2.69.  Invocation command line was
 
2482
 
 
2483
  $ $0 $@
 
2484
 
 
2485
_ACEOF
 
2486
exec 5>>config.log
 
2487
{
 
2488
cat <<_ASUNAME
 
2489
## --------- ##
 
2490
## Platform. ##
 
2491
## --------- ##
 
2492
 
 
2493
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2494
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2495
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2496
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2497
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2498
 
 
2499
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2500
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2501
 
 
2502
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2503
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2504
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2505
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2506
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2507
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2508
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2509
 
 
2510
_ASUNAME
 
2511
 
 
2512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2513
for as_dir in $PATH
 
2514
do
 
2515
  IFS=$as_save_IFS
 
2516
  test -z "$as_dir" && as_dir=.
 
2517
    $as_echo "PATH: $as_dir"
 
2518
  done
 
2519
IFS=$as_save_IFS
 
2520
 
 
2521
} >&5
 
2522
 
 
2523
cat >&5 <<_ACEOF
 
2524
 
 
2525
 
 
2526
## ----------- ##
 
2527
## Core tests. ##
 
2528
## ----------- ##
 
2529
 
 
2530
_ACEOF
 
2531
 
 
2532
 
 
2533
# Keep a trace of the command line.
 
2534
# Strip out --no-create and --no-recursion so they do not pile up.
 
2535
# Strip out --silent because we don't want to record it for future runs.
 
2536
# Also quote any args containing shell meta-characters.
 
2537
# Make two passes to allow for proper duplicate-argument suppression.
 
2538
ac_configure_args=
 
2539
ac_configure_args0=
 
2540
ac_configure_args1=
 
2541
ac_must_keep_next=false
 
2542
for ac_pass in 1 2
 
2543
do
 
2544
  for ac_arg
 
2545
  do
 
2546
    case $ac_arg in
 
2547
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2548
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2549
    | -silent | --silent | --silen | --sile | --sil)
 
2550
      continue ;;
 
2551
    *\'*)
 
2552
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2553
    esac
 
2554
    case $ac_pass in
 
2555
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2556
    2)
 
2557
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2558
      if test $ac_must_keep_next = true; then
 
2559
        ac_must_keep_next=false # Got value, back to normal.
 
2560
      else
 
2561
        case $ac_arg in
 
2562
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2563
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2564
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2565
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2566
            case "$ac_configure_args0 " in
 
2567
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2568
            esac
 
2569
            ;;
 
2570
          -* ) ac_must_keep_next=true ;;
 
2571
        esac
 
2572
      fi
 
2573
      as_fn_append ac_configure_args " '$ac_arg'"
 
2574
      ;;
 
2575
    esac
 
2576
  done
 
2577
done
 
2578
{ ac_configure_args0=; unset ac_configure_args0;}
 
2579
{ ac_configure_args1=; unset ac_configure_args1;}
 
2580
 
 
2581
# When interrupted or exit'd, cleanup temporary files, and complete
 
2582
# config.log.  We remove comments because anyway the quotes in there
 
2583
# would cause problems or look ugly.
 
2584
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2585
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2586
trap 'exit_status=$?
 
2587
  # Save into config.log some information that might help in debugging.
 
2588
  {
 
2589
    echo
 
2590
 
 
2591
    $as_echo "## ---------------- ##
 
2592
## Cache variables. ##
 
2593
## ---------------- ##"
 
2594
    echo
 
2595
    # The following way of writing the cache mishandles newlines in values,
 
2596
(
 
2597
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2598
    eval ac_val=\$$ac_var
 
2599
    case $ac_val in #(
 
2600
    *${as_nl}*)
 
2601
      case $ac_var in #(
 
2602
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2603
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2604
      esac
 
2605
      case $ac_var in #(
 
2606
      _ | IFS | as_nl) ;; #(
 
2607
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2608
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2609
      esac ;;
 
2610
    esac
 
2611
  done
 
2612
  (set) 2>&1 |
 
2613
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2614
    *${as_nl}ac_space=\ *)
 
2615
      sed -n \
 
2616
        "s/'\''/'\''\\\\'\'''\''/g;
 
2617
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2618
      ;; #(
 
2619
    *)
 
2620
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2621
      ;;
 
2622
    esac |
 
2623
    sort
 
2624
)
 
2625
    echo
 
2626
 
 
2627
    $as_echo "## ----------------- ##
 
2628
## Output variables. ##
 
2629
## ----------------- ##"
 
2630
    echo
 
2631
    for ac_var in $ac_subst_vars
 
2632
    do
 
2633
      eval ac_val=\$$ac_var
 
2634
      case $ac_val in
 
2635
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2636
      esac
 
2637
      $as_echo "$ac_var='\''$ac_val'\''"
 
2638
    done | sort
 
2639
    echo
 
2640
 
 
2641
    if test -n "$ac_subst_files"; then
 
2642
      $as_echo "## ------------------- ##
 
2643
## File substitutions. ##
 
2644
## ------------------- ##"
 
2645
      echo
 
2646
      for ac_var in $ac_subst_files
 
2647
      do
 
2648
        eval ac_val=\$$ac_var
 
2649
        case $ac_val in
 
2650
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2651
        esac
 
2652
        $as_echo "$ac_var='\''$ac_val'\''"
 
2653
      done | sort
 
2654
      echo
 
2655
    fi
 
2656
 
 
2657
    if test -s confdefs.h; then
 
2658
      $as_echo "## ----------- ##
 
2659
## confdefs.h. ##
 
2660
## ----------- ##"
 
2661
      echo
 
2662
      cat confdefs.h
 
2663
      echo
 
2664
    fi
 
2665
    test "$ac_signal" != 0 &&
 
2666
      $as_echo "$as_me: caught signal $ac_signal"
 
2667
    $as_echo "$as_me: exit $exit_status"
 
2668
  } >&5
 
2669
  rm -f core *.core core.conftest.* &&
 
2670
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2671
    exit $exit_status
 
2672
' 0
 
2673
for ac_signal in 1 2 13 15; do
 
2674
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2675
done
 
2676
ac_signal=0
 
2677
 
 
2678
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2679
rm -f -r conftest* confdefs.h
 
2680
 
 
2681
$as_echo "/* confdefs.h */" > confdefs.h
 
2682
 
 
2683
# Predefined preprocessor variables.
 
2684
 
 
2685
cat >>confdefs.h <<_ACEOF
 
2686
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2687
_ACEOF
 
2688
 
 
2689
cat >>confdefs.h <<_ACEOF
 
2690
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2691
_ACEOF
 
2692
 
 
2693
cat >>confdefs.h <<_ACEOF
 
2694
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2695
_ACEOF
 
2696
 
 
2697
cat >>confdefs.h <<_ACEOF
 
2698
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2699
_ACEOF
 
2700
 
 
2701
cat >>confdefs.h <<_ACEOF
 
2702
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2703
_ACEOF
 
2704
 
 
2705
cat >>confdefs.h <<_ACEOF
 
2706
#define PACKAGE_URL "$PACKAGE_URL"
 
2707
_ACEOF
 
2708
 
 
2709
 
 
2710
# Let the site file select an alternate cache file if it wants to.
 
2711
# Prefer an explicitly selected file to automatically selected ones.
 
2712
ac_site_file1=NONE
 
2713
ac_site_file2=NONE
 
2714
if test -n "$CONFIG_SITE"; then
 
2715
  # We do not want a PATH search for config.site.
 
2716
  case $CONFIG_SITE in #((
 
2717
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2718
    */*) ac_site_file1=$CONFIG_SITE;;
 
2719
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2720
  esac
 
2721
elif test "x$prefix" != xNONE; then
 
2722
  ac_site_file1=$prefix/share/config.site
 
2723
  ac_site_file2=$prefix/etc/config.site
 
2724
else
 
2725
  ac_site_file1=$ac_default_prefix/share/config.site
 
2726
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2727
fi
 
2728
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2729
do
 
2730
  test "x$ac_site_file" = xNONE && continue
 
2731
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2732
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2733
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2734
    sed 's/^/| /' "$ac_site_file" >&5
 
2735
    . "$ac_site_file" \
 
2736
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2737
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2738
as_fn_error $? "failed to load site script $ac_site_file
 
2739
See \`config.log' for more details" "$LINENO" 5; }
 
2740
  fi
 
2741
done
 
2742
 
 
2743
if test -r "$cache_file"; then
 
2744
  # Some versions of bash will fail to source /dev/null (special files
 
2745
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2746
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2747
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2748
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2749
    case $cache_file in
 
2750
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2751
      *)                      . "./$cache_file";;
 
2752
    esac
 
2753
  fi
 
2754
else
 
2755
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2756
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2757
  >$cache_file
 
2758
fi
 
2759
 
 
2760
# Check that the precious variables saved in the cache have kept the same
 
2761
# value.
 
2762
ac_cache_corrupted=false
 
2763
for ac_var in $ac_precious_vars; do
 
2764
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2765
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2766
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2767
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2768
  case $ac_old_set,$ac_new_set in
 
2769
    set,)
 
2770
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2771
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2772
      ac_cache_corrupted=: ;;
 
2773
    ,set)
 
2774
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2775
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2776
      ac_cache_corrupted=: ;;
 
2777
    ,);;
 
2778
    *)
 
2779
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2780
        # differences in whitespace do not lead to failure.
 
2781
        ac_old_val_w=`echo x $ac_old_val`
 
2782
        ac_new_val_w=`echo x $ac_new_val`
 
2783
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2784
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2785
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2786
          ac_cache_corrupted=:
 
2787
        else
 
2788
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2789
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2790
          eval $ac_var=\$ac_old_val
 
2791
        fi
 
2792
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2793
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2794
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2795
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2796
      fi;;
 
2797
  esac
 
2798
  # Pass precious variables to config.status.
 
2799
  if test "$ac_new_set" = set; then
 
2800
    case $ac_new_val in
 
2801
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2802
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2803
    esac
 
2804
    case " $ac_configure_args " in
 
2805
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2806
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2807
    esac
 
2808
  fi
 
2809
done
 
2810
if $ac_cache_corrupted; then
 
2811
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2812
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2813
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2814
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2815
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2816
fi
 
2817
## -------------------- ##
 
2818
## Main body of script. ##
 
2819
## -------------------- ##
 
2820
 
 
2821
ac_ext=c
 
2822
ac_cpp='$CPP $CPPFLAGS'
 
2823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2826
 
 
2827
 
 
2828
 
 
2829
ac_config_headers="$ac_config_headers config.h"
 
2830
 
 
2831
 
 
2832
 
 
2833
 
 
2834
am__api_version='1.11'
 
2835
 
 
2836
ac_aux_dir=
 
2837
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2838
  if test -f "$ac_dir/install-sh"; then
 
2839
    ac_aux_dir=$ac_dir
 
2840
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2841
    break
 
2842
  elif test -f "$ac_dir/install.sh"; then
 
2843
    ac_aux_dir=$ac_dir
 
2844
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2845
    break
 
2846
  elif test -f "$ac_dir/shtool"; then
 
2847
    ac_aux_dir=$ac_dir
 
2848
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2849
    break
 
2850
  fi
 
2851
done
 
2852
if test -z "$ac_aux_dir"; then
 
2853
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2854
fi
 
2855
 
 
2856
# These three variables are undocumented and unsupported,
 
2857
# and are intended to be withdrawn in a future Autoconf release.
 
2858
# They can cause serious problems if a builder's source tree is in a directory
 
2859
# whose full name contains unusual characters.
 
2860
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2861
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2862
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2863
 
 
2864
 
 
2865
# Find a good install program.  We prefer a C program (faster),
 
2866
# so one script is as good as another.  But avoid the broken or
 
2867
# incompatible versions:
 
2868
# SysV /etc/install, /usr/sbin/install
 
2869
# SunOS /usr/etc/install
 
2870
# IRIX /sbin/install
 
2871
# AIX /bin/install
 
2872
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2873
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2874
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2875
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2876
# OS/2's system install, which has a completely different semantic
 
2877
# ./install, which can be erroneously created by make from ./install.sh.
 
2878
# Reject install programs that cannot install multiple files.
 
2879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2880
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2881
if test -z "$INSTALL"; then
 
2882
if ${ac_cv_path_install+:} false; then :
 
2883
  $as_echo_n "(cached) " >&6
 
2884
else
 
2885
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2886
for as_dir in $PATH
 
2887
do
 
2888
  IFS=$as_save_IFS
 
2889
  test -z "$as_dir" && as_dir=.
 
2890
    # Account for people who put trailing slashes in PATH elements.
 
2891
case $as_dir/ in #((
 
2892
  ./ | .// | /[cC]/* | \
 
2893
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2894
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2895
  /usr/ucb/* ) ;;
 
2896
  *)
 
2897
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2898
    # Don't use installbsd from OSF since it installs stuff as root
 
2899
    # by default.
 
2900
    for ac_prog in ginstall scoinst install; do
 
2901
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2902
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2903
          if test $ac_prog = install &&
 
2904
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2905
            # AIX install.  It has an incompatible calling convention.
 
2906
            :
 
2907
          elif test $ac_prog = install &&
 
2908
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2909
            # program-specific install script used by HP pwplus--don't use.
 
2910
            :
 
2911
          else
 
2912
            rm -rf conftest.one conftest.two conftest.dir
 
2913
            echo one > conftest.one
 
2914
            echo two > conftest.two
 
2915
            mkdir conftest.dir
 
2916
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2917
              test -s conftest.one && test -s conftest.two &&
 
2918
              test -s conftest.dir/conftest.one &&
 
2919
              test -s conftest.dir/conftest.two
 
2920
            then
 
2921
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2922
              break 3
 
2923
            fi
 
2924
          fi
 
2925
        fi
 
2926
      done
 
2927
    done
 
2928
    ;;
 
2929
esac
 
2930
 
 
2931
  done
 
2932
IFS=$as_save_IFS
 
2933
 
 
2934
rm -rf conftest.one conftest.two conftest.dir
 
2935
 
 
2936
fi
 
2937
  if test "${ac_cv_path_install+set}" = set; then
 
2938
    INSTALL=$ac_cv_path_install
 
2939
  else
 
2940
    # As a last resort, use the slow shell script.  Don't cache a
 
2941
    # value for INSTALL within a source directory, because that will
 
2942
    # break other packages using the cache if that directory is
 
2943
    # removed, or if the value is a relative name.
 
2944
    INSTALL=$ac_install_sh
 
2945
  fi
 
2946
fi
 
2947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2948
$as_echo "$INSTALL" >&6; }
 
2949
 
 
2950
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2951
# It thinks the first close brace ends the variable substitution.
 
2952
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2953
 
 
2954
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2955
 
 
2956
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2957
 
 
2958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2959
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2960
# Just in case
 
2961
sleep 1
 
2962
echo timestamp > conftest.file
 
2963
# Reject unsafe characters in $srcdir or the absolute working directory
 
2964
# name.  Accept space and tab only in the latter.
 
2965
am_lf='
 
2966
'
 
2967
case `pwd` in
 
2968
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2969
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2970
esac
 
2971
case $srcdir in
 
2972
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2973
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2974
esac
 
2975
 
 
2976
# Do `set' in a subshell so we don't clobber the current shell's
 
2977
# arguments.  Must try -L first in case configure is actually a
 
2978
# symlink; some systems play weird games with the mod time of symlinks
 
2979
# (eg FreeBSD returns the mod time of the symlink's containing
 
2980
# directory).
 
2981
if (
 
2982
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2983
   if test "$*" = "X"; then
 
2984
      # -L didn't work.
 
2985
      set X `ls -t "$srcdir/configure" conftest.file`
 
2986
   fi
 
2987
   rm -f conftest.file
 
2988
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2989
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2990
 
 
2991
      # If neither matched, then we have a broken ls.  This can happen
 
2992
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2993
      # broken ls alias from the environment.  This has actually
 
2994
      # happened.  Such a system could not be considered "sane".
 
2995
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2996
alias in your environment" "$LINENO" 5
 
2997
   fi
 
2998
 
 
2999
   test "$2" = conftest.file
 
3000
   )
 
3001
then
 
3002
   # Ok.
 
3003
   :
 
3004
else
 
3005
   as_fn_error $? "newly created file is older than distributed files!
 
3006
Check your system clock" "$LINENO" 5
 
3007
fi
 
3008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3009
$as_echo "yes" >&6; }
 
3010
test "$program_prefix" != NONE &&
 
3011
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
3012
# Use a double $ so make ignores it.
 
3013
test "$program_suffix" != NONE &&
 
3014
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
3015
# Double any \ or $.
 
3016
# By default was `s,x,x', remove it if useless.
 
3017
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
3018
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
3019
 
 
3020
# expand $ac_aux_dir to an absolute path
 
3021
am_aux_dir=`cd $ac_aux_dir && pwd`
 
3022
 
 
3023
if test x"${MISSING+set}" != xset; then
 
3024
  case $am_aux_dir in
 
3025
  *\ * | *\     *)
 
3026
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
3027
  *)
 
3028
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
3029
  esac
 
3030
fi
 
3031
# Use eval to expand $SHELL
 
3032
if eval "$MISSING --run true"; then
 
3033
  am_missing_run="$MISSING --run "
 
3034
else
 
3035
  am_missing_run=
 
3036
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
3037
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
3038
fi
 
3039
 
 
3040
if test x"${install_sh}" != xset; then
 
3041
  case $am_aux_dir in
 
3042
  *\ * | *\     *)
 
3043
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
3044
  *)
 
3045
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
3046
  esac
 
3047
fi
 
3048
 
 
3049
# Installed binaries are usually stripped using `strip' when the user
 
3050
# run `make install-strip'.  However `strip' might not be the right
 
3051
# tool to use in cross-compilation environments, therefore Automake
 
3052
# will honor the `STRIP' environment variable to overrule this program.
 
3053
if test "$cross_compiling" != no; then
 
3054
  if test -n "$ac_tool_prefix"; then
 
3055
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3056
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3058
$as_echo_n "checking for $ac_word... " >&6; }
 
3059
if ${ac_cv_prog_STRIP+:} false; then :
 
3060
  $as_echo_n "(cached) " >&6
 
3061
else
 
3062
  if test -n "$STRIP"; then
 
3063
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3064
else
 
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3066
for as_dir in $PATH
 
3067
do
 
3068
  IFS=$as_save_IFS
 
3069
  test -z "$as_dir" && as_dir=.
 
3070
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3071
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3072
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3073
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3074
    break 2
 
3075
  fi
 
3076
done
 
3077
  done
 
3078
IFS=$as_save_IFS
 
3079
 
 
3080
fi
 
3081
fi
 
3082
STRIP=$ac_cv_prog_STRIP
 
3083
if test -n "$STRIP"; then
 
3084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
3085
$as_echo "$STRIP" >&6; }
 
3086
else
 
3087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3088
$as_echo "no" >&6; }
 
3089
fi
 
3090
 
 
3091
 
 
3092
fi
 
3093
if test -z "$ac_cv_prog_STRIP"; then
 
3094
  ac_ct_STRIP=$STRIP
 
3095
  # Extract the first word of "strip", so it can be a program name with args.
 
3096
set dummy strip; ac_word=$2
 
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3098
$as_echo_n "checking for $ac_word... " >&6; }
 
3099
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
3100
  $as_echo_n "(cached) " >&6
 
3101
else
 
3102
  if test -n "$ac_ct_STRIP"; then
 
3103
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3104
else
 
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3106
for as_dir in $PATH
 
3107
do
 
3108
  IFS=$as_save_IFS
 
3109
  test -z "$as_dir" && as_dir=.
 
3110
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3111
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3112
    ac_cv_prog_ac_ct_STRIP="strip"
 
3113
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3114
    break 2
 
3115
  fi
 
3116
done
 
3117
  done
 
3118
IFS=$as_save_IFS
 
3119
 
 
3120
fi
 
3121
fi
 
3122
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3123
if test -n "$ac_ct_STRIP"; then
 
3124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
3125
$as_echo "$ac_ct_STRIP" >&6; }
 
3126
else
 
3127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3128
$as_echo "no" >&6; }
 
3129
fi
 
3130
 
 
3131
  if test "x$ac_ct_STRIP" = x; then
 
3132
    STRIP=":"
 
3133
  else
 
3134
    case $cross_compiling:$ac_tool_warned in
 
3135
yes:)
 
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3138
ac_tool_warned=yes ;;
 
3139
esac
 
3140
    STRIP=$ac_ct_STRIP
 
3141
  fi
 
3142
else
 
3143
  STRIP="$ac_cv_prog_STRIP"
 
3144
fi
 
3145
 
 
3146
fi
 
3147
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
3148
 
 
3149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
3150
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
3151
if test -z "$MKDIR_P"; then
 
3152
  if ${ac_cv_path_mkdir+:} false; then :
 
3153
  $as_echo_n "(cached) " >&6
 
3154
else
 
3155
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3156
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3157
do
 
3158
  IFS=$as_save_IFS
 
3159
  test -z "$as_dir" && as_dir=.
 
3160
    for ac_prog in mkdir gmkdir; do
 
3161
         for ac_exec_ext in '' $ac_executable_extensions; do
 
3162
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
3163
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
3164
             'mkdir (GNU coreutils) '* | \
 
3165
             'mkdir (coreutils) '* | \
 
3166
             'mkdir (fileutils) '4.1*)
 
3167
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
3168
               break 3;;
 
3169
           esac
 
3170
         done
 
3171
       done
 
3172
  done
 
3173
IFS=$as_save_IFS
 
3174
 
 
3175
fi
 
3176
 
 
3177
  test -d ./--version && rmdir ./--version
 
3178
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3179
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3180
  else
 
3181
    # As a last resort, use the slow shell script.  Don't cache a
 
3182
    # value for MKDIR_P within a source directory, because that will
 
3183
    # break other packages using the cache if that directory is
 
3184
    # removed, or if the value is a relative name.
 
3185
    MKDIR_P="$ac_install_sh -d"
 
3186
  fi
 
3187
fi
 
3188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3189
$as_echo "$MKDIR_P" >&6; }
 
3190
 
 
3191
mkdir_p="$MKDIR_P"
 
3192
case $mkdir_p in
 
3193
  [\\/$]* | ?:[\\/]*) ;;
 
3194
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
3195
esac
 
3196
 
 
3197
for ac_prog in gawk mawk nawk awk
 
3198
do
 
3199
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3200
set dummy $ac_prog; ac_word=$2
 
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3202
$as_echo_n "checking for $ac_word... " >&6; }
 
3203
if ${ac_cv_prog_AWK+:} false; then :
 
3204
  $as_echo_n "(cached) " >&6
 
3205
else
 
3206
  if test -n "$AWK"; then
 
3207
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3208
else
 
3209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3210
for as_dir in $PATH
 
3211
do
 
3212
  IFS=$as_save_IFS
 
3213
  test -z "$as_dir" && as_dir=.
 
3214
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3215
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3216
    ac_cv_prog_AWK="$ac_prog"
 
3217
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3218
    break 2
 
3219
  fi
 
3220
done
 
3221
  done
 
3222
IFS=$as_save_IFS
 
3223
 
 
3224
fi
 
3225
fi
 
3226
AWK=$ac_cv_prog_AWK
 
3227
if test -n "$AWK"; then
 
3228
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3229
$as_echo "$AWK" >&6; }
 
3230
else
 
3231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3232
$as_echo "no" >&6; }
 
3233
fi
 
3234
 
 
3235
 
 
3236
  test -n "$AWK" && break
 
3237
done
 
3238
 
 
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3240
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3241
set x ${MAKE-make}
 
3242
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3243
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
3244
  $as_echo_n "(cached) " >&6
 
3245
else
 
3246
  cat >conftest.make <<\_ACEOF
 
3247
SHELL = /bin/sh
 
3248
all:
 
3249
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3250
_ACEOF
 
3251
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3252
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3253
  *@@@%%%=?*=@@@%%%*)
 
3254
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3255
  *)
 
3256
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3257
esac
 
3258
rm -f conftest.make
 
3259
fi
 
3260
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3261
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3262
$as_echo "yes" >&6; }
 
3263
  SET_MAKE=
 
3264
else
 
3265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3266
$as_echo "no" >&6; }
 
3267
  SET_MAKE="MAKE=${MAKE-make}"
 
3268
fi
 
3269
 
 
3270
rm -rf .tst 2>/dev/null
 
3271
mkdir .tst 2>/dev/null
 
3272
if test -d .tst; then
 
3273
  am__leading_dot=.
 
3274
else
 
3275
  am__leading_dot=_
 
3276
fi
 
3277
rmdir .tst 2>/dev/null
 
3278
 
 
3279
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
3280
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
3281
  # is not polluted with repeated "-I."
 
3282
  am__isrc=' -I$(srcdir)'
 
3283
  # test to see if srcdir already configured
 
3284
  if test -f $srcdir/config.status; then
 
3285
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
3286
  fi
 
3287
fi
 
3288
 
 
3289
# test whether we have cygpath
 
3290
if test -z "$CYGPATH_W"; then
 
3291
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3292
    CYGPATH_W='cygpath -w'
 
3293
  else
 
3294
    CYGPATH_W=echo
 
3295
  fi
 
3296
fi
 
3297
 
 
3298
 
 
3299
# Define the identity of the package.
 
3300
 PACKAGE='gimp'
 
3301
 VERSION='2.8.2'
 
3302
 
 
3303
 
 
3304
# Some tools Automake needs.
 
3305
 
 
3306
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3307
 
 
3308
 
 
3309
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3310
 
 
3311
 
 
3312
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3313
 
 
3314
 
 
3315
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3316
 
 
3317
 
 
3318
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3319
 
 
3320
# We need awk for the "check" target.  The system "awk" is bad on
 
3321
# some platforms.
 
3322
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
3323
# in the wild :-(  We should find a proper way to deprecate it ...
 
3324
AMTAR='$${TAR-tar}'
 
3325
 
 
3326
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
3327
 
 
3328
 
 
3329
 
 
3330
 
 
3331
 
 
3332
 
 
3333
# Enable silent build rules by default, requires at least
 
3334
# Automake-1.11. Disable by either passing --disable-silent-rules to
 
3335
# configure or passing V=1 to make
 
3336
# Check whether --enable-silent-rules was given.
 
3337
if test "${enable_silent_rules+set}" = set; then :
 
3338
  enableval=$enable_silent_rules;
 
3339
fi
 
3340
 
 
3341
case $enable_silent_rules in
 
3342
yes) AM_DEFAULT_VERBOSITY=0;;
 
3343
no)  AM_DEFAULT_VERBOSITY=1;;
 
3344
*)   AM_DEFAULT_VERBOSITY=0;;
 
3345
esac
 
3346
am_make=${MAKE-make}
 
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
3348
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
3349
if ${am_cv_make_support_nested_variables+:} false; then :
 
3350
  $as_echo_n "(cached) " >&6
 
3351
else
 
3352
  if $as_echo 'TRUE=$(BAR$(V))
 
3353
BAR0=false
 
3354
BAR1=true
 
3355
V=1
 
3356
am__doit:
 
3357
        @$(TRUE)
 
3358
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
3359
  am_cv_make_support_nested_variables=yes
 
3360
else
 
3361
  am_cv_make_support_nested_variables=no
 
3362
fi
 
3363
fi
 
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
3365
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
3366
if test $am_cv_make_support_nested_variables = yes; then
 
3367
    AM_V='$(V)'
 
3368
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
3369
else
 
3370
  AM_V=$AM_DEFAULT_VERBOSITY
 
3371
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
3372
fi
 
3373
AM_BACKSLASH='\'
 
3374
 
 
3375
 
 
3376
GIMP_MAJOR_VERSION=2
 
3377
GIMP_MINOR_VERSION=8
 
3378
GIMP_MICRO_VERSION=2
 
3379
GIMP_INTERFACE_AGE=2
 
3380
GIMP_BINARY_AGE=802
 
3381
GIMP_VERSION=2.8.2
 
3382
GIMP_REAL_VERSION=2.8.2
 
3383
GIMP_API_VERSION=2.0
 
3384
GIMP_APP_VERSION=2.8
 
3385
GIMP_PLUGIN_VERSION=2.0
 
3386
GIMP_TOOL_VERSION=2.0
 
3387
GIMP_PKGCONFIG_VERSION=2.0
 
3388
GIMP_DATA_VERSION=2.0
 
3389
GIMP_SYSCONF_VERSION=2.0
 
3390
GIMP_USER_VERSION=2.8
 
3391
GIMP_UNSTABLE=no
 
3392
GIMP_FULL_NAME="GNU Image Manipulation Program"
 
3393
 
 
3394
 
 
3395
 
 
3396
 
 
3397
 
 
3398
 
 
3399
 
 
3400
 
 
3401
 
 
3402
 
 
3403
 
 
3404
 
 
3405
 
 
3406
 
 
3407
 
 
3408
 
 
3409
 
 
3410
 
 
3411
 
 
3412
# These are used in the .pc files
 
3413
GLIB_REQUIRED_VERSION=2.30.2
 
3414
GDK_PIXBUF_REQUIRED_VERSION=2.24.1
 
3415
GTK_REQUIRED_VERSION=2.24.10
 
3416
CAIRO_REQUIRED_VERSION=1.10.2
 
3417
 
 
3418
 
 
3419
 
 
3420
 
 
3421
 
 
3422
# The symbol GIMP_UNSTABLE is defined above for substitution in
 
3423
# Makefiles and conditionally defined here as a preprocessor symbol
 
3424
# and automake conditional.
 
3425
if test "x$GIMP_UNSTABLE" = "xyes"; then
 
3426
 
 
3427
$as_echo "#define GIMP_UNSTABLE 1" >>confdefs.h
 
3428
 
 
3429
fi
 
3430
 if test "x$GIMP_UNSTABLE" = "xyes"; then
 
3431
  GIMP_UNSTABLE_TRUE=
 
3432
  GIMP_UNSTABLE_FALSE='#'
 
3433
else
 
3434
  GIMP_UNSTABLE_TRUE='#'
 
3435
  GIMP_UNSTABLE_FALSE=
 
3436
fi
 
3437
 
 
3438
 
 
3439
 
 
3440
# libtool versioning
 
3441
 
 
3442
 
 
3443
 
 
3444
LT_VERSION_INFO="800:2:800"
 
3445
LT_CURRENT_MINUS_AGE=0
 
3446
 
 
3447
 
 
3448
 
 
3449
 
 
3450
# gettext i18n support
 
3451
GETTEXT_PACKAGE=gimp20
 
3452
 
 
3453
 
 
3454
cat >>confdefs.h <<_ACEOF
 
3455
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
3456
_ACEOF
 
3457
 
 
3458
 
 
3459
# Determine a C compiler to use
 
3460
ac_ext=c
 
3461
ac_cpp='$CPP $CPPFLAGS'
 
3462
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3463
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3464
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3465
if test -n "$ac_tool_prefix"; then
 
3466
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3467
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3469
$as_echo_n "checking for $ac_word... " >&6; }
 
3470
if ${ac_cv_prog_CC+:} false; then :
 
3471
  $as_echo_n "(cached) " >&6
 
3472
else
 
3473
  if test -n "$CC"; then
 
3474
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3475
else
 
3476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3477
for as_dir in $PATH
 
3478
do
 
3479
  IFS=$as_save_IFS
 
3480
  test -z "$as_dir" && as_dir=.
 
3481
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3482
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3483
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3484
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3485
    break 2
 
3486
  fi
 
3487
done
 
3488
  done
 
3489
IFS=$as_save_IFS
 
3490
 
 
3491
fi
 
3492
fi
 
3493
CC=$ac_cv_prog_CC
 
3494
if test -n "$CC"; then
 
3495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3496
$as_echo "$CC" >&6; }
 
3497
else
 
3498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3499
$as_echo "no" >&6; }
 
3500
fi
 
3501
 
 
3502
 
 
3503
fi
 
3504
if test -z "$ac_cv_prog_CC"; then
 
3505
  ac_ct_CC=$CC
 
3506
  # Extract the first word of "gcc", so it can be a program name with args.
 
3507
set dummy gcc; ac_word=$2
 
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3509
$as_echo_n "checking for $ac_word... " >&6; }
 
3510
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3511
  $as_echo_n "(cached) " >&6
 
3512
else
 
3513
  if test -n "$ac_ct_CC"; then
 
3514
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3515
else
 
3516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3517
for as_dir in $PATH
 
3518
do
 
3519
  IFS=$as_save_IFS
 
3520
  test -z "$as_dir" && as_dir=.
 
3521
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3522
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3523
    ac_cv_prog_ac_ct_CC="gcc"
 
3524
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3525
    break 2
 
3526
  fi
 
3527
done
 
3528
  done
 
3529
IFS=$as_save_IFS
 
3530
 
 
3531
fi
 
3532
fi
 
3533
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3534
if test -n "$ac_ct_CC"; then
 
3535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3536
$as_echo "$ac_ct_CC" >&6; }
 
3537
else
 
3538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3539
$as_echo "no" >&6; }
 
3540
fi
 
3541
 
 
3542
  if test "x$ac_ct_CC" = x; then
 
3543
    CC=""
 
3544
  else
 
3545
    case $cross_compiling:$ac_tool_warned in
 
3546
yes:)
 
3547
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3548
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3549
ac_tool_warned=yes ;;
 
3550
esac
 
3551
    CC=$ac_ct_CC
 
3552
  fi
 
3553
else
 
3554
  CC="$ac_cv_prog_CC"
 
3555
fi
 
3556
 
 
3557
if test -z "$CC"; then
 
3558
          if test -n "$ac_tool_prefix"; then
 
3559
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3560
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3562
$as_echo_n "checking for $ac_word... " >&6; }
 
3563
if ${ac_cv_prog_CC+:} false; then :
 
3564
  $as_echo_n "(cached) " >&6
 
3565
else
 
3566
  if test -n "$CC"; then
 
3567
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3568
else
 
3569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3570
for as_dir in $PATH
 
3571
do
 
3572
  IFS=$as_save_IFS
 
3573
  test -z "$as_dir" && as_dir=.
 
3574
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3575
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3576
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3577
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3578
    break 2
 
3579
  fi
 
3580
done
 
3581
  done
 
3582
IFS=$as_save_IFS
 
3583
 
 
3584
fi
 
3585
fi
 
3586
CC=$ac_cv_prog_CC
 
3587
if test -n "$CC"; then
 
3588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3589
$as_echo "$CC" >&6; }
 
3590
else
 
3591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3592
$as_echo "no" >&6; }
 
3593
fi
 
3594
 
 
3595
 
 
3596
  fi
 
3597
fi
 
3598
if test -z "$CC"; then
 
3599
  # Extract the first word of "cc", so it can be a program name with args.
 
3600
set dummy cc; ac_word=$2
 
3601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3602
$as_echo_n "checking for $ac_word... " >&6; }
 
3603
if ${ac_cv_prog_CC+:} false; then :
 
3604
  $as_echo_n "(cached) " >&6
 
3605
else
 
3606
  if test -n "$CC"; then
 
3607
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3608
else
 
3609
  ac_prog_rejected=no
 
3610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3611
for as_dir in $PATH
 
3612
do
 
3613
  IFS=$as_save_IFS
 
3614
  test -z "$as_dir" && as_dir=.
 
3615
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3616
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3617
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3618
       ac_prog_rejected=yes
 
3619
       continue
 
3620
     fi
 
3621
    ac_cv_prog_CC="cc"
 
3622
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3623
    break 2
 
3624
  fi
 
3625
done
 
3626
  done
 
3627
IFS=$as_save_IFS
 
3628
 
 
3629
if test $ac_prog_rejected = yes; then
 
3630
  # We found a bogon in the path, so make sure we never use it.
 
3631
  set dummy $ac_cv_prog_CC
 
3632
  shift
 
3633
  if test $# != 0; then
 
3634
    # We chose a different compiler from the bogus one.
 
3635
    # However, it has the same basename, so the bogon will be chosen
 
3636
    # first if we set CC to just the basename; use the full file name.
 
3637
    shift
 
3638
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3639
  fi
 
3640
fi
 
3641
fi
 
3642
fi
 
3643
CC=$ac_cv_prog_CC
 
3644
if test -n "$CC"; then
 
3645
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3646
$as_echo "$CC" >&6; }
 
3647
else
 
3648
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3649
$as_echo "no" >&6; }
 
3650
fi
 
3651
 
 
3652
 
 
3653
fi
 
3654
if test -z "$CC"; then
 
3655
  if test -n "$ac_tool_prefix"; then
 
3656
  for ac_prog in cl.exe
 
3657
  do
 
3658
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3659
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3661
$as_echo_n "checking for $ac_word... " >&6; }
 
3662
if ${ac_cv_prog_CC+:} false; then :
 
3663
  $as_echo_n "(cached) " >&6
 
3664
else
 
3665
  if test -n "$CC"; then
 
3666
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3667
else
 
3668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3669
for as_dir in $PATH
 
3670
do
 
3671
  IFS=$as_save_IFS
 
3672
  test -z "$as_dir" && as_dir=.
 
3673
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3674
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3675
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3676
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3677
    break 2
 
3678
  fi
 
3679
done
 
3680
  done
 
3681
IFS=$as_save_IFS
 
3682
 
 
3683
fi
 
3684
fi
 
3685
CC=$ac_cv_prog_CC
 
3686
if test -n "$CC"; then
 
3687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3688
$as_echo "$CC" >&6; }
 
3689
else
 
3690
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3691
$as_echo "no" >&6; }
 
3692
fi
 
3693
 
 
3694
 
 
3695
    test -n "$CC" && break
 
3696
  done
 
3697
fi
 
3698
if test -z "$CC"; then
 
3699
  ac_ct_CC=$CC
 
3700
  for ac_prog in cl.exe
 
3701
do
 
3702
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3703
set dummy $ac_prog; ac_word=$2
 
3704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3705
$as_echo_n "checking for $ac_word... " >&6; }
 
3706
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3707
  $as_echo_n "(cached) " >&6
 
3708
else
 
3709
  if test -n "$ac_ct_CC"; then
 
3710
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3711
else
 
3712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3713
for as_dir in $PATH
 
3714
do
 
3715
  IFS=$as_save_IFS
 
3716
  test -z "$as_dir" && as_dir=.
 
3717
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3718
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3719
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3720
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3721
    break 2
 
3722
  fi
 
3723
done
 
3724
  done
 
3725
IFS=$as_save_IFS
 
3726
 
 
3727
fi
 
3728
fi
 
3729
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3730
if test -n "$ac_ct_CC"; then
 
3731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3732
$as_echo "$ac_ct_CC" >&6; }
 
3733
else
 
3734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3735
$as_echo "no" >&6; }
 
3736
fi
 
3737
 
 
3738
 
 
3739
  test -n "$ac_ct_CC" && break
 
3740
done
 
3741
 
 
3742
  if test "x$ac_ct_CC" = x; then
 
3743
    CC=""
 
3744
  else
 
3745
    case $cross_compiling:$ac_tool_warned in
 
3746
yes:)
 
3747
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3748
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3749
ac_tool_warned=yes ;;
 
3750
esac
 
3751
    CC=$ac_ct_CC
 
3752
  fi
 
3753
fi
 
3754
 
 
3755
fi
 
3756
 
 
3757
 
 
3758
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3759
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3760
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3761
See \`config.log' for more details" "$LINENO" 5; }
 
3762
 
 
3763
# Provide some information about the compiler.
 
3764
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3765
set X $ac_compile
 
3766
ac_compiler=$2
 
3767
for ac_option in --version -v -V -qversion; do
 
3768
  { { ac_try="$ac_compiler $ac_option >&5"
 
3769
case "(($ac_try" in
 
3770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3771
  *) ac_try_echo=$ac_try;;
 
3772
esac
 
3773
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3774
$as_echo "$ac_try_echo"; } >&5
 
3775
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3776
  ac_status=$?
 
3777
  if test -s conftest.err; then
 
3778
    sed '10a\
 
3779
... rest of stderr output deleted ...
 
3780
         10q' conftest.err >conftest.er1
 
3781
    cat conftest.er1 >&5
 
3782
  fi
 
3783
  rm -f conftest.er1 conftest.err
 
3784
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3785
  test $ac_status = 0; }
 
3786
done
 
3787
 
 
3788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3789
/* end confdefs.h.  */
 
3790
 
 
3791
int
 
3792
main ()
 
3793
{
 
3794
 
 
3795
  ;
 
3796
  return 0;
 
3797
}
 
3798
_ACEOF
 
3799
ac_clean_files_save=$ac_clean_files
 
3800
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3801
# Try to create an executable without -o first, disregard a.out.
 
3802
# It will help us diagnose broken compilers, and finding out an intuition
 
3803
# of exeext.
 
3804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3805
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3806
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3807
 
 
3808
# The possible output files:
 
3809
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3810
 
 
3811
ac_rmfiles=
 
3812
for ac_file in $ac_files
 
3813
do
 
3814
  case $ac_file in
 
3815
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3816
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3817
  esac
 
3818
done
 
3819
rm -f $ac_rmfiles
 
3820
 
 
3821
if { { ac_try="$ac_link_default"
 
3822
case "(($ac_try" in
 
3823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3824
  *) ac_try_echo=$ac_try;;
 
3825
esac
 
3826
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3827
$as_echo "$ac_try_echo"; } >&5
 
3828
  (eval "$ac_link_default") 2>&5
 
3829
  ac_status=$?
 
3830
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3831
  test $ac_status = 0; }; then :
 
3832
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3833
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3834
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3835
# so that the user can short-circuit this test for compilers unknown to
 
3836
# Autoconf.
 
3837
for ac_file in $ac_files ''
 
3838
do
 
3839
  test -f "$ac_file" || continue
 
3840
  case $ac_file in
 
3841
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3842
        ;;
 
3843
    [ab].out )
 
3844
        # We found the default executable, but exeext='' is most
 
3845
        # certainly right.
 
3846
        break;;
 
3847
    *.* )
 
3848
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3849
        then :; else
 
3850
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3851
        fi
 
3852
        # We set ac_cv_exeext here because the later test for it is not
 
3853
        # safe: cross compilers may not add the suffix if given an `-o'
 
3854
        # argument, so we may need to know it at that point already.
 
3855
        # Even if this section looks crufty: it has the advantage of
 
3856
        # actually working.
 
3857
        break;;
 
3858
    * )
 
3859
        break;;
 
3860
  esac
 
3861
done
 
3862
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3863
 
 
3864
else
 
3865
  ac_file=''
 
3866
fi
 
3867
if test -z "$ac_file"; then :
 
3868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3869
$as_echo "no" >&6; }
 
3870
$as_echo "$as_me: failed program was:" >&5
 
3871
sed 's/^/| /' conftest.$ac_ext >&5
 
3872
 
 
3873
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3874
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3875
as_fn_error 77 "C compiler cannot create executables
 
3876
See \`config.log' for more details" "$LINENO" 5; }
 
3877
else
 
3878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3879
$as_echo "yes" >&6; }
 
3880
fi
 
3881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3882
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3884
$as_echo "$ac_file" >&6; }
 
3885
ac_exeext=$ac_cv_exeext
 
3886
 
 
3887
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3888
ac_clean_files=$ac_clean_files_save
 
3889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3890
$as_echo_n "checking for suffix of executables... " >&6; }
 
3891
if { { ac_try="$ac_link"
 
3892
case "(($ac_try" in
 
3893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3894
  *) ac_try_echo=$ac_try;;
 
3895
esac
 
3896
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3897
$as_echo "$ac_try_echo"; } >&5
 
3898
  (eval "$ac_link") 2>&5
 
3899
  ac_status=$?
 
3900
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3901
  test $ac_status = 0; }; then :
 
3902
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3903
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3904
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3905
# `rm'.
 
3906
for ac_file in conftest.exe conftest conftest.*; do
 
3907
  test -f "$ac_file" || continue
 
3908
  case $ac_file in
 
3909
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3910
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3911
          break;;
 
3912
    * ) break;;
 
3913
  esac
 
3914
done
 
3915
else
 
3916
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3917
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3918
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3919
See \`config.log' for more details" "$LINENO" 5; }
 
3920
fi
 
3921
rm -f conftest conftest$ac_cv_exeext
 
3922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3923
$as_echo "$ac_cv_exeext" >&6; }
 
3924
 
 
3925
rm -f conftest.$ac_ext
 
3926
EXEEXT=$ac_cv_exeext
 
3927
ac_exeext=$EXEEXT
 
3928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3929
/* end confdefs.h.  */
 
3930
#include <stdio.h>
 
3931
int
 
3932
main ()
 
3933
{
 
3934
FILE *f = fopen ("conftest.out", "w");
 
3935
 return ferror (f) || fclose (f) != 0;
 
3936
 
 
3937
  ;
 
3938
  return 0;
 
3939
}
 
3940
_ACEOF
 
3941
ac_clean_files="$ac_clean_files conftest.out"
 
3942
# Check that the compiler produces executables we can run.  If not, either
 
3943
# the compiler is broken, or we cross compile.
 
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3945
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3946
if test "$cross_compiling" != yes; then
 
3947
  { { ac_try="$ac_link"
 
3948
case "(($ac_try" in
 
3949
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3950
  *) ac_try_echo=$ac_try;;
 
3951
esac
 
3952
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3953
$as_echo "$ac_try_echo"; } >&5
 
3954
  (eval "$ac_link") 2>&5
 
3955
  ac_status=$?
 
3956
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3957
  test $ac_status = 0; }
 
3958
  if { ac_try='./conftest$ac_cv_exeext'
 
3959
  { { case "(($ac_try" in
 
3960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3961
  *) ac_try_echo=$ac_try;;
 
3962
esac
 
3963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3964
$as_echo "$ac_try_echo"; } >&5
 
3965
  (eval "$ac_try") 2>&5
 
3966
  ac_status=$?
 
3967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3968
  test $ac_status = 0; }; }; then
 
3969
    cross_compiling=no
 
3970
  else
 
3971
    if test "$cross_compiling" = maybe; then
 
3972
        cross_compiling=yes
 
3973
    else
 
3974
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3975
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3976
as_fn_error $? "cannot run C compiled programs.
 
3977
If you meant to cross compile, use \`--host'.
 
3978
See \`config.log' for more details" "$LINENO" 5; }
 
3979
    fi
 
3980
  fi
 
3981
fi
 
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3983
$as_echo "$cross_compiling" >&6; }
 
3984
 
 
3985
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3986
ac_clean_files=$ac_clean_files_save
 
3987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3988
$as_echo_n "checking for suffix of object files... " >&6; }
 
3989
if ${ac_cv_objext+:} false; then :
 
3990
  $as_echo_n "(cached) " >&6
 
3991
else
 
3992
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3993
/* end confdefs.h.  */
 
3994
 
 
3995
int
 
3996
main ()
 
3997
{
 
3998
 
 
3999
  ;
 
4000
  return 0;
 
4001
}
 
4002
_ACEOF
 
4003
rm -f conftest.o conftest.obj
 
4004
if { { ac_try="$ac_compile"
 
4005
case "(($ac_try" in
 
4006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4007
  *) ac_try_echo=$ac_try;;
 
4008
esac
 
4009
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4010
$as_echo "$ac_try_echo"; } >&5
 
4011
  (eval "$ac_compile") 2>&5
 
4012
  ac_status=$?
 
4013
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4014
  test $ac_status = 0; }; then :
 
4015
  for ac_file in conftest.o conftest.obj conftest.*; do
 
4016
  test -f "$ac_file" || continue;
 
4017
  case $ac_file in
 
4018
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
4019
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
4020
       break;;
 
4021
  esac
 
4022
done
 
4023
else
 
4024
  $as_echo "$as_me: failed program was:" >&5
 
4025
sed 's/^/| /' conftest.$ac_ext >&5
 
4026
 
 
4027
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4029
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4030
See \`config.log' for more details" "$LINENO" 5; }
 
4031
fi
 
4032
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
4033
fi
 
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4035
$as_echo "$ac_cv_objext" >&6; }
 
4036
OBJEXT=$ac_cv_objext
 
4037
ac_objext=$OBJEXT
 
4038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4039
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4040
if ${ac_cv_c_compiler_gnu+:} false; then :
 
4041
  $as_echo_n "(cached) " >&6
 
4042
else
 
4043
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4044
/* end confdefs.h.  */
 
4045
 
 
4046
int
 
4047
main ()
 
4048
{
 
4049
#ifndef __GNUC__
 
4050
       choke me
 
4051
#endif
 
4052
 
 
4053
  ;
 
4054
  return 0;
 
4055
}
 
4056
_ACEOF
 
4057
if ac_fn_c_try_compile "$LINENO"; then :
 
4058
  ac_compiler_gnu=yes
 
4059
else
 
4060
  ac_compiler_gnu=no
 
4061
fi
 
4062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4063
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4064
 
 
4065
fi
 
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4067
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4068
if test $ac_compiler_gnu = yes; then
 
4069
  GCC=yes
 
4070
else
 
4071
  GCC=
 
4072
fi
 
4073
ac_test_CFLAGS=${CFLAGS+set}
 
4074
ac_save_CFLAGS=$CFLAGS
 
4075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4076
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4077
if ${ac_cv_prog_cc_g+:} false; then :
 
4078
  $as_echo_n "(cached) " >&6
 
4079
else
 
4080
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4081
   ac_c_werror_flag=yes
 
4082
   ac_cv_prog_cc_g=no
 
4083
   CFLAGS="-g"
 
4084
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4085
/* end confdefs.h.  */
 
4086
 
 
4087
int
 
4088
main ()
 
4089
{
 
4090
 
 
4091
  ;
 
4092
  return 0;
 
4093
}
 
4094
_ACEOF
 
4095
if ac_fn_c_try_compile "$LINENO"; then :
 
4096
  ac_cv_prog_cc_g=yes
 
4097
else
 
4098
  CFLAGS=""
 
4099
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4100
/* end confdefs.h.  */
 
4101
 
 
4102
int
 
4103
main ()
 
4104
{
 
4105
 
 
4106
  ;
 
4107
  return 0;
 
4108
}
 
4109
_ACEOF
 
4110
if ac_fn_c_try_compile "$LINENO"; then :
 
4111
 
 
4112
else
 
4113
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4114
         CFLAGS="-g"
 
4115
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4116
/* end confdefs.h.  */
 
4117
 
 
4118
int
 
4119
main ()
 
4120
{
 
4121
 
 
4122
  ;
 
4123
  return 0;
 
4124
}
 
4125
_ACEOF
 
4126
if ac_fn_c_try_compile "$LINENO"; then :
 
4127
  ac_cv_prog_cc_g=yes
 
4128
fi
 
4129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4130
fi
 
4131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4132
fi
 
4133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4134
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4135
fi
 
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4137
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4138
if test "$ac_test_CFLAGS" = set; then
 
4139
  CFLAGS=$ac_save_CFLAGS
 
4140
elif test $ac_cv_prog_cc_g = yes; then
 
4141
  if test "$GCC" = yes; then
 
4142
    CFLAGS="-g -O2"
 
4143
  else
 
4144
    CFLAGS="-g"
 
4145
  fi
 
4146
else
 
4147
  if test "$GCC" = yes; then
 
4148
    CFLAGS="-O2"
 
4149
  else
 
4150
    CFLAGS=
 
4151
  fi
 
4152
fi
 
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4154
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4155
if ${ac_cv_prog_cc_c89+:} false; then :
 
4156
  $as_echo_n "(cached) " >&6
 
4157
else
 
4158
  ac_cv_prog_cc_c89=no
 
4159
ac_save_CC=$CC
 
4160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4161
/* end confdefs.h.  */
 
4162
#include <stdarg.h>
 
4163
#include <stdio.h>
 
4164
struct stat;
 
4165
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4166
struct buf { int x; };
 
4167
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4168
static char *e (p, i)
 
4169
     char **p;
 
4170
     int i;
 
4171
{
 
4172
  return p[i];
 
4173
}
 
4174
static char *f (char * (*g) (char **, int), char **p, ...)
 
4175
{
 
4176
  char *s;
 
4177
  va_list v;
 
4178
  va_start (v,p);
 
4179
  s = g (p, va_arg (v,int));
 
4180
  va_end (v);
 
4181
  return s;
 
4182
}
 
4183
 
 
4184
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4185
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4186
   These don't provoke an error unfortunately, instead are silently treated
 
4187
   as 'x'.  The following induces an error, until -std is added to get
 
4188
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4189
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4190
   that's true only with -std.  */
 
4191
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4192
 
 
4193
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4194
   inside strings and character constants.  */
 
4195
#define FOO(x) 'x'
 
4196
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4197
 
 
4198
int test (int i, double x);
 
4199
struct s1 {int (*f) (int a);};
 
4200
struct s2 {int (*f) (double a);};
 
4201
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4202
int argc;
 
4203
char **argv;
 
4204
int
 
4205
main ()
 
4206
{
 
4207
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4208
  ;
 
4209
  return 0;
 
4210
}
 
4211
_ACEOF
 
4212
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4213
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4214
do
 
4215
  CC="$ac_save_CC $ac_arg"
 
4216
  if ac_fn_c_try_compile "$LINENO"; then :
 
4217
  ac_cv_prog_cc_c89=$ac_arg
 
4218
fi
 
4219
rm -f core conftest.err conftest.$ac_objext
 
4220
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4221
done
 
4222
rm -f conftest.$ac_ext
 
4223
CC=$ac_save_CC
 
4224
 
 
4225
fi
 
4226
# AC_CACHE_VAL
 
4227
case "x$ac_cv_prog_cc_c89" in
 
4228
  x)
 
4229
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4230
$as_echo "none needed" >&6; } ;;
 
4231
  xno)
 
4232
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4233
$as_echo "unsupported" >&6; } ;;
 
4234
  *)
 
4235
    CC="$CC $ac_cv_prog_cc_c89"
 
4236
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4237
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4238
esac
 
4239
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4240
 
 
4241
fi
 
4242
 
 
4243
ac_ext=c
 
4244
ac_cpp='$CPP $CPPFLAGS'
 
4245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4248
DEPDIR="${am__leading_dot}deps"
 
4249
 
 
4250
ac_config_commands="$ac_config_commands depfiles"
 
4251
 
 
4252
 
 
4253
am_make=${MAKE-make}
 
4254
cat > confinc << 'END'
 
4255
am__doit:
 
4256
        @echo this is the am__doit target
 
4257
.PHONY: am__doit
 
4258
END
 
4259
# If we don't find an include directive, just comment out the code.
 
4260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4261
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
4262
am__include="#"
 
4263
am__quote=
 
4264
_am_result=none
 
4265
# First try GNU make style include.
 
4266
echo "include confinc" > confmf
 
4267
# Ignore all kinds of additional output from `make'.
 
4268
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4269
*the\ am__doit\ target*)
 
4270
  am__include=include
 
4271
  am__quote=
 
4272
  _am_result=GNU
 
4273
  ;;
 
4274
esac
 
4275
# Now try BSD make style include.
 
4276
if test "$am__include" = "#"; then
 
4277
   echo '.include "confinc"' > confmf
 
4278
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4279
   *the\ am__doit\ target*)
 
4280
     am__include=.include
 
4281
     am__quote="\""
 
4282
     _am_result=BSD
 
4283
     ;;
 
4284
   esac
 
4285
fi
 
4286
 
 
4287
 
 
4288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4289
$as_echo "$_am_result" >&6; }
 
4290
rm -f confinc confmf
 
4291
 
 
4292
# Check whether --enable-dependency-tracking was given.
 
4293
if test "${enable_dependency_tracking+set}" = set; then :
 
4294
  enableval=$enable_dependency_tracking;
 
4295
fi
 
4296
 
 
4297
if test "x$enable_dependency_tracking" != xno; then
 
4298
  am_depcomp="$ac_aux_dir/depcomp"
 
4299
  AMDEPBACKSLASH='\'
 
4300
  am__nodep='_no'
 
4301
fi
 
4302
 if test "x$enable_dependency_tracking" != xno; then
 
4303
  AMDEP_TRUE=
 
4304
  AMDEP_FALSE='#'
 
4305
else
 
4306
  AMDEP_TRUE='#'
 
4307
  AMDEP_FALSE=
 
4308
fi
 
4309
 
 
4310
 
 
4311
 
 
4312
depcc="$CC"   am_compiler_list=
 
4313
 
 
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4315
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4316
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
4317
  $as_echo_n "(cached) " >&6
 
4318
else
 
4319
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4320
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4321
  # making bogus files that we don't know about and never remove.  For
 
4322
  # instance it was reported that on HP-UX the gcc test will end up
 
4323
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4324
  # in D'.
 
4325
  rm -rf conftest.dir
 
4326
  mkdir conftest.dir
 
4327
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4328
  # using a relative directory.
 
4329
  cp "$am_depcomp" conftest.dir
 
4330
  cd conftest.dir
 
4331
  # We will build objects and dependencies in a subdirectory because
 
4332
  # it helps to detect inapplicable dependency modes.  For instance
 
4333
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4334
  # side effect of compilation, but ICC will put the dependencies in
 
4335
  # the current directory while Tru64 will put them in the object
 
4336
  # directory.
 
4337
  mkdir sub
 
4338
 
 
4339
  am_cv_CC_dependencies_compiler_type=none
 
4340
  if test "$am_compiler_list" = ""; then
 
4341
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4342
  fi
 
4343
  am__universal=false
 
4344
  case " $depcc " in #(
 
4345
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4346
     esac
 
4347
 
 
4348
  for depmode in $am_compiler_list; do
 
4349
    # Setup a source with many dependencies, because some compilers
 
4350
    # like to wrap large dependency lists on column 80 (with \), and
 
4351
    # we should not choose a depcomp mode which is confused by this.
 
4352
    #
 
4353
    # We need to recreate these files for each test, as the compiler may
 
4354
    # overwrite some of them when testing with obscure command lines.
 
4355
    # This happens at least with the AIX C compiler.
 
4356
    : > sub/conftest.c
 
4357
    for i in 1 2 3 4 5 6; do
 
4358
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4359
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4360
      # Solaris 8's {/usr,}/bin/sh.
 
4361
      touch sub/conftst$i.h
 
4362
    done
 
4363
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4364
 
 
4365
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4366
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4367
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4368
    # versions had trouble with output in subdirs
 
4369
    am__obj=sub/conftest.${OBJEXT-o}
 
4370
    am__minus_obj="-o $am__obj"
 
4371
    case $depmode in
 
4372
    gcc)
 
4373
      # This depmode causes a compiler race in universal mode.
 
4374
      test "$am__universal" = false || continue
 
4375
      ;;
 
4376
    nosideeffect)
 
4377
      # after this tag, mechanisms are not by side-effect, so they'll
 
4378
      # only be used when explicitly requested
 
4379
      if test "x$enable_dependency_tracking" = xyes; then
 
4380
        continue
 
4381
      else
 
4382
        break
 
4383
      fi
 
4384
      ;;
 
4385
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4386
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4387
      # not run yet.  These depmodes are late enough in the game, and
 
4388
      # so weak that their functioning should not be impacted.
 
4389
      am__obj=conftest.${OBJEXT-o}
 
4390
      am__minus_obj=
 
4391
      ;;
 
4392
    none) break ;;
 
4393
    esac
 
4394
    if depmode=$depmode \
 
4395
       source=sub/conftest.c object=$am__obj \
 
4396
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4397
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4398
         >/dev/null 2>conftest.err &&
 
4399
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4400
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4401
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4402
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4403
      # icc doesn't choke on unknown options, it will just issue warnings
 
4404
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4405
      # that says an option was ignored or not supported.
 
4406
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4407
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4408
      # The diagnosis changed in icc 8.0:
 
4409
      #   icc: Command line remark: option '-MP' not supported
 
4410
      if (grep 'ignoring option' conftest.err ||
 
4411
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4412
        am_cv_CC_dependencies_compiler_type=$depmode
 
4413
        break
 
4414
      fi
 
4415
    fi
 
4416
  done
 
4417
 
 
4418
  cd ..
 
4419
  rm -rf conftest.dir
 
4420
else
 
4421
  am_cv_CC_dependencies_compiler_type=none
 
4422
fi
 
4423
 
 
4424
fi
 
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4426
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4427
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4428
 
 
4429
 if
 
4430
  test "x$enable_dependency_tracking" != xno \
 
4431
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4432
  am__fastdepCC_TRUE=
 
4433
  am__fastdepCC_FALSE='#'
 
4434
else
 
4435
  am__fastdepCC_TRUE='#'
 
4436
  am__fastdepCC_FALSE=
 
4437
fi
 
4438
 
 
4439
 
 
4440
if test "x$CC" != xcc; then
 
4441
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
4442
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 
4443
else
 
4444
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
4445
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 
4446
fi
 
4447
set dummy $CC; ac_cc=`$as_echo "$2" |
 
4448
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4449
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 
4450
  $as_echo_n "(cached) " >&6
 
4451
else
 
4452
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4453
/* end confdefs.h.  */
 
4454
 
 
4455
int
 
4456
main ()
 
4457
{
 
4458
 
 
4459
  ;
 
4460
  return 0;
 
4461
}
 
4462
_ACEOF
 
4463
# Make sure it works both with $CC and with simple cc.
 
4464
# We do the test twice because some compilers refuse to overwrite an
 
4465
# existing .o file with -o, though they will create one.
 
4466
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4467
rm -f conftest2.*
 
4468
if { { case "(($ac_try" in
 
4469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4470
  *) ac_try_echo=$ac_try;;
 
4471
esac
 
4472
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4473
$as_echo "$ac_try_echo"; } >&5
 
4474
  (eval "$ac_try") 2>&5
 
4475
  ac_status=$?
 
4476
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4477
  test $ac_status = 0; } &&
 
4478
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4479
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4480
  *) ac_try_echo=$ac_try;;
 
4481
esac
 
4482
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4483
$as_echo "$ac_try_echo"; } >&5
 
4484
  (eval "$ac_try") 2>&5
 
4485
  ac_status=$?
 
4486
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4487
  test $ac_status = 0; };
 
4488
then
 
4489
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4490
  if test "x$CC" != xcc; then
 
4491
    # Test first that cc exists at all.
 
4492
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4493
  { { case "(($ac_try" in
 
4494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4495
  *) ac_try_echo=$ac_try;;
 
4496
esac
 
4497
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4498
$as_echo "$ac_try_echo"; } >&5
 
4499
  (eval "$ac_try") 2>&5
 
4500
  ac_status=$?
 
4501
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4502
  test $ac_status = 0; }; }; then
 
4503
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4504
      rm -f conftest2.*
 
4505
      if { { case "(($ac_try" in
 
4506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4507
  *) ac_try_echo=$ac_try;;
 
4508
esac
 
4509
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4510
$as_echo "$ac_try_echo"; } >&5
 
4511
  (eval "$ac_try") 2>&5
 
4512
  ac_status=$?
 
4513
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4514
  test $ac_status = 0; } &&
 
4515
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
4516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4517
  *) ac_try_echo=$ac_try;;
 
4518
esac
 
4519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4520
$as_echo "$ac_try_echo"; } >&5
 
4521
  (eval "$ac_try") 2>&5
 
4522
  ac_status=$?
 
4523
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4524
  test $ac_status = 0; };
 
4525
      then
 
4526
        # cc works too.
 
4527
        :
 
4528
      else
 
4529
        # cc exists but doesn't like -o.
 
4530
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4531
      fi
 
4532
    fi
 
4533
  fi
 
4534
else
 
4535
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4536
fi
 
4537
rm -f core conftest*
 
4538
 
 
4539
fi
 
4540
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4542
$as_echo "yes" >&6; }
 
4543
else
 
4544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4545
$as_echo "no" >&6; }
 
4546
 
 
4547
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4548
 
 
4549
fi
 
4550
 
 
4551
# FIXME: we rely on the cache variable name because
 
4552
# there is no other way.
 
4553
set dummy $CC
 
4554
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4555
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
4556
if test "$am_t" != yes; then
 
4557
   # Losing compiler, so override with the script.
 
4558
   # FIXME: It is wrong to rewrite CC.
 
4559
   # But if we don't then we get into trouble of one sort or another.
 
4560
   # A longer-term fix would be to have automake use am__CC in this case,
 
4561
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4562
   CC="$am_aux_dir/compile $CC"
 
4563
fi
 
4564
 
 
4565
 
 
4566
 
 
4567
# Initialize libtool
 
4568
 
 
4569
case `pwd` in
 
4570
  *\ * | *\     *)
 
4571
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
4572
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
4573
esac
 
4574
 
 
4575
 
 
4576
 
 
4577
macro_version='2.4.2'
 
4578
macro_revision='1.3337'
 
4579
 
 
4580
 
 
4581
 
 
4582
 
 
4583
 
 
4584
 
 
4585
 
 
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
ltmain="$ac_aux_dir/ltmain.sh"
 
4593
 
 
4594
# Make sure we can run config.sub.
 
4595
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4596
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4597
 
 
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4599
$as_echo_n "checking build system type... " >&6; }
 
4600
if ${ac_cv_build+:} false; then :
 
4601
  $as_echo_n "(cached) " >&6
 
4602
else
 
4603
  ac_build_alias=$build_alias
 
4604
test "x$ac_build_alias" = x &&
 
4605
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4606
test "x$ac_build_alias" = x &&
 
4607
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4608
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4609
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4610
 
 
4611
fi
 
4612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4613
$as_echo "$ac_cv_build" >&6; }
 
4614
case $ac_cv_build in
 
4615
*-*-*) ;;
 
4616
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
4617
esac
 
4618
build=$ac_cv_build
 
4619
ac_save_IFS=$IFS; IFS='-'
 
4620
set x $ac_cv_build
 
4621
shift
 
4622
build_cpu=$1
 
4623
build_vendor=$2
 
4624
shift; shift
 
4625
# Remember, the first character of IFS is used to create $*,
 
4626
# except with old shells:
 
4627
build_os=$*
 
4628
IFS=$ac_save_IFS
 
4629
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4630
 
 
4631
 
 
4632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4633
$as_echo_n "checking host system type... " >&6; }
 
4634
if ${ac_cv_host+:} false; then :
 
4635
  $as_echo_n "(cached) " >&6
 
4636
else
 
4637
  if test "x$host_alias" = x; then
 
4638
  ac_cv_host=$ac_cv_build
 
4639
else
 
4640
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4641
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4642
fi
 
4643
 
 
4644
fi
 
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4646
$as_echo "$ac_cv_host" >&6; }
 
4647
case $ac_cv_host in
 
4648
*-*-*) ;;
 
4649
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
4650
esac
 
4651
host=$ac_cv_host
 
4652
ac_save_IFS=$IFS; IFS='-'
 
4653
set x $ac_cv_host
 
4654
shift
 
4655
host_cpu=$1
 
4656
host_vendor=$2
 
4657
shift; shift
 
4658
# Remember, the first character of IFS is used to create $*,
 
4659
# except with old shells:
 
4660
host_os=$*
 
4661
IFS=$ac_save_IFS
 
4662
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4663
 
 
4664
 
 
4665
# Backslashify metacharacters that are still active within
 
4666
# double-quoted strings.
 
4667
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
4668
 
 
4669
# Same as above, but do not quote variable references.
 
4670
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
4671
 
 
4672
# Sed substitution to delay expansion of an escaped shell variable in a
 
4673
# double_quote_subst'ed string.
 
4674
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4675
 
 
4676
# Sed substitution to delay expansion of an escaped single quote.
 
4677
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
4678
 
 
4679
# Sed substitution to avoid accidental globbing in evaled expressions
 
4680
no_glob_subst='s/\*/\\\*/g'
 
4681
 
 
4682
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4683
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
4684
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
4685
 
 
4686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
4687
$as_echo_n "checking how to print strings... " >&6; }
 
4688
# Test print first, because it will be a builtin if present.
 
4689
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
4690
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4691
  ECHO='print -r --'
 
4692
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
4693
  ECHO='printf %s\n'
 
4694
else
 
4695
  # Use this function as a fallback that always works.
 
4696
  func_fallback_echo ()
 
4697
  {
 
4698
    eval 'cat <<_LTECHO_EOF
 
4699
$1
 
4700
_LTECHO_EOF'
 
4701
  }
 
4702
  ECHO='func_fallback_echo'
 
4703
fi
 
4704
 
 
4705
# func_echo_all arg...
 
4706
# Invoke $ECHO with all args, space-separated.
 
4707
func_echo_all ()
 
4708
{
 
4709
    $ECHO ""
 
4710
}
 
4711
 
 
4712
case "$ECHO" in
 
4713
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
4714
$as_echo "printf" >&6; } ;;
 
4715
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
4716
$as_echo "print -r" >&6; } ;;
 
4717
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
4718
$as_echo "cat" >&6; } ;;
 
4719
esac
 
4720
 
 
4721
 
 
4722
 
 
4723
 
 
4724
 
 
4725
 
 
4726
 
 
4727
 
 
4728
 
 
4729
 
 
4730
 
 
4731
 
 
4732
 
 
4733
 
 
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4735
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4736
if ${ac_cv_path_SED+:} false; then :
 
4737
  $as_echo_n "(cached) " >&6
 
4738
else
 
4739
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4740
     for ac_i in 1 2 3 4 5 6 7; do
 
4741
       ac_script="$ac_script$as_nl$ac_script"
 
4742
     done
 
4743
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4744
     { ac_script=; unset ac_script;}
 
4745
     if test -z "$SED"; then
 
4746
  ac_path_SED_found=false
 
4747
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4748
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4749
for as_dir in $PATH
 
4750
do
 
4751
  IFS=$as_save_IFS
 
4752
  test -z "$as_dir" && as_dir=.
 
4753
    for ac_prog in sed gsed; do
 
4754
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4755
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4756
      as_fn_executable_p "$ac_path_SED" || continue
 
4757
# Check for GNU ac_path_SED and select it if it is found.
 
4758
  # Check for GNU $ac_path_SED
 
4759
case `"$ac_path_SED" --version 2>&1` in
 
4760
*GNU*)
 
4761
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4762
*)
 
4763
  ac_count=0
 
4764
  $as_echo_n 0123456789 >"conftest.in"
 
4765
  while :
 
4766
  do
 
4767
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4768
    mv "conftest.tmp" "conftest.in"
 
4769
    cp "conftest.in" "conftest.nl"
 
4770
    $as_echo '' >> "conftest.nl"
 
4771
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4772
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4773
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4774
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4775
      # Best one so far, save it but keep looking for a better one
 
4776
      ac_cv_path_SED="$ac_path_SED"
 
4777
      ac_path_SED_max=$ac_count
 
4778
    fi
 
4779
    # 10*(2^10) chars as input seems more than enough
 
4780
    test $ac_count -gt 10 && break
 
4781
  done
 
4782
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4783
esac
 
4784
 
 
4785
      $ac_path_SED_found && break 3
 
4786
    done
 
4787
  done
 
4788
  done
 
4789
IFS=$as_save_IFS
 
4790
  if test -z "$ac_cv_path_SED"; then
 
4791
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4792
  fi
 
4793
else
 
4794
  ac_cv_path_SED=$SED
 
4795
fi
 
4796
 
 
4797
fi
 
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4799
$as_echo "$ac_cv_path_SED" >&6; }
 
4800
 SED="$ac_cv_path_SED"
 
4801
  rm -f conftest.sed
 
4802
 
 
4803
test -z "$SED" && SED=sed
 
4804
Xsed="$SED -e 1s/^X//"
 
4805
 
 
4806
 
 
4807
 
 
4808
 
 
4809
 
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
 
 
4815
 
 
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4817
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4818
if ${ac_cv_path_GREP+:} false; then :
 
4819
  $as_echo_n "(cached) " >&6
 
4820
else
 
4821
  if test -z "$GREP"; then
 
4822
  ac_path_GREP_found=false
 
4823
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4824
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4825
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4826
do
 
4827
  IFS=$as_save_IFS
 
4828
  test -z "$as_dir" && as_dir=.
 
4829
    for ac_prog in grep ggrep; do
 
4830
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4831
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4832
      as_fn_executable_p "$ac_path_GREP" || continue
 
4833
# Check for GNU ac_path_GREP and select it if it is found.
 
4834
  # Check for GNU $ac_path_GREP
 
4835
case `"$ac_path_GREP" --version 2>&1` in
 
4836
*GNU*)
 
4837
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4838
*)
 
4839
  ac_count=0
 
4840
  $as_echo_n 0123456789 >"conftest.in"
 
4841
  while :
 
4842
  do
 
4843
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4844
    mv "conftest.tmp" "conftest.in"
 
4845
    cp "conftest.in" "conftest.nl"
 
4846
    $as_echo 'GREP' >> "conftest.nl"
 
4847
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4848
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4849
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4850
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4851
      # Best one so far, save it but keep looking for a better one
 
4852
      ac_cv_path_GREP="$ac_path_GREP"
 
4853
      ac_path_GREP_max=$ac_count
 
4854
    fi
 
4855
    # 10*(2^10) chars as input seems more than enough
 
4856
    test $ac_count -gt 10 && break
 
4857
  done
 
4858
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4859
esac
 
4860
 
 
4861
      $ac_path_GREP_found && break 3
 
4862
    done
 
4863
  done
 
4864
  done
 
4865
IFS=$as_save_IFS
 
4866
  if test -z "$ac_cv_path_GREP"; then
 
4867
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4868
  fi
 
4869
else
 
4870
  ac_cv_path_GREP=$GREP
 
4871
fi
 
4872
 
 
4873
fi
 
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4875
$as_echo "$ac_cv_path_GREP" >&6; }
 
4876
 GREP="$ac_cv_path_GREP"
 
4877
 
 
4878
 
 
4879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4880
$as_echo_n "checking for egrep... " >&6; }
 
4881
if ${ac_cv_path_EGREP+:} false; then :
 
4882
  $as_echo_n "(cached) " >&6
 
4883
else
 
4884
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4885
   then ac_cv_path_EGREP="$GREP -E"
 
4886
   else
 
4887
     if test -z "$EGREP"; then
 
4888
  ac_path_EGREP_found=false
 
4889
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4890
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4891
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4892
do
 
4893
  IFS=$as_save_IFS
 
4894
  test -z "$as_dir" && as_dir=.
 
4895
    for ac_prog in egrep; do
 
4896
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4897
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4898
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4899
# Check for GNU ac_path_EGREP and select it if it is found.
 
4900
  # Check for GNU $ac_path_EGREP
 
4901
case `"$ac_path_EGREP" --version 2>&1` in
 
4902
*GNU*)
 
4903
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4904
*)
 
4905
  ac_count=0
 
4906
  $as_echo_n 0123456789 >"conftest.in"
 
4907
  while :
 
4908
  do
 
4909
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4910
    mv "conftest.tmp" "conftest.in"
 
4911
    cp "conftest.in" "conftest.nl"
 
4912
    $as_echo 'EGREP' >> "conftest.nl"
 
4913
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4914
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4915
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4916
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4917
      # Best one so far, save it but keep looking for a better one
 
4918
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4919
      ac_path_EGREP_max=$ac_count
 
4920
    fi
 
4921
    # 10*(2^10) chars as input seems more than enough
 
4922
    test $ac_count -gt 10 && break
 
4923
  done
 
4924
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4925
esac
 
4926
 
 
4927
      $ac_path_EGREP_found && break 3
 
4928
    done
 
4929
  done
 
4930
  done
 
4931
IFS=$as_save_IFS
 
4932
  if test -z "$ac_cv_path_EGREP"; then
 
4933
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4934
  fi
 
4935
else
 
4936
  ac_cv_path_EGREP=$EGREP
 
4937
fi
 
4938
 
 
4939
   fi
 
4940
fi
 
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4942
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4943
 EGREP="$ac_cv_path_EGREP"
 
4944
 
 
4945
 
 
4946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4947
$as_echo_n "checking for fgrep... " >&6; }
 
4948
if ${ac_cv_path_FGREP+:} false; then :
 
4949
  $as_echo_n "(cached) " >&6
 
4950
else
 
4951
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4952
   then ac_cv_path_FGREP="$GREP -F"
 
4953
   else
 
4954
     if test -z "$FGREP"; then
 
4955
  ac_path_FGREP_found=false
 
4956
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4957
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4958
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4959
do
 
4960
  IFS=$as_save_IFS
 
4961
  test -z "$as_dir" && as_dir=.
 
4962
    for ac_prog in fgrep; do
 
4963
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4964
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4965
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4966
# Check for GNU ac_path_FGREP and select it if it is found.
 
4967
  # Check for GNU $ac_path_FGREP
 
4968
case `"$ac_path_FGREP" --version 2>&1` in
 
4969
*GNU*)
 
4970
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4971
*)
 
4972
  ac_count=0
 
4973
  $as_echo_n 0123456789 >"conftest.in"
 
4974
  while :
 
4975
  do
 
4976
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4977
    mv "conftest.tmp" "conftest.in"
 
4978
    cp "conftest.in" "conftest.nl"
 
4979
    $as_echo 'FGREP' >> "conftest.nl"
 
4980
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4981
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4982
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4983
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4984
      # Best one so far, save it but keep looking for a better one
 
4985
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4986
      ac_path_FGREP_max=$ac_count
 
4987
    fi
 
4988
    # 10*(2^10) chars as input seems more than enough
 
4989
    test $ac_count -gt 10 && break
 
4990
  done
 
4991
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4992
esac
 
4993
 
 
4994
      $ac_path_FGREP_found && break 3
 
4995
    done
 
4996
  done
 
4997
  done
 
4998
IFS=$as_save_IFS
 
4999
  if test -z "$ac_cv_path_FGREP"; then
 
5000
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5001
  fi
 
5002
else
 
5003
  ac_cv_path_FGREP=$FGREP
 
5004
fi
 
5005
 
 
5006
   fi
 
5007
fi
 
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
5009
$as_echo "$ac_cv_path_FGREP" >&6; }
 
5010
 FGREP="$ac_cv_path_FGREP"
 
5011
 
 
5012
 
 
5013
test -z "$GREP" && GREP=grep
 
5014
 
 
5015
 
 
5016
 
 
5017
 
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
 
 
5029
 
 
5030
 
 
5031
 
 
5032
 
 
5033
# Check whether --with-gnu-ld was given.
 
5034
if test "${with_gnu_ld+set}" = set; then :
 
5035
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5036
else
 
5037
  with_gnu_ld=no
 
5038
fi
 
5039
 
 
5040
ac_prog=ld
 
5041
if test "$GCC" = yes; then
 
5042
  # Check if gcc -print-prog-name=ld gives a path.
 
5043
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
5044
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5045
  case $host in
 
5046
  *-*-mingw*)
 
5047
    # gcc leaves a trailing carriage return which upsets mingw
 
5048
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5049
  *)
 
5050
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5051
  esac
 
5052
  case $ac_prog in
 
5053
    # Accept absolute paths.
 
5054
    [\\/]* | ?:[\\/]*)
 
5055
      re_direlt='/[^/][^/]*/\.\./'
 
5056
      # Canonicalize the pathname of ld
 
5057
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5058
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5059
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5060
      done
 
5061
      test -z "$LD" && LD="$ac_prog"
 
5062
      ;;
 
5063
  "")
 
5064
    # If it fails, then pretend we aren't using GCC.
 
5065
    ac_prog=ld
 
5066
    ;;
 
5067
  *)
 
5068
    # If it is relative, then search for the first ld in PATH.
 
5069
    with_gnu_ld=unknown
 
5070
    ;;
 
5071
  esac
 
5072
elif test "$with_gnu_ld" = yes; then
 
5073
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5074
$as_echo_n "checking for GNU ld... " >&6; }
 
5075
else
 
5076
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5077
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5078
fi
 
5079
if ${lt_cv_path_LD+:} false; then :
 
5080
  $as_echo_n "(cached) " >&6
 
5081
else
 
5082
  if test -z "$LD"; then
 
5083
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5084
  for ac_dir in $PATH; do
 
5085
    IFS="$lt_save_ifs"
 
5086
    test -z "$ac_dir" && ac_dir=.
 
5087
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5088
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5089
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5090
      # but apparently some variants of GNU ld only accept -v.
 
5091
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5092
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5093
      *GNU* | *'with BFD'*)
 
5094
        test "$with_gnu_ld" != no && break
 
5095
        ;;
 
5096
      *)
 
5097
        test "$with_gnu_ld" != yes && break
 
5098
        ;;
 
5099
      esac
 
5100
    fi
 
5101
  done
 
5102
  IFS="$lt_save_ifs"
 
5103
else
 
5104
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5105
fi
 
5106
fi
 
5107
 
 
5108
LD="$lt_cv_path_LD"
 
5109
if test -n "$LD"; then
 
5110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5111
$as_echo "$LD" >&6; }
 
5112
else
 
5113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5114
$as_echo "no" >&6; }
 
5115
fi
 
5116
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
5117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5118
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5119
if ${lt_cv_prog_gnu_ld+:} false; then :
 
5120
  $as_echo_n "(cached) " >&6
 
5121
else
 
5122
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5123
case `$LD -v 2>&1 </dev/null` in
 
5124
*GNU* | *'with BFD'*)
 
5125
  lt_cv_prog_gnu_ld=yes
 
5126
  ;;
 
5127
*)
 
5128
  lt_cv_prog_gnu_ld=no
 
5129
  ;;
 
5130
esac
 
5131
fi
 
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
5133
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5134
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
 
 
5140
 
 
5141
 
 
5142
 
 
5143
 
 
5144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5145
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
5146
if ${lt_cv_path_NM+:} false; then :
 
5147
  $as_echo_n "(cached) " >&6
 
5148
else
 
5149
  if test -n "$NM"; then
 
5150
  # Let the user override the test.
 
5151
  lt_cv_path_NM="$NM"
 
5152
else
 
5153
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5154
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5155
    lt_nm_to_check="$lt_nm_to_check nm"
 
5156
  fi
 
5157
  for lt_tmp_nm in $lt_nm_to_check; do
 
5158
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5159
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5160
      IFS="$lt_save_ifs"
 
5161
      test -z "$ac_dir" && ac_dir=.
 
5162
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5163
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5164
        # Check to see if the nm accepts a BSD-compat flag.
 
5165
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5166
        #   nm: unknown option "B" ignored
 
5167
        # Tru64's nm complains that /dev/null is an invalid object file
 
5168
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5169
        */dev/null* | *'Invalid file or object type'*)
 
5170
          lt_cv_path_NM="$tmp_nm -B"
 
5171
          break
 
5172
          ;;
 
5173
        *)
 
5174
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5175
          */dev/null*)
 
5176
            lt_cv_path_NM="$tmp_nm -p"
 
5177
            break
 
5178
            ;;
 
5179
          *)
 
5180
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5181
            continue # so that we can try to find one that supports BSD flags
 
5182
            ;;
 
5183
          esac
 
5184
          ;;
 
5185
        esac
 
5186
      fi
 
5187
    done
 
5188
    IFS="$lt_save_ifs"
 
5189
  done
 
5190
  : ${lt_cv_path_NM=no}
 
5191
fi
 
5192
fi
 
5193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
5194
$as_echo "$lt_cv_path_NM" >&6; }
 
5195
if test "$lt_cv_path_NM" != "no"; then
 
5196
  NM="$lt_cv_path_NM"
 
5197
else
 
5198
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5199
  if test -n "$DUMPBIN"; then :
 
5200
    # Let the user override the test.
 
5201
  else
 
5202
    if test -n "$ac_tool_prefix"; then
 
5203
  for ac_prog in dumpbin "link -dump"
 
5204
  do
 
5205
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5206
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5208
$as_echo_n "checking for $ac_word... " >&6; }
 
5209
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
5210
  $as_echo_n "(cached) " >&6
 
5211
else
 
5212
  if test -n "$DUMPBIN"; then
 
5213
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5214
else
 
5215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5216
for as_dir in $PATH
 
5217
do
 
5218
  IFS=$as_save_IFS
 
5219
  test -z "$as_dir" && as_dir=.
 
5220
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5221
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5222
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5223
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5224
    break 2
 
5225
  fi
 
5226
done
 
5227
  done
 
5228
IFS=$as_save_IFS
 
5229
 
 
5230
fi
 
5231
fi
 
5232
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5233
if test -n "$DUMPBIN"; then
 
5234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
5235
$as_echo "$DUMPBIN" >&6; }
 
5236
else
 
5237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5238
$as_echo "no" >&6; }
 
5239
fi
 
5240
 
 
5241
 
 
5242
    test -n "$DUMPBIN" && break
 
5243
  done
 
5244
fi
 
5245
if test -z "$DUMPBIN"; then
 
5246
  ac_ct_DUMPBIN=$DUMPBIN
 
5247
  for ac_prog in dumpbin "link -dump"
 
5248
do
 
5249
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5250
set dummy $ac_prog; ac_word=$2
 
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5252
$as_echo_n "checking for $ac_word... " >&6; }
 
5253
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
5254
  $as_echo_n "(cached) " >&6
 
5255
else
 
5256
  if test -n "$ac_ct_DUMPBIN"; then
 
5257
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5258
else
 
5259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5260
for as_dir in $PATH
 
5261
do
 
5262
  IFS=$as_save_IFS
 
5263
  test -z "$as_dir" && as_dir=.
 
5264
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5265
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5266
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5268
    break 2
 
5269
  fi
 
5270
done
 
5271
  done
 
5272
IFS=$as_save_IFS
 
5273
 
 
5274
fi
 
5275
fi
 
5276
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5277
if test -n "$ac_ct_DUMPBIN"; then
 
5278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
5279
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
5280
else
 
5281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5282
$as_echo "no" >&6; }
 
5283
fi
 
5284
 
 
5285
 
 
5286
  test -n "$ac_ct_DUMPBIN" && break
 
5287
done
 
5288
 
 
5289
  if test "x$ac_ct_DUMPBIN" = x; then
 
5290
    DUMPBIN=":"
 
5291
  else
 
5292
    case $cross_compiling:$ac_tool_warned in
 
5293
yes:)
 
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5295
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5296
ac_tool_warned=yes ;;
 
5297
esac
 
5298
    DUMPBIN=$ac_ct_DUMPBIN
 
5299
  fi
 
5300
fi
 
5301
 
 
5302
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
5303
    *COFF*)
 
5304
      DUMPBIN="$DUMPBIN -symbols"
 
5305
      ;;
 
5306
    *)
 
5307
      DUMPBIN=:
 
5308
      ;;
 
5309
    esac
 
5310
  fi
 
5311
 
 
5312
  if test "$DUMPBIN" != ":"; then
 
5313
    NM="$DUMPBIN"
 
5314
  fi
 
5315
fi
 
5316
test -z "$NM" && NM=nm
 
5317
 
 
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
5324
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
5325
if ${lt_cv_nm_interface+:} false; then :
 
5326
  $as_echo_n "(cached) " >&6
 
5327
else
 
5328
  lt_cv_nm_interface="BSD nm"
 
5329
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5330
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
5331
  (eval "$ac_compile" 2>conftest.err)
 
5332
  cat conftest.err >&5
 
5333
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5334
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5335
  cat conftest.err >&5
 
5336
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
5337
  cat conftest.out >&5
 
5338
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5339
    lt_cv_nm_interface="MS dumpbin"
 
5340
  fi
 
5341
  rm -f conftest*
 
5342
fi
 
5343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
5344
$as_echo "$lt_cv_nm_interface" >&6; }
 
5345
 
 
5346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5347
$as_echo_n "checking whether ln -s works... " >&6; }
 
5348
LN_S=$as_ln_s
 
5349
if test "$LN_S" = "ln -s"; then
 
5350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5351
$as_echo "yes" >&6; }
 
5352
else
 
5353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5354
$as_echo "no, using $LN_S" >&6; }
 
5355
fi
 
5356
 
 
5357
# find the maximum length of command line arguments
 
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
5359
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
5360
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
5361
  $as_echo_n "(cached) " >&6
 
5362
else
 
5363
    i=0
 
5364
  teststring="ABCD"
 
5365
 
 
5366
  case $build_os in
 
5367
  msdosdjgpp*)
 
5368
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5369
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5370
    # during glob expansion).  Even if it were fixed, the result of this
 
5371
    # check would be larger than it should be.
 
5372
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5373
    ;;
 
5374
 
 
5375
  gnu*)
 
5376
    # Under GNU Hurd, this test is not required because there is
 
5377
    # no limit to the length of command line arguments.
 
5378
    # Libtool will interpret -1 as no limit whatsoever
 
5379
    lt_cv_sys_max_cmd_len=-1;
 
5380
    ;;
 
5381
 
 
5382
  cygwin* | mingw* | cegcc*)
 
5383
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5384
    # about 5 minutes as the teststring grows exponentially.
 
5385
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5386
    # you end up with a "frozen" computer, even though with patience
 
5387
    # the test eventually succeeds (with a max line length of 256k).
 
5388
    # Instead, let's just punt: use the minimum linelength reported by
 
5389
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5390
    lt_cv_sys_max_cmd_len=8192;
 
5391
    ;;
 
5392
 
 
5393
  mint*)
 
5394
    # On MiNT this can take a long time and run out of memory.
 
5395
    lt_cv_sys_max_cmd_len=8192;
 
5396
    ;;
 
5397
 
 
5398
  amigaos*)
 
5399
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5400
    # So we just punt and use a minimum line length of 8192.
 
5401
    lt_cv_sys_max_cmd_len=8192;
 
5402
    ;;
 
5403
 
 
5404
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5405
    # This has been around since 386BSD, at least.  Likely further.
 
5406
    if test -x /sbin/sysctl; then
 
5407
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5408
    elif test -x /usr/sbin/sysctl; then
 
5409
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5410
    else
 
5411
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5412
    fi
 
5413
    # And add a safety zone
 
5414
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5415
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5416
    ;;
 
5417
 
 
5418
  interix*)
 
5419
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5420
    lt_cv_sys_max_cmd_len=196608
 
5421
    ;;
 
5422
 
 
5423
  os2*)
 
5424
    # The test takes a long time on OS/2.
 
5425
    lt_cv_sys_max_cmd_len=8192
 
5426
    ;;
 
5427
 
 
5428
  osf*)
 
5429
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5430
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5431
    # nice to cause kernel panics so lets avoid the loop below.
 
5432
    # First set a reasonable default.
 
5433
    lt_cv_sys_max_cmd_len=16384
 
5434
    #
 
5435
    if test -x /sbin/sysconfig; then
 
5436
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5437
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5438
      esac
 
5439
    fi
 
5440
    ;;
 
5441
  sco3.2v5*)
 
5442
    lt_cv_sys_max_cmd_len=102400
 
5443
    ;;
 
5444
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5445
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5446
    if test -n "$kargmax"; then
 
5447
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
5448
    else
 
5449
      lt_cv_sys_max_cmd_len=32768
 
5450
    fi
 
5451
    ;;
 
5452
  *)
 
5453
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
5454
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
5455
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5456
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5457
    else
 
5458
      # Make teststring a little bigger before we do anything with it.
 
5459
      # a 1K string should be a reasonable start.
 
5460
      for i in 1 2 3 4 5 6 7 8 ; do
 
5461
        teststring=$teststring$teststring
 
5462
      done
 
5463
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5464
      # If test is not a shell built-in, we'll probably end up computing a
 
5465
      # maximum length that is only half of the actual maximum length, but
 
5466
      # we can't tell.
 
5467
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
5468
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
5469
              test $i != 17 # 1/2 MB should be enough
 
5470
      do
 
5471
        i=`expr $i + 1`
 
5472
        teststring=$teststring$teststring
 
5473
      done
 
5474
      # Only check the string length outside the loop.
 
5475
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
5476
      teststring=
 
5477
      # Add a significant safety factor because C++ compilers can tack on
 
5478
      # massive amounts of additional arguments before passing them to the
 
5479
      # linker.  It appears as though 1/2 is a usable value.
 
5480
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5481
    fi
 
5482
    ;;
 
5483
  esac
 
5484
 
 
5485
fi
 
5486
 
 
5487
if test -n $lt_cv_sys_max_cmd_len ; then
 
5488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
5489
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
5490
else
 
5491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
5492
$as_echo "none" >&6; }
 
5493
fi
 
5494
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
 
 
5500
 
 
5501
: ${CP="cp -f"}
 
5502
: ${MV="mv -f"}
 
5503
: ${RM="rm -f"}
 
5504
 
 
5505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
5506
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
5507
# Try some XSI features
 
5508
xsi_shell=no
 
5509
( _lt_dummy="a/b/c"
 
5510
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
5511
      = c,a/b,b/c, \
 
5512
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
5513
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
5514
  && xsi_shell=yes
 
5515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
5516
$as_echo "$xsi_shell" >&6; }
 
5517
 
 
5518
 
 
5519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
5520
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
5521
lt_shell_append=no
 
5522
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
5523
    >/dev/null 2>&1 \
 
5524
  && lt_shell_append=yes
 
5525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
5526
$as_echo "$lt_shell_append" >&6; }
 
5527
 
 
5528
 
 
5529
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5530
  lt_unset=unset
 
5531
else
 
5532
  lt_unset=false
 
5533
fi
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
 
 
5539
# test EBCDIC or ASCII
 
5540
case `echo X|tr X '\101'` in
 
5541
 A) # ASCII based system
 
5542
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
5543
  lt_SP2NL='tr \040 \012'
 
5544
  lt_NL2SP='tr \015\012 \040\040'
 
5545
  ;;
 
5546
 *) # EBCDIC based system
 
5547
  lt_SP2NL='tr \100 \n'
 
5548
  lt_NL2SP='tr \r\n \100\100'
 
5549
  ;;
 
5550
esac
 
5551
 
 
5552
 
 
5553
 
 
5554
 
 
5555
 
 
5556
 
 
5557
 
 
5558
 
 
5559
 
 
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
5561
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
5562
if ${lt_cv_to_host_file_cmd+:} false; then :
 
5563
  $as_echo_n "(cached) " >&6
 
5564
else
 
5565
  case $host in
 
5566
  *-*-mingw* )
 
5567
    case $build in
 
5568
      *-*-mingw* ) # actually msys
 
5569
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
5570
        ;;
 
5571
      *-*-cygwin* )
 
5572
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
5573
        ;;
 
5574
      * ) # otherwise, assume *nix
 
5575
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
5576
        ;;
 
5577
    esac
 
5578
    ;;
 
5579
  *-*-cygwin* )
 
5580
    case $build in
 
5581
      *-*-mingw* ) # actually msys
 
5582
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
5583
        ;;
 
5584
      *-*-cygwin* )
 
5585
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
5586
        ;;
 
5587
      * ) # otherwise, assume *nix
 
5588
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
5589
        ;;
 
5590
    esac
 
5591
    ;;
 
5592
  * ) # unhandled hosts (and "normal" native builds)
 
5593
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
5594
    ;;
 
5595
esac
 
5596
 
 
5597
fi
 
5598
 
 
5599
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
5600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
5601
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
5608
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
5609
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
5610
  $as_echo_n "(cached) " >&6
 
5611
else
 
5612
  #assume ordinary cross tools, or native build.
 
5613
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
5614
case $host in
 
5615
  *-*-mingw* )
 
5616
    case $build in
 
5617
      *-*-mingw* ) # actually msys
 
5618
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
5619
        ;;
 
5620
    esac
 
5621
    ;;
 
5622
esac
 
5623
 
 
5624
fi
 
5625
 
 
5626
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5628
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5635
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5636
if ${lt_cv_ld_reload_flag+:} false; then :
 
5637
  $as_echo_n "(cached) " >&6
 
5638
else
 
5639
  lt_cv_ld_reload_flag='-r'
 
5640
fi
 
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5642
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5643
reload_flag=$lt_cv_ld_reload_flag
 
5644
case $reload_flag in
 
5645
"" | " "*) ;;
 
5646
*) reload_flag=" $reload_flag" ;;
 
5647
esac
 
5648
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5649
case $host_os in
 
5650
  cygwin* | mingw* | pw32* | cegcc*)
 
5651
    if test "$GCC" != yes; then
 
5652
      reload_cmds=false
 
5653
    fi
 
5654
    ;;
 
5655
  darwin*)
 
5656
    if test "$GCC" = yes; then
 
5657
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5658
    else
 
5659
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5660
    fi
 
5661
    ;;
 
5662
esac
 
5663
 
 
5664
 
 
5665
 
 
5666
 
 
5667
 
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
if test -n "$ac_tool_prefix"; then
 
5673
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5674
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5676
$as_echo_n "checking for $ac_word... " >&6; }
 
5677
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5678
  $as_echo_n "(cached) " >&6
 
5679
else
 
5680
  if test -n "$OBJDUMP"; then
 
5681
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5682
else
 
5683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5684
for as_dir in $PATH
 
5685
do
 
5686
  IFS=$as_save_IFS
 
5687
  test -z "$as_dir" && as_dir=.
 
5688
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5689
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5690
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5692
    break 2
 
5693
  fi
 
5694
done
 
5695
  done
 
5696
IFS=$as_save_IFS
 
5697
 
 
5698
fi
 
5699
fi
 
5700
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5701
if test -n "$OBJDUMP"; then
 
5702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5703
$as_echo "$OBJDUMP" >&6; }
 
5704
else
 
5705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5706
$as_echo "no" >&6; }
 
5707
fi
 
5708
 
 
5709
 
 
5710
fi
 
5711
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5712
  ac_ct_OBJDUMP=$OBJDUMP
 
5713
  # Extract the first word of "objdump", so it can be a program name with args.
 
5714
set dummy objdump; ac_word=$2
 
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5716
$as_echo_n "checking for $ac_word... " >&6; }
 
5717
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5718
  $as_echo_n "(cached) " >&6
 
5719
else
 
5720
  if test -n "$ac_ct_OBJDUMP"; then
 
5721
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5722
else
 
5723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5724
for as_dir in $PATH
 
5725
do
 
5726
  IFS=$as_save_IFS
 
5727
  test -z "$as_dir" && as_dir=.
 
5728
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5729
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5730
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5731
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5732
    break 2
 
5733
  fi
 
5734
done
 
5735
  done
 
5736
IFS=$as_save_IFS
 
5737
 
 
5738
fi
 
5739
fi
 
5740
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5741
if test -n "$ac_ct_OBJDUMP"; then
 
5742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5743
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5744
else
 
5745
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5746
$as_echo "no" >&6; }
 
5747
fi
 
5748
 
 
5749
  if test "x$ac_ct_OBJDUMP" = x; then
 
5750
    OBJDUMP="false"
 
5751
  else
 
5752
    case $cross_compiling:$ac_tool_warned in
 
5753
yes:)
 
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5755
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5756
ac_tool_warned=yes ;;
 
5757
esac
 
5758
    OBJDUMP=$ac_ct_OBJDUMP
 
5759
  fi
 
5760
else
 
5761
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5762
fi
 
5763
 
 
5764
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5765
 
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5772
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5773
if ${lt_cv_deplibs_check_method+:} false; then :
 
5774
  $as_echo_n "(cached) " >&6
 
5775
else
 
5776
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5777
lt_cv_file_magic_test_file=
 
5778
lt_cv_deplibs_check_method='unknown'
 
5779
# Need to set the preceding variable on all platforms that support
 
5780
# interlibrary dependencies.
 
5781
# 'none' -- dependencies not supported.
 
5782
# `unknown' -- same as none, but documents that we really don't know.
 
5783
# 'pass_all' -- all dependencies passed with no checks.
 
5784
# 'test_compile' -- check by making test program.
 
5785
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5786
# which responds to the $file_magic_cmd with a given extended regex.
 
5787
# If you have `file' or equivalent on your system and you're not sure
 
5788
# whether `pass_all' will *always* work, you probably want this one.
 
5789
 
 
5790
case $host_os in
 
5791
aix[4-9]*)
 
5792
  lt_cv_deplibs_check_method=pass_all
 
5793
  ;;
 
5794
 
 
5795
beos*)
 
5796
  lt_cv_deplibs_check_method=pass_all
 
5797
  ;;
 
5798
 
 
5799
bsdi[45]*)
 
5800
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5801
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5802
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5803
  ;;
 
5804
 
 
5805
cygwin*)
 
5806
  # func_win32_libid is a shell function defined in ltmain.sh
 
5807
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5808
  lt_cv_file_magic_cmd='func_win32_libid'
 
5809
  ;;
 
5810
 
 
5811
mingw* | pw32*)
 
5812
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5813
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5814
  # unless we find 'file', for example because we are cross-compiling.
 
5815
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5816
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5817
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5818
    lt_cv_file_magic_cmd='func_win32_libid'
 
5819
  else
 
5820
    # Keep this pattern in sync with the one in func_win32_libid.
 
5821
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5822
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5823
  fi
 
5824
  ;;
 
5825
 
 
5826
cegcc*)
 
5827
  # use the weaker test based on 'objdump'. See mingw*.
 
5828
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5829
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5830
  ;;
 
5831
 
 
5832
darwin* | rhapsody*)
 
5833
  lt_cv_deplibs_check_method=pass_all
 
5834
  ;;
 
5835
 
 
5836
freebsd* | dragonfly*)
 
5837
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5838
    case $host_cpu in
 
5839
    i*86 )
 
5840
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5841
      # Let's accept both of them until this is cleared up.
 
5842
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5843
      lt_cv_file_magic_cmd=/usr/bin/file
 
5844
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5845
      ;;
 
5846
    esac
 
5847
  else
 
5848
    lt_cv_deplibs_check_method=pass_all
 
5849
  fi
 
5850
  ;;
 
5851
 
 
5852
haiku*)
 
5853
  lt_cv_deplibs_check_method=pass_all
 
5854
  ;;
 
5855
 
 
5856
hpux10.20* | hpux11*)
 
5857
  lt_cv_file_magic_cmd=/usr/bin/file
 
5858
  case $host_cpu in
 
5859
  ia64*)
 
5860
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5861
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5862
    ;;
 
5863
  hppa*64*)
 
5864
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5865
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5866
    ;;
 
5867
  *)
 
5868
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5869
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5870
    ;;
 
5871
  esac
 
5872
  ;;
 
5873
 
 
5874
interix[3-9]*)
 
5875
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5876
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5877
  ;;
 
5878
 
 
5879
irix5* | irix6* | nonstopux*)
 
5880
  case $LD in
 
5881
  *-32|*"-32 ") libmagic=32-bit;;
 
5882
  *-n32|*"-n32 ") libmagic=N32;;
 
5883
  *-64|*"-64 ") libmagic=64-bit;;
 
5884
  *) libmagic=never-match;;
 
5885
  esac
 
5886
  lt_cv_deplibs_check_method=pass_all
 
5887
  ;;
 
5888
 
 
5889
# This must be glibc/ELF.
 
5890
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
5891
  lt_cv_deplibs_check_method=pass_all
 
5892
  ;;
 
5893
 
 
5894
netbsd* | netbsdelf*-gnu)
 
5895
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5896
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5897
  else
 
5898
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5899
  fi
 
5900
  ;;
 
5901
 
 
5902
newos6*)
 
5903
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5904
  lt_cv_file_magic_cmd=/usr/bin/file
 
5905
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5906
  ;;
 
5907
 
 
5908
*nto* | *qnx*)
 
5909
  lt_cv_deplibs_check_method=pass_all
 
5910
  ;;
 
5911
 
 
5912
openbsd*)
 
5913
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5914
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5915
  else
 
5916
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5917
  fi
 
5918
  ;;
 
5919
 
 
5920
osf3* | osf4* | osf5*)
 
5921
  lt_cv_deplibs_check_method=pass_all
 
5922
  ;;
 
5923
 
 
5924
rdos*)
 
5925
  lt_cv_deplibs_check_method=pass_all
 
5926
  ;;
 
5927
 
 
5928
solaris*)
 
5929
  lt_cv_deplibs_check_method=pass_all
 
5930
  ;;
 
5931
 
 
5932
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5933
  lt_cv_deplibs_check_method=pass_all
 
5934
  ;;
 
5935
 
 
5936
sysv4 | sysv4.3*)
 
5937
  case $host_vendor in
 
5938
  motorola)
 
5939
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
5940
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5941
    ;;
 
5942
  ncr)
 
5943
    lt_cv_deplibs_check_method=pass_all
 
5944
    ;;
 
5945
  sequent)
 
5946
    lt_cv_file_magic_cmd='/bin/file'
 
5947
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5948
    ;;
 
5949
  sni)
 
5950
    lt_cv_file_magic_cmd='/bin/file'
 
5951
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5952
    lt_cv_file_magic_test_file=/lib/libc.so
 
5953
    ;;
 
5954
  siemens)
 
5955
    lt_cv_deplibs_check_method=pass_all
 
5956
    ;;
 
5957
  pc)
 
5958
    lt_cv_deplibs_check_method=pass_all
 
5959
    ;;
 
5960
  esac
 
5961
  ;;
 
5962
 
 
5963
tpf*)
 
5964
  lt_cv_deplibs_check_method=pass_all
 
5965
  ;;
 
5966
esac
 
5967
 
 
5968
fi
 
5969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5970
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5971
 
 
5972
file_magic_glob=
 
5973
want_nocaseglob=no
 
5974
if test "$build" = "$host"; then
 
5975
  case $host_os in
 
5976
  mingw* | pw32*)
 
5977
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5978
      want_nocaseglob=yes
 
5979
    else
 
5980
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5981
    fi
 
5982
    ;;
 
5983
  esac
 
5984
fi
 
5985
 
 
5986
file_magic_cmd=$lt_cv_file_magic_cmd
 
5987
deplibs_check_method=$lt_cv_deplibs_check_method
 
5988
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
if test -n "$ac_tool_prefix"; then
 
6012
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6013
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6015
$as_echo_n "checking for $ac_word... " >&6; }
 
6016
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
6017
  $as_echo_n "(cached) " >&6
 
6018
else
 
6019
  if test -n "$DLLTOOL"; then
 
6020
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6021
else
 
6022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6023
for as_dir in $PATH
 
6024
do
 
6025
  IFS=$as_save_IFS
 
6026
  test -z "$as_dir" && as_dir=.
 
6027
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6028
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6029
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6030
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6031
    break 2
 
6032
  fi
 
6033
done
 
6034
  done
 
6035
IFS=$as_save_IFS
 
6036
 
 
6037
fi
 
6038
fi
 
6039
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6040
if test -n "$DLLTOOL"; then
 
6041
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6042
$as_echo "$DLLTOOL" >&6; }
 
6043
else
 
6044
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6045
$as_echo "no" >&6; }
 
6046
fi
 
6047
 
 
6048
 
 
6049
fi
 
6050
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6051
  ac_ct_DLLTOOL=$DLLTOOL
 
6052
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6053
set dummy dlltool; ac_word=$2
 
6054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6055
$as_echo_n "checking for $ac_word... " >&6; }
 
6056
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
6057
  $as_echo_n "(cached) " >&6
 
6058
else
 
6059
  if test -n "$ac_ct_DLLTOOL"; then
 
6060
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6061
else
 
6062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6063
for as_dir in $PATH
 
6064
do
 
6065
  IFS=$as_save_IFS
 
6066
  test -z "$as_dir" && as_dir=.
 
6067
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6068
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6069
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6070
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6071
    break 2
 
6072
  fi
 
6073
done
 
6074
  done
 
6075
IFS=$as_save_IFS
 
6076
 
 
6077
fi
 
6078
fi
 
6079
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6080
if test -n "$ac_ct_DLLTOOL"; then
 
6081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6082
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6083
else
 
6084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6085
$as_echo "no" >&6; }
 
6086
fi
 
6087
 
 
6088
  if test "x$ac_ct_DLLTOOL" = x; then
 
6089
    DLLTOOL="false"
 
6090
  else
 
6091
    case $cross_compiling:$ac_tool_warned in
 
6092
yes:)
 
6093
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6094
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6095
ac_tool_warned=yes ;;
 
6096
esac
 
6097
    DLLTOOL=$ac_ct_DLLTOOL
 
6098
  fi
 
6099
else
 
6100
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6101
fi
 
6102
 
 
6103
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6104
 
 
6105
 
 
6106
 
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
6112
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
6113
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
6114
  $as_echo_n "(cached) " >&6
 
6115
else
 
6116
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
6117
 
 
6118
case $host_os in
 
6119
cygwin* | mingw* | pw32* | cegcc*)
 
6120
  # two different shell functions defined in ltmain.sh
 
6121
  # decide which to use based on capabilities of $DLLTOOL
 
6122
  case `$DLLTOOL --help 2>&1` in
 
6123
  *--identify-strict*)
 
6124
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
6125
    ;;
 
6126
  *)
 
6127
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
6128
    ;;
 
6129
  esac
 
6130
  ;;
 
6131
*)
 
6132
  # fallback: assume linklib IS sharedlib
 
6133
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
6134
  ;;
 
6135
esac
 
6136
 
 
6137
fi
 
6138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
6139
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
6140
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
6141
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
6142
 
 
6143
 
 
6144
 
 
6145
 
 
6146
 
 
6147
 
 
6148
 
 
6149
 
 
6150
if test -n "$ac_tool_prefix"; then
 
6151
  for ac_prog in ar
 
6152
  do
 
6153
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6154
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6156
$as_echo_n "checking for $ac_word... " >&6; }
 
6157
if ${ac_cv_prog_AR+:} false; then :
 
6158
  $as_echo_n "(cached) " >&6
 
6159
else
 
6160
  if test -n "$AR"; then
 
6161
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6162
else
 
6163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6164
for as_dir in $PATH
 
6165
do
 
6166
  IFS=$as_save_IFS
 
6167
  test -z "$as_dir" && as_dir=.
 
6168
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6169
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6170
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
6171
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6172
    break 2
 
6173
  fi
 
6174
done
 
6175
  done
 
6176
IFS=$as_save_IFS
 
6177
 
 
6178
fi
 
6179
fi
 
6180
AR=$ac_cv_prog_AR
 
6181
if test -n "$AR"; then
 
6182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
6183
$as_echo "$AR" >&6; }
 
6184
else
 
6185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6186
$as_echo "no" >&6; }
 
6187
fi
 
6188
 
 
6189
 
 
6190
    test -n "$AR" && break
 
6191
  done
 
6192
fi
 
6193
if test -z "$AR"; then
 
6194
  ac_ct_AR=$AR
 
6195
  for ac_prog in ar
 
6196
do
 
6197
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6198
set dummy $ac_prog; ac_word=$2
 
6199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6200
$as_echo_n "checking for $ac_word... " >&6; }
 
6201
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
6202
  $as_echo_n "(cached) " >&6
 
6203
else
 
6204
  if test -n "$ac_ct_AR"; then
 
6205
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6206
else
 
6207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6208
for as_dir in $PATH
 
6209
do
 
6210
  IFS=$as_save_IFS
 
6211
  test -z "$as_dir" && as_dir=.
 
6212
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6213
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6214
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
6215
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6216
    break 2
 
6217
  fi
 
6218
done
 
6219
  done
 
6220
IFS=$as_save_IFS
 
6221
 
 
6222
fi
 
6223
fi
 
6224
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6225
if test -n "$ac_ct_AR"; then
 
6226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
6227
$as_echo "$ac_ct_AR" >&6; }
 
6228
else
 
6229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6230
$as_echo "no" >&6; }
 
6231
fi
 
6232
 
 
6233
 
 
6234
  test -n "$ac_ct_AR" && break
 
6235
done
 
6236
 
 
6237
  if test "x$ac_ct_AR" = x; then
 
6238
    AR="false"
 
6239
  else
 
6240
    case $cross_compiling:$ac_tool_warned in
 
6241
yes:)
 
6242
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6243
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6244
ac_tool_warned=yes ;;
 
6245
esac
 
6246
    AR=$ac_ct_AR
 
6247
  fi
 
6248
fi
 
6249
 
 
6250
: ${AR=ar}
 
6251
: ${AR_FLAGS=cru}
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
6264
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
6265
if ${lt_cv_ar_at_file+:} false; then :
 
6266
  $as_echo_n "(cached) " >&6
 
6267
else
 
6268
  lt_cv_ar_at_file=no
 
6269
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6270
/* end confdefs.h.  */
 
6271
 
 
6272
int
 
6273
main ()
 
6274
{
 
6275
 
 
6276
  ;
 
6277
  return 0;
 
6278
}
 
6279
_ACEOF
 
6280
if ac_fn_c_try_compile "$LINENO"; then :
 
6281
  echo conftest.$ac_objext > conftest.lst
 
6282
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
6283
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6284
  (eval $lt_ar_try) 2>&5
 
6285
  ac_status=$?
 
6286
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6287
  test $ac_status = 0; }
 
6288
      if test "$ac_status" -eq 0; then
 
6289
        # Ensure the archiver fails upon bogus file names.
 
6290
        rm -f conftest.$ac_objext libconftest.a
 
6291
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
6292
  (eval $lt_ar_try) 2>&5
 
6293
  ac_status=$?
 
6294
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6295
  test $ac_status = 0; }
 
6296
        if test "$ac_status" -ne 0; then
 
6297
          lt_cv_ar_at_file=@
 
6298
        fi
 
6299
      fi
 
6300
      rm -f conftest.* libconftest.a
 
6301
 
 
6302
fi
 
6303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6304
 
 
6305
fi
 
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
6307
$as_echo "$lt_cv_ar_at_file" >&6; }
 
6308
 
 
6309
if test "x$lt_cv_ar_at_file" = xno; then
 
6310
  archiver_list_spec=
 
6311
else
 
6312
  archiver_list_spec=$lt_cv_ar_at_file
 
6313
fi
 
6314
 
 
6315
 
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
if test -n "$ac_tool_prefix"; then
 
6322
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6323
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6325
$as_echo_n "checking for $ac_word... " >&6; }
 
6326
if ${ac_cv_prog_STRIP+:} false; then :
 
6327
  $as_echo_n "(cached) " >&6
 
6328
else
 
6329
  if test -n "$STRIP"; then
 
6330
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6331
else
 
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6333
for as_dir in $PATH
 
6334
do
 
6335
  IFS=$as_save_IFS
 
6336
  test -z "$as_dir" && as_dir=.
 
6337
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6338
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6339
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6341
    break 2
 
6342
  fi
 
6343
done
 
6344
  done
 
6345
IFS=$as_save_IFS
 
6346
 
 
6347
fi
 
6348
fi
 
6349
STRIP=$ac_cv_prog_STRIP
 
6350
if test -n "$STRIP"; then
 
6351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
6352
$as_echo "$STRIP" >&6; }
 
6353
else
 
6354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6355
$as_echo "no" >&6; }
 
6356
fi
 
6357
 
 
6358
 
 
6359
fi
 
6360
if test -z "$ac_cv_prog_STRIP"; then
 
6361
  ac_ct_STRIP=$STRIP
 
6362
  # Extract the first word of "strip", so it can be a program name with args.
 
6363
set dummy strip; ac_word=$2
 
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6365
$as_echo_n "checking for $ac_word... " >&6; }
 
6366
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
6367
  $as_echo_n "(cached) " >&6
 
6368
else
 
6369
  if test -n "$ac_ct_STRIP"; then
 
6370
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6371
else
 
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6373
for as_dir in $PATH
 
6374
do
 
6375
  IFS=$as_save_IFS
 
6376
  test -z "$as_dir" && as_dir=.
 
6377
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6378
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6379
    ac_cv_prog_ac_ct_STRIP="strip"
 
6380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6381
    break 2
 
6382
  fi
 
6383
done
 
6384
  done
 
6385
IFS=$as_save_IFS
 
6386
 
 
6387
fi
 
6388
fi
 
6389
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6390
if test -n "$ac_ct_STRIP"; then
 
6391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
6392
$as_echo "$ac_ct_STRIP" >&6; }
 
6393
else
 
6394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6395
$as_echo "no" >&6; }
 
6396
fi
 
6397
 
 
6398
  if test "x$ac_ct_STRIP" = x; then
 
6399
    STRIP=":"
 
6400
  else
 
6401
    case $cross_compiling:$ac_tool_warned in
 
6402
yes:)
 
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6405
ac_tool_warned=yes ;;
 
6406
esac
 
6407
    STRIP=$ac_ct_STRIP
 
6408
  fi
 
6409
else
 
6410
  STRIP="$ac_cv_prog_STRIP"
 
6411
fi
 
6412
 
 
6413
test -z "$STRIP" && STRIP=:
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
 
6420
if test -n "$ac_tool_prefix"; then
 
6421
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6422
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6424
$as_echo_n "checking for $ac_word... " >&6; }
 
6425
if ${ac_cv_prog_RANLIB+:} false; then :
 
6426
  $as_echo_n "(cached) " >&6
 
6427
else
 
6428
  if test -n "$RANLIB"; then
 
6429
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6430
else
 
6431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6432
for as_dir in $PATH
 
6433
do
 
6434
  IFS=$as_save_IFS
 
6435
  test -z "$as_dir" && as_dir=.
 
6436
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6437
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6438
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6439
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6440
    break 2
 
6441
  fi
 
6442
done
 
6443
  done
 
6444
IFS=$as_save_IFS
 
6445
 
 
6446
fi
 
6447
fi
 
6448
RANLIB=$ac_cv_prog_RANLIB
 
6449
if test -n "$RANLIB"; then
 
6450
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
6451
$as_echo "$RANLIB" >&6; }
 
6452
else
 
6453
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6454
$as_echo "no" >&6; }
 
6455
fi
 
6456
 
 
6457
 
 
6458
fi
 
6459
if test -z "$ac_cv_prog_RANLIB"; then
 
6460
  ac_ct_RANLIB=$RANLIB
 
6461
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6462
set dummy ranlib; ac_word=$2
 
6463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6464
$as_echo_n "checking for $ac_word... " >&6; }
 
6465
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
6466
  $as_echo_n "(cached) " >&6
 
6467
else
 
6468
  if test -n "$ac_ct_RANLIB"; then
 
6469
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6470
else
 
6471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6472
for as_dir in $PATH
 
6473
do
 
6474
  IFS=$as_save_IFS
 
6475
  test -z "$as_dir" && as_dir=.
 
6476
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6477
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6478
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6479
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6480
    break 2
 
6481
  fi
 
6482
done
 
6483
  done
 
6484
IFS=$as_save_IFS
 
6485
 
 
6486
fi
 
6487
fi
 
6488
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6489
if test -n "$ac_ct_RANLIB"; then
 
6490
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
6491
$as_echo "$ac_ct_RANLIB" >&6; }
 
6492
else
 
6493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6494
$as_echo "no" >&6; }
 
6495
fi
 
6496
 
 
6497
  if test "x$ac_ct_RANLIB" = x; then
 
6498
    RANLIB=":"
 
6499
  else
 
6500
    case $cross_compiling:$ac_tool_warned in
 
6501
yes:)
 
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6503
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6504
ac_tool_warned=yes ;;
 
6505
esac
 
6506
    RANLIB=$ac_ct_RANLIB
 
6507
  fi
 
6508
else
 
6509
  RANLIB="$ac_cv_prog_RANLIB"
 
6510
fi
 
6511
 
 
6512
test -z "$RANLIB" && RANLIB=:
 
6513
 
 
6514
 
 
6515
 
 
6516
 
 
6517
 
 
6518
 
 
6519
# Determine commands to create old-style static archives.
 
6520
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6521
old_postinstall_cmds='chmod 644 $oldlib'
 
6522
old_postuninstall_cmds=
 
6523
 
 
6524
if test -n "$RANLIB"; then
 
6525
  case $host_os in
 
6526
  openbsd*)
 
6527
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
6528
    ;;
 
6529
  *)
 
6530
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
6531
    ;;
 
6532
  esac
 
6533
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
6534
fi
 
6535
 
 
6536
case $host_os in
 
6537
  darwin*)
 
6538
    lock_old_archive_extraction=yes ;;
 
6539
  *)
 
6540
    lock_old_archive_extraction=no ;;
 
6541
esac
 
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
 
6561
 
 
6562
 
 
6563
 
 
6564
 
 
6565
 
 
6566
 
 
6567
 
 
6568
 
 
6569
 
 
6570
 
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
 
 
6576
 
 
6577
 
 
6578
 
 
6579
 
 
6580
 
 
6581
# If no C compiler was specified, use CC.
 
6582
LTCC=${LTCC-"$CC"}
 
6583
 
 
6584
# If no C compiler flags were specified, use CFLAGS.
 
6585
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6586
 
 
6587
# Allow CC to be a program name with arguments.
 
6588
compiler=$CC
 
6589
 
 
6590
 
 
6591
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
6593
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6594
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
6595
  $as_echo_n "(cached) " >&6
 
6596
else
 
6597
 
 
6598
# These are sane defaults that work on at least a few old systems.
 
6599
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6600
 
 
6601
# Character class describing NM global symbol codes.
 
6602
symcode='[BCDEGRST]'
 
6603
 
 
6604
# Regexp to match symbols that can be accessed directly from C.
 
6605
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6606
 
 
6607
# Define system-specific variables.
 
6608
case $host_os in
 
6609
aix*)
 
6610
  symcode='[BCDT]'
 
6611
  ;;
 
6612
cygwin* | mingw* | pw32* | cegcc*)
 
6613
  symcode='[ABCDGISTW]'
 
6614
  ;;
 
6615
hpux*)
 
6616
  if test "$host_cpu" = ia64; then
 
6617
    symcode='[ABCDEGRST]'
 
6618
  fi
 
6619
  ;;
 
6620
irix* | nonstopux*)
 
6621
  symcode='[BCDEGRST]'
 
6622
  ;;
 
6623
osf*)
 
6624
  symcode='[BCDEGQRST]'
 
6625
  ;;
 
6626
solaris*)
 
6627
  symcode='[BDRT]'
 
6628
  ;;
 
6629
sco3.2v5*)
 
6630
  symcode='[DT]'
 
6631
  ;;
 
6632
sysv4.2uw2*)
 
6633
  symcode='[DT]'
 
6634
  ;;
 
6635
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6636
  symcode='[ABDT]'
 
6637
  ;;
 
6638
sysv4)
 
6639
  symcode='[DFNSTU]'
 
6640
  ;;
 
6641
esac
 
6642
 
 
6643
# If we're using GNU nm, then use its standard symbol codes.
 
6644
case `$NM -V 2>&1` in
 
6645
*GNU* | *'with BFD'*)
 
6646
  symcode='[ABCDGIRSTW]' ;;
 
6647
esac
 
6648
 
 
6649
# Transform an extracted symbol line into a proper C declaration.
 
6650
# Some systems (esp. on ia64) link data and code symbols differently,
 
6651
# so use this general approach.
 
6652
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6653
 
 
6654
# Transform an extracted symbol line into symbol name and symbol address
 
6655
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6656
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6657
 
 
6658
# Handle CRLF in mingw tool chain
 
6659
opt_cr=
 
6660
case $build_os in
 
6661
mingw*)
 
6662
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6663
  ;;
 
6664
esac
 
6665
 
 
6666
# Try without a prefix underscore, then with it.
 
6667
for ac_symprfx in "" "_"; do
 
6668
 
 
6669
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6670
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6671
 
 
6672
  # Write the raw and C identifiers.
 
6673
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6674
    # Fake it for dumpbin and say T for any non-static function
 
6675
    # and D for any global variable.
 
6676
    # Also find C++ and __fastcall symbols from MSVC++,
 
6677
    # which start with @ or ?.
 
6678
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6679
"     {last_section=section; section=\$ 3};"\
 
6680
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6681
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6682
"     \$ 0!~/External *\|/{next};"\
 
6683
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6684
"     {if(hide[section]) next};"\
 
6685
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6686
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6687
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6688
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6689
"     ' prfx=^$ac_symprfx"
 
6690
  else
 
6691
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6692
  fi
 
6693
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6694
 
 
6695
  # Check to see that the pipe works correctly.
 
6696
  pipe_works=no
 
6697
 
 
6698
  rm -f conftest*
 
6699
  cat > conftest.$ac_ext <<_LT_EOF
 
6700
#ifdef __cplusplus
 
6701
extern "C" {
 
6702
#endif
 
6703
char nm_test_var;
 
6704
void nm_test_func(void);
 
6705
void nm_test_func(void){}
 
6706
#ifdef __cplusplus
 
6707
}
 
6708
#endif
 
6709
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6710
_LT_EOF
 
6711
 
 
6712
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6713
  (eval $ac_compile) 2>&5
 
6714
  ac_status=$?
 
6715
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6716
  test $ac_status = 0; }; then
 
6717
    # Now try to grab the symbols.
 
6718
    nlist=conftest.nm
 
6719
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6720
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6721
  ac_status=$?
 
6722
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6723
  test $ac_status = 0; } && test -s "$nlist"; then
 
6724
      # Try sorting and uniquifying the output.
 
6725
      if sort "$nlist" | uniq > "$nlist"T; then
 
6726
        mv -f "$nlist"T "$nlist"
 
6727
      else
 
6728
        rm -f "$nlist"T
 
6729
      fi
 
6730
 
 
6731
      # Make sure that we snagged all the symbols we need.
 
6732
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6733
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6734
          cat <<_LT_EOF > conftest.$ac_ext
 
6735
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6736
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6737
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6738
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6739
# define LT_DLSYM_CONST
 
6740
#elif defined(__osf__)
 
6741
/* This system does not cope well with relocations in const data.  */
 
6742
# define LT_DLSYM_CONST
 
6743
#else
 
6744
# define LT_DLSYM_CONST const
 
6745
#endif
 
6746
 
 
6747
#ifdef __cplusplus
 
6748
extern "C" {
 
6749
#endif
 
6750
 
 
6751
_LT_EOF
 
6752
          # Now generate the symbol file.
 
6753
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6754
 
 
6755
          cat <<_LT_EOF >> conftest.$ac_ext
 
6756
 
 
6757
/* The mapping between symbol names and symbols.  */
 
6758
LT_DLSYM_CONST struct {
 
6759
  const char *name;
 
6760
  void       *address;
 
6761
}
 
6762
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6763
{
 
6764
  { "@PROGRAM@", (void *) 0 },
 
6765
_LT_EOF
 
6766
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6767
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6768
  {0, (void *) 0}
 
6769
};
 
6770
 
 
6771
/* This works around a problem in FreeBSD linker */
 
6772
#ifdef FREEBSD_WORKAROUND
 
6773
static const void *lt_preloaded_setup() {
 
6774
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6775
}
 
6776
#endif
 
6777
 
 
6778
#ifdef __cplusplus
 
6779
}
 
6780
#endif
 
6781
_LT_EOF
 
6782
          # Now try linking the two files.
 
6783
          mv conftest.$ac_objext conftstm.$ac_objext
 
6784
          lt_globsym_save_LIBS=$LIBS
 
6785
          lt_globsym_save_CFLAGS=$CFLAGS
 
6786
          LIBS="conftstm.$ac_objext"
 
6787
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6788
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6789
  (eval $ac_link) 2>&5
 
6790
  ac_status=$?
 
6791
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6792
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6793
            pipe_works=yes
 
6794
          fi
 
6795
          LIBS=$lt_globsym_save_LIBS
 
6796
          CFLAGS=$lt_globsym_save_CFLAGS
 
6797
        else
 
6798
          echo "cannot find nm_test_func in $nlist" >&5
 
6799
        fi
 
6800
      else
 
6801
        echo "cannot find nm_test_var in $nlist" >&5
 
6802
      fi
 
6803
    else
 
6804
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6805
    fi
 
6806
  else
 
6807
    echo "$progname: failed program was:" >&5
 
6808
    cat conftest.$ac_ext >&5
 
6809
  fi
 
6810
  rm -rf conftest* conftst*
 
6811
 
 
6812
  # Do not use the global_symbol_pipe unless it works.
 
6813
  if test "$pipe_works" = yes; then
 
6814
    break
 
6815
  else
 
6816
    lt_cv_sys_global_symbol_pipe=
 
6817
  fi
 
6818
done
 
6819
 
 
6820
fi
 
6821
 
 
6822
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6823
  lt_cv_sys_global_symbol_to_cdecl=
 
6824
fi
 
6825
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6826
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6827
$as_echo "failed" >&6; }
 
6828
else
 
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6830
$as_echo "ok" >&6; }
 
6831
fi
 
6832
 
 
6833
# Response file support.
 
6834
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6835
  nm_file_list_spec='@'
 
6836
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6837
  nm_file_list_spec='@'
 
6838
fi
 
6839
 
 
6840
 
 
6841
 
 
6842
 
 
6843
 
 
6844
 
 
6845
 
 
6846
 
 
6847
 
 
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
 
 
6865
 
 
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6867
$as_echo_n "checking for sysroot... " >&6; }
 
6868
 
 
6869
# Check whether --with-sysroot was given.
 
6870
if test "${with_sysroot+set}" = set; then :
 
6871
  withval=$with_sysroot;
 
6872
else
 
6873
  with_sysroot=no
 
6874
fi
 
6875
 
 
6876
 
 
6877
lt_sysroot=
 
6878
case ${with_sysroot} in #(
 
6879
 yes)
 
6880
   if test "$GCC" = yes; then
 
6881
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6882
   fi
 
6883
   ;; #(
 
6884
 /*)
 
6885
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6886
   ;; #(
 
6887
 no|'')
 
6888
   ;; #(
 
6889
 *)
 
6890
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6891
$as_echo "${with_sysroot}" >&6; }
 
6892
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6893
   ;;
 
6894
esac
 
6895
 
 
6896
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6897
$as_echo "${lt_sysroot:-no}" >&6; }
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
# Check whether --enable-libtool-lock was given.
 
6904
if test "${enable_libtool_lock+set}" = set; then :
 
6905
  enableval=$enable_libtool_lock;
 
6906
fi
 
6907
 
 
6908
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6909
 
 
6910
# Some flags need to be propagated to the compiler or linker for good
 
6911
# libtool support.
 
6912
case $host in
 
6913
ia64-*-hpux*)
 
6914
  # Find out which ABI we are using.
 
6915
  echo 'int i;' > conftest.$ac_ext
 
6916
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6917
  (eval $ac_compile) 2>&5
 
6918
  ac_status=$?
 
6919
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6920
  test $ac_status = 0; }; then
 
6921
    case `/usr/bin/file conftest.$ac_objext` in
 
6922
      *ELF-32*)
 
6923
        HPUX_IA64_MODE="32"
 
6924
        ;;
 
6925
      *ELF-64*)
 
6926
        HPUX_IA64_MODE="64"
 
6927
        ;;
 
6928
    esac
 
6929
  fi
 
6930
  rm -rf conftest*
 
6931
  ;;
 
6932
*-*-irix6*)
 
6933
  # Find out which ABI we are using.
 
6934
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6935
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6936
  (eval $ac_compile) 2>&5
 
6937
  ac_status=$?
 
6938
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6939
  test $ac_status = 0; }; then
 
6940
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6941
      case `/usr/bin/file conftest.$ac_objext` in
 
6942
        *32-bit*)
 
6943
          LD="${LD-ld} -melf32bsmip"
 
6944
          ;;
 
6945
        *N32*)
 
6946
          LD="${LD-ld} -melf32bmipn32"
 
6947
          ;;
 
6948
        *64-bit*)
 
6949
          LD="${LD-ld} -melf64bmip"
 
6950
        ;;
 
6951
      esac
 
6952
    else
 
6953
      case `/usr/bin/file conftest.$ac_objext` in
 
6954
        *32-bit*)
 
6955
          LD="${LD-ld} -32"
 
6956
          ;;
 
6957
        *N32*)
 
6958
          LD="${LD-ld} -n32"
 
6959
          ;;
 
6960
        *64-bit*)
 
6961
          LD="${LD-ld} -64"
 
6962
          ;;
 
6963
      esac
 
6964
    fi
 
6965
  fi
 
6966
  rm -rf conftest*
 
6967
  ;;
 
6968
 
 
6969
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6970
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6971
  # Find out which ABI we are using.
 
6972
  echo 'int i;' > conftest.$ac_ext
 
6973
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6974
  (eval $ac_compile) 2>&5
 
6975
  ac_status=$?
 
6976
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6977
  test $ac_status = 0; }; then
 
6978
    case `/usr/bin/file conftest.o` in
 
6979
      *32-bit*)
 
6980
        case $host in
 
6981
          x86_64-*kfreebsd*-gnu)
 
6982
            LD="${LD-ld} -m elf_i386_fbsd"
 
6983
            ;;
 
6984
          x86_64-*linux*)
 
6985
            LD="${LD-ld} -m elf_i386"
 
6986
            ;;
 
6987
          ppc64-*linux*|powerpc64-*linux*)
 
6988
            LD="${LD-ld} -m elf32ppclinux"
 
6989
            ;;
 
6990
          s390x-*linux*)
 
6991
            LD="${LD-ld} -m elf_s390"
 
6992
            ;;
 
6993
          sparc64-*linux*)
 
6994
            LD="${LD-ld} -m elf32_sparc"
 
6995
            ;;
 
6996
        esac
 
6997
        ;;
 
6998
      *64-bit*)
 
6999
        case $host in
 
7000
          x86_64-*kfreebsd*-gnu)
 
7001
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7002
            ;;
 
7003
          x86_64-*linux*)
 
7004
            LD="${LD-ld} -m elf_x86_64"
 
7005
            ;;
 
7006
          ppc*-*linux*|powerpc*-*linux*)
 
7007
            LD="${LD-ld} -m elf64ppc"
 
7008
            ;;
 
7009
          s390*-*linux*|s390*-*tpf*)
 
7010
            LD="${LD-ld} -m elf64_s390"
 
7011
            ;;
 
7012
          sparc*-*linux*)
 
7013
            LD="${LD-ld} -m elf64_sparc"
 
7014
            ;;
 
7015
        esac
 
7016
        ;;
 
7017
    esac
 
7018
  fi
 
7019
  rm -rf conftest*
 
7020
  ;;
 
7021
 
 
7022
*-*-sco3.2v5*)
 
7023
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7024
  SAVE_CFLAGS="$CFLAGS"
 
7025
  CFLAGS="$CFLAGS -belf"
 
7026
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
7027
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
7028
if ${lt_cv_cc_needs_belf+:} false; then :
 
7029
  $as_echo_n "(cached) " >&6
 
7030
else
 
7031
  ac_ext=c
 
7032
ac_cpp='$CPP $CPPFLAGS'
 
7033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7036
 
 
7037
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7038
/* end confdefs.h.  */
 
7039
 
 
7040
int
 
7041
main ()
 
7042
{
 
7043
 
 
7044
  ;
 
7045
  return 0;
 
7046
}
 
7047
_ACEOF
 
7048
if ac_fn_c_try_link "$LINENO"; then :
 
7049
  lt_cv_cc_needs_belf=yes
 
7050
else
 
7051
  lt_cv_cc_needs_belf=no
 
7052
fi
 
7053
rm -f core conftest.err conftest.$ac_objext \
 
7054
    conftest$ac_exeext conftest.$ac_ext
 
7055
     ac_ext=c
 
7056
ac_cpp='$CPP $CPPFLAGS'
 
7057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7060
 
 
7061
fi
 
7062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
7063
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
7064
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7065
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7066
    CFLAGS="$SAVE_CFLAGS"
 
7067
  fi
 
7068
  ;;
 
7069
*-*solaris*)
 
7070
  # Find out which ABI we are using.
 
7071
  echo 'int i;' > conftest.$ac_ext
 
7072
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7073
  (eval $ac_compile) 2>&5
 
7074
  ac_status=$?
 
7075
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7076
  test $ac_status = 0; }; then
 
7077
    case `/usr/bin/file conftest.o` in
 
7078
    *64-bit*)
 
7079
      case $lt_cv_prog_gnu_ld in
 
7080
      yes*)
 
7081
        case $host in
 
7082
        i?86-*-solaris*)
 
7083
          LD="${LD-ld} -m elf_x86_64"
 
7084
          ;;
 
7085
        sparc*-*-solaris*)
 
7086
          LD="${LD-ld} -m elf64_sparc"
 
7087
          ;;
 
7088
        esac
 
7089
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
7090
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
7091
          LD="${LD-ld}_sol2"
 
7092
        fi
 
7093
        ;;
 
7094
      *)
 
7095
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7096
          LD="${LD-ld} -64"
 
7097
        fi
 
7098
        ;;
 
7099
      esac
 
7100
      ;;
 
7101
    esac
 
7102
  fi
 
7103
  rm -rf conftest*
 
7104
  ;;
 
7105
esac
 
7106
 
 
7107
need_locks="$enable_libtool_lock"
 
7108
 
 
7109
if test -n "$ac_tool_prefix"; then
 
7110
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
7111
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7113
$as_echo_n "checking for $ac_word... " >&6; }
 
7114
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
7115
  $as_echo_n "(cached) " >&6
 
7116
else
 
7117
  if test -n "$MANIFEST_TOOL"; then
 
7118
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
7119
else
 
7120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7121
for as_dir in $PATH
 
7122
do
 
7123
  IFS=$as_save_IFS
 
7124
  test -z "$as_dir" && as_dir=.
 
7125
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7126
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7127
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
7128
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7129
    break 2
 
7130
  fi
 
7131
done
 
7132
  done
 
7133
IFS=$as_save_IFS
 
7134
 
 
7135
fi
 
7136
fi
 
7137
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
7138
if test -n "$MANIFEST_TOOL"; then
 
7139
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
7140
$as_echo "$MANIFEST_TOOL" >&6; }
 
7141
else
 
7142
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7143
$as_echo "no" >&6; }
 
7144
fi
 
7145
 
 
7146
 
 
7147
fi
 
7148
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
7149
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
7150
  # Extract the first word of "mt", so it can be a program name with args.
 
7151
set dummy mt; ac_word=$2
 
7152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7153
$as_echo_n "checking for $ac_word... " >&6; }
 
7154
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
7155
  $as_echo_n "(cached) " >&6
 
7156
else
 
7157
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7158
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
7159
else
 
7160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7161
for as_dir in $PATH
 
7162
do
 
7163
  IFS=$as_save_IFS
 
7164
  test -z "$as_dir" && as_dir=.
 
7165
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7166
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7167
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
7168
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7169
    break 2
 
7170
  fi
 
7171
done
 
7172
  done
 
7173
IFS=$as_save_IFS
 
7174
 
 
7175
fi
 
7176
fi
 
7177
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
7178
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
7179
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
7180
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
7181
else
 
7182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7183
$as_echo "no" >&6; }
 
7184
fi
 
7185
 
 
7186
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
7187
    MANIFEST_TOOL=":"
 
7188
  else
 
7189
    case $cross_compiling:$ac_tool_warned in
 
7190
yes:)
 
7191
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7192
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7193
ac_tool_warned=yes ;;
 
7194
esac
 
7195
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
7196
  fi
 
7197
else
 
7198
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
7199
fi
 
7200
 
 
7201
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
7202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
7203
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
7204
if ${lt_cv_path_mainfest_tool+:} false; then :
 
7205
  $as_echo_n "(cached) " >&6
 
7206
else
 
7207
  lt_cv_path_mainfest_tool=no
 
7208
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
7209
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
7210
  cat conftest.err >&5
 
7211
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
7212
    lt_cv_path_mainfest_tool=yes
 
7213
  fi
 
7214
  rm -f conftest*
 
7215
fi
 
7216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
7217
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
7218
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
7219
  MANIFEST_TOOL=:
 
7220
fi
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
 
 
7226
 
 
7227
  case $host_os in
 
7228
    rhapsody* | darwin*)
 
7229
    if test -n "$ac_tool_prefix"; then
 
7230
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7231
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7233
$as_echo_n "checking for $ac_word... " >&6; }
 
7234
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
7235
  $as_echo_n "(cached) " >&6
 
7236
else
 
7237
  if test -n "$DSYMUTIL"; then
 
7238
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7239
else
 
7240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7241
for as_dir in $PATH
 
7242
do
 
7243
  IFS=$as_save_IFS
 
7244
  test -z "$as_dir" && as_dir=.
 
7245
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7246
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7247
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7248
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7249
    break 2
 
7250
  fi
 
7251
done
 
7252
  done
 
7253
IFS=$as_save_IFS
 
7254
 
 
7255
fi
 
7256
fi
 
7257
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7258
if test -n "$DSYMUTIL"; then
 
7259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
7260
$as_echo "$DSYMUTIL" >&6; }
 
7261
else
 
7262
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7263
$as_echo "no" >&6; }
 
7264
fi
 
7265
 
 
7266
 
 
7267
fi
 
7268
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7269
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7270
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7271
set dummy dsymutil; ac_word=$2
 
7272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7273
$as_echo_n "checking for $ac_word... " >&6; }
 
7274
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
7275
  $as_echo_n "(cached) " >&6
 
7276
else
 
7277
  if test -n "$ac_ct_DSYMUTIL"; then
 
7278
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7279
else
 
7280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7281
for as_dir in $PATH
 
7282
do
 
7283
  IFS=$as_save_IFS
 
7284
  test -z "$as_dir" && as_dir=.
 
7285
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7286
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7287
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7288
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7289
    break 2
 
7290
  fi
 
7291
done
 
7292
  done
 
7293
IFS=$as_save_IFS
 
7294
 
 
7295
fi
 
7296
fi
 
7297
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7298
if test -n "$ac_ct_DSYMUTIL"; then
 
7299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
7300
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7301
else
 
7302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7303
$as_echo "no" >&6; }
 
7304
fi
 
7305
 
 
7306
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7307
    DSYMUTIL=":"
 
7308
  else
 
7309
    case $cross_compiling:$ac_tool_warned in
 
7310
yes:)
 
7311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7312
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7313
ac_tool_warned=yes ;;
 
7314
esac
 
7315
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7316
  fi
 
7317
else
 
7318
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7319
fi
 
7320
 
 
7321
    if test -n "$ac_tool_prefix"; then
 
7322
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7323
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7325
$as_echo_n "checking for $ac_word... " >&6; }
 
7326
if ${ac_cv_prog_NMEDIT+:} false; then :
 
7327
  $as_echo_n "(cached) " >&6
 
7328
else
 
7329
  if test -n "$NMEDIT"; then
 
7330
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7331
else
 
7332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7333
for as_dir in $PATH
 
7334
do
 
7335
  IFS=$as_save_IFS
 
7336
  test -z "$as_dir" && as_dir=.
 
7337
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7338
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7339
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7340
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7341
    break 2
 
7342
  fi
 
7343
done
 
7344
  done
 
7345
IFS=$as_save_IFS
 
7346
 
 
7347
fi
 
7348
fi
 
7349
NMEDIT=$ac_cv_prog_NMEDIT
 
7350
if test -n "$NMEDIT"; then
 
7351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
7352
$as_echo "$NMEDIT" >&6; }
 
7353
else
 
7354
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7355
$as_echo "no" >&6; }
 
7356
fi
 
7357
 
 
7358
 
 
7359
fi
 
7360
if test -z "$ac_cv_prog_NMEDIT"; then
 
7361
  ac_ct_NMEDIT=$NMEDIT
 
7362
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7363
set dummy nmedit; ac_word=$2
 
7364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7365
$as_echo_n "checking for $ac_word... " >&6; }
 
7366
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
7367
  $as_echo_n "(cached) " >&6
 
7368
else
 
7369
  if test -n "$ac_ct_NMEDIT"; then
 
7370
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7371
else
 
7372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7373
for as_dir in $PATH
 
7374
do
 
7375
  IFS=$as_save_IFS
 
7376
  test -z "$as_dir" && as_dir=.
 
7377
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7378
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7379
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7381
    break 2
 
7382
  fi
 
7383
done
 
7384
  done
 
7385
IFS=$as_save_IFS
 
7386
 
 
7387
fi
 
7388
fi
 
7389
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7390
if test -n "$ac_ct_NMEDIT"; then
 
7391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
7392
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7393
else
 
7394
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7395
$as_echo "no" >&6; }
 
7396
fi
 
7397
 
 
7398
  if test "x$ac_ct_NMEDIT" = x; then
 
7399
    NMEDIT=":"
 
7400
  else
 
7401
    case $cross_compiling:$ac_tool_warned in
 
7402
yes:)
 
7403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7405
ac_tool_warned=yes ;;
 
7406
esac
 
7407
    NMEDIT=$ac_ct_NMEDIT
 
7408
  fi
 
7409
else
 
7410
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7411
fi
 
7412
 
 
7413
    if test -n "$ac_tool_prefix"; then
 
7414
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7415
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7417
$as_echo_n "checking for $ac_word... " >&6; }
 
7418
if ${ac_cv_prog_LIPO+:} false; then :
 
7419
  $as_echo_n "(cached) " >&6
 
7420
else
 
7421
  if test -n "$LIPO"; then
 
7422
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7423
else
 
7424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7425
for as_dir in $PATH
 
7426
do
 
7427
  IFS=$as_save_IFS
 
7428
  test -z "$as_dir" && as_dir=.
 
7429
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7430
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7431
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7432
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7433
    break 2
 
7434
  fi
 
7435
done
 
7436
  done
 
7437
IFS=$as_save_IFS
 
7438
 
 
7439
fi
 
7440
fi
 
7441
LIPO=$ac_cv_prog_LIPO
 
7442
if test -n "$LIPO"; then
 
7443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
7444
$as_echo "$LIPO" >&6; }
 
7445
else
 
7446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7447
$as_echo "no" >&6; }
 
7448
fi
 
7449
 
 
7450
 
 
7451
fi
 
7452
if test -z "$ac_cv_prog_LIPO"; then
 
7453
  ac_ct_LIPO=$LIPO
 
7454
  # Extract the first word of "lipo", so it can be a program name with args.
 
7455
set dummy lipo; ac_word=$2
 
7456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7457
$as_echo_n "checking for $ac_word... " >&6; }
 
7458
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
7459
  $as_echo_n "(cached) " >&6
 
7460
else
 
7461
  if test -n "$ac_ct_LIPO"; then
 
7462
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7463
else
 
7464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7465
for as_dir in $PATH
 
7466
do
 
7467
  IFS=$as_save_IFS
 
7468
  test -z "$as_dir" && as_dir=.
 
7469
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7470
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7471
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7472
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7473
    break 2
 
7474
  fi
 
7475
done
 
7476
  done
 
7477
IFS=$as_save_IFS
 
7478
 
 
7479
fi
 
7480
fi
 
7481
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7482
if test -n "$ac_ct_LIPO"; then
 
7483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
7484
$as_echo "$ac_ct_LIPO" >&6; }
 
7485
else
 
7486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7487
$as_echo "no" >&6; }
 
7488
fi
 
7489
 
 
7490
  if test "x$ac_ct_LIPO" = x; then
 
7491
    LIPO=":"
 
7492
  else
 
7493
    case $cross_compiling:$ac_tool_warned in
 
7494
yes:)
 
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7496
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7497
ac_tool_warned=yes ;;
 
7498
esac
 
7499
    LIPO=$ac_ct_LIPO
 
7500
  fi
 
7501
else
 
7502
  LIPO="$ac_cv_prog_LIPO"
 
7503
fi
 
7504
 
 
7505
    if test -n "$ac_tool_prefix"; then
 
7506
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7507
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7509
$as_echo_n "checking for $ac_word... " >&6; }
 
7510
if ${ac_cv_prog_OTOOL+:} false; then :
 
7511
  $as_echo_n "(cached) " >&6
 
7512
else
 
7513
  if test -n "$OTOOL"; then
 
7514
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7515
else
 
7516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7517
for as_dir in $PATH
 
7518
do
 
7519
  IFS=$as_save_IFS
 
7520
  test -z "$as_dir" && as_dir=.
 
7521
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7522
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7523
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7524
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7525
    break 2
 
7526
  fi
 
7527
done
 
7528
  done
 
7529
IFS=$as_save_IFS
 
7530
 
 
7531
fi
 
7532
fi
 
7533
OTOOL=$ac_cv_prog_OTOOL
 
7534
if test -n "$OTOOL"; then
 
7535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
7536
$as_echo "$OTOOL" >&6; }
 
7537
else
 
7538
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7539
$as_echo "no" >&6; }
 
7540
fi
 
7541
 
 
7542
 
 
7543
fi
 
7544
if test -z "$ac_cv_prog_OTOOL"; then
 
7545
  ac_ct_OTOOL=$OTOOL
 
7546
  # Extract the first word of "otool", so it can be a program name with args.
 
7547
set dummy otool; ac_word=$2
 
7548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7549
$as_echo_n "checking for $ac_word... " >&6; }
 
7550
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
7551
  $as_echo_n "(cached) " >&6
 
7552
else
 
7553
  if test -n "$ac_ct_OTOOL"; then
 
7554
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7555
else
 
7556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7557
for as_dir in $PATH
 
7558
do
 
7559
  IFS=$as_save_IFS
 
7560
  test -z "$as_dir" && as_dir=.
 
7561
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7562
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7563
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7564
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7565
    break 2
 
7566
  fi
 
7567
done
 
7568
  done
 
7569
IFS=$as_save_IFS
 
7570
 
 
7571
fi
 
7572
fi
 
7573
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7574
if test -n "$ac_ct_OTOOL"; then
 
7575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
7576
$as_echo "$ac_ct_OTOOL" >&6; }
 
7577
else
 
7578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7579
$as_echo "no" >&6; }
 
7580
fi
 
7581
 
 
7582
  if test "x$ac_ct_OTOOL" = x; then
 
7583
    OTOOL=":"
 
7584
  else
 
7585
    case $cross_compiling:$ac_tool_warned in
 
7586
yes:)
 
7587
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7588
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7589
ac_tool_warned=yes ;;
 
7590
esac
 
7591
    OTOOL=$ac_ct_OTOOL
 
7592
  fi
 
7593
else
 
7594
  OTOOL="$ac_cv_prog_OTOOL"
 
7595
fi
 
7596
 
 
7597
    if test -n "$ac_tool_prefix"; then
 
7598
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7599
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7601
$as_echo_n "checking for $ac_word... " >&6; }
 
7602
if ${ac_cv_prog_OTOOL64+:} false; then :
 
7603
  $as_echo_n "(cached) " >&6
 
7604
else
 
7605
  if test -n "$OTOOL64"; then
 
7606
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7607
else
 
7608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7609
for as_dir in $PATH
 
7610
do
 
7611
  IFS=$as_save_IFS
 
7612
  test -z "$as_dir" && as_dir=.
 
7613
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7614
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7615
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7616
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7617
    break 2
 
7618
  fi
 
7619
done
 
7620
  done
 
7621
IFS=$as_save_IFS
 
7622
 
 
7623
fi
 
7624
fi
 
7625
OTOOL64=$ac_cv_prog_OTOOL64
 
7626
if test -n "$OTOOL64"; then
 
7627
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7628
$as_echo "$OTOOL64" >&6; }
 
7629
else
 
7630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7631
$as_echo "no" >&6; }
 
7632
fi
 
7633
 
 
7634
 
 
7635
fi
 
7636
if test -z "$ac_cv_prog_OTOOL64"; then
 
7637
  ac_ct_OTOOL64=$OTOOL64
 
7638
  # Extract the first word of "otool64", so it can be a program name with args.
 
7639
set dummy otool64; ac_word=$2
 
7640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7641
$as_echo_n "checking for $ac_word... " >&6; }
 
7642
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7643
  $as_echo_n "(cached) " >&6
 
7644
else
 
7645
  if test -n "$ac_ct_OTOOL64"; then
 
7646
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7647
else
 
7648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7649
for as_dir in $PATH
 
7650
do
 
7651
  IFS=$as_save_IFS
 
7652
  test -z "$as_dir" && as_dir=.
 
7653
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7654
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7655
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7656
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7657
    break 2
 
7658
  fi
 
7659
done
 
7660
  done
 
7661
IFS=$as_save_IFS
 
7662
 
 
7663
fi
 
7664
fi
 
7665
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7666
if test -n "$ac_ct_OTOOL64"; then
 
7667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7668
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7669
else
 
7670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7671
$as_echo "no" >&6; }
 
7672
fi
 
7673
 
 
7674
  if test "x$ac_ct_OTOOL64" = x; then
 
7675
    OTOOL64=":"
 
7676
  else
 
7677
    case $cross_compiling:$ac_tool_warned in
 
7678
yes:)
 
7679
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7680
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7681
ac_tool_warned=yes ;;
 
7682
esac
 
7683
    OTOOL64=$ac_ct_OTOOL64
 
7684
  fi
 
7685
else
 
7686
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7687
fi
 
7688
 
 
7689
 
 
7690
 
 
7691
 
 
7692
 
 
7693
 
 
7694
 
 
7695
 
 
7696
 
 
7697
 
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
 
 
7713
 
 
7714
 
 
7715
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7716
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7717
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7718
  $as_echo_n "(cached) " >&6
 
7719
else
 
7720
  lt_cv_apple_cc_single_mod=no
 
7721
      if test -z "${LT_MULTI_MODULE}"; then
 
7722
        # By default we will add the -single_module flag. You can override
 
7723
        # by either setting the environment variable LT_MULTI_MODULE
 
7724
        # non-empty at configure time, or by adding -multi_module to the
 
7725
        # link flags.
 
7726
        rm -rf libconftest.dylib*
 
7727
        echo "int foo(void){return 1;}" > conftest.c
 
7728
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7729
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7730
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7731
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7732
        _lt_result=$?
 
7733
        # If there is a non-empty error log, and "single_module"
 
7734
        # appears in it, assume the flag caused a linker warning
 
7735
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7736
          cat conftest.err >&5
 
7737
        # Otherwise, if the output was created with a 0 exit code from
 
7738
        # the compiler, it worked.
 
7739
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7740
          lt_cv_apple_cc_single_mod=yes
 
7741
        else
 
7742
          cat conftest.err >&5
 
7743
        fi
 
7744
        rm -rf libconftest.dylib*
 
7745
        rm -f conftest.*
 
7746
      fi
 
7747
fi
 
7748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7749
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7750
 
 
7751
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7752
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7753
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7754
  $as_echo_n "(cached) " >&6
 
7755
else
 
7756
  lt_cv_ld_exported_symbols_list=no
 
7757
      save_LDFLAGS=$LDFLAGS
 
7758
      echo "_main" > conftest.sym
 
7759
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7760
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7761
/* end confdefs.h.  */
 
7762
 
 
7763
int
 
7764
main ()
 
7765
{
 
7766
 
 
7767
  ;
 
7768
  return 0;
 
7769
}
 
7770
_ACEOF
 
7771
if ac_fn_c_try_link "$LINENO"; then :
 
7772
  lt_cv_ld_exported_symbols_list=yes
 
7773
else
 
7774
  lt_cv_ld_exported_symbols_list=no
 
7775
fi
 
7776
rm -f core conftest.err conftest.$ac_objext \
 
7777
    conftest$ac_exeext conftest.$ac_ext
 
7778
        LDFLAGS="$save_LDFLAGS"
 
7779
 
 
7780
fi
 
7781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7782
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7783
 
 
7784
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7785
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7786
if ${lt_cv_ld_force_load+:} false; then :
 
7787
  $as_echo_n "(cached) " >&6
 
7788
else
 
7789
  lt_cv_ld_force_load=no
 
7790
      cat > conftest.c << _LT_EOF
 
7791
int forced_loaded() { return 2;}
 
7792
_LT_EOF
 
7793
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7794
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7795
      echo "$AR cru libconftest.a conftest.o" >&5
 
7796
      $AR cru libconftest.a conftest.o 2>&5
 
7797
      echo "$RANLIB libconftest.a" >&5
 
7798
      $RANLIB libconftest.a 2>&5
 
7799
      cat > conftest.c << _LT_EOF
 
7800
int main() { return 0;}
 
7801
_LT_EOF
 
7802
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7803
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7804
      _lt_result=$?
 
7805
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7806
        cat conftest.err >&5
 
7807
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7808
        lt_cv_ld_force_load=yes
 
7809
      else
 
7810
        cat conftest.err >&5
 
7811
      fi
 
7812
        rm -f conftest.err libconftest.a conftest conftest.c
 
7813
        rm -rf conftest.dSYM
 
7814
 
 
7815
fi
 
7816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7817
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7818
    case $host_os in
 
7819
    rhapsody* | darwin1.[012])
 
7820
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7821
    darwin1.*)
 
7822
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7823
    darwin*) # darwin 5.x on
 
7824
      # if running on 10.5 or later, the deployment target defaults
 
7825
      # to the OS version, if on x86, and 10.4, the deployment
 
7826
      # target defaults to 10.4. Don't you love it?
 
7827
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7828
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7829
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7830
        10.[012]*)
 
7831
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7832
        10.*)
 
7833
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7834
      esac
 
7835
    ;;
 
7836
  esac
 
7837
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7838
      _lt_dar_single_mod='$single_module'
 
7839
    fi
 
7840
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7841
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7842
    else
 
7843
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7844
    fi
 
7845
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7846
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7847
    else
 
7848
      _lt_dsymutil=
 
7849
    fi
 
7850
    ;;
 
7851
  esac
 
7852
 
 
7853
ac_ext=c
 
7854
ac_cpp='$CPP $CPPFLAGS'
 
7855
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7856
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7857
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7859
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7860
# On Suns, sometimes $CPP names a directory.
 
7861
if test -n "$CPP" && test -d "$CPP"; then
 
7862
  CPP=
 
7863
fi
 
7864
if test -z "$CPP"; then
 
7865
  if ${ac_cv_prog_CPP+:} false; then :
 
7866
  $as_echo_n "(cached) " >&6
 
7867
else
 
7868
      # Double quotes because CPP needs to be expanded
 
7869
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7870
    do
 
7871
      ac_preproc_ok=false
 
7872
for ac_c_preproc_warn_flag in '' yes
 
7873
do
 
7874
  # Use a header file that comes with gcc, so configuring glibc
 
7875
  # with a fresh cross-compiler works.
 
7876
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7877
  # <limits.h> exists even on freestanding compilers.
 
7878
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7879
  # not just through cpp. "Syntax error" is here to catch this case.
 
7880
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7881
/* end confdefs.h.  */
 
7882
#ifdef __STDC__
 
7883
# include <limits.h>
 
7884
#else
 
7885
# include <assert.h>
 
7886
#endif
 
7887
                     Syntax error
 
7888
_ACEOF
 
7889
if ac_fn_c_try_cpp "$LINENO"; then :
 
7890
 
 
7891
else
 
7892
  # Broken: fails on valid input.
 
7893
continue
 
7894
fi
 
7895
rm -f conftest.err conftest.i conftest.$ac_ext
 
7896
 
 
7897
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7898
  # can be detected and how.
 
7899
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7900
/* end confdefs.h.  */
 
7901
#include <ac_nonexistent.h>
 
7902
_ACEOF
 
7903
if ac_fn_c_try_cpp "$LINENO"; then :
 
7904
  # Broken: success on invalid input.
 
7905
continue
 
7906
else
 
7907
  # Passes both tests.
 
7908
ac_preproc_ok=:
 
7909
break
 
7910
fi
 
7911
rm -f conftest.err conftest.i conftest.$ac_ext
 
7912
 
 
7913
done
 
7914
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7915
rm -f conftest.i conftest.err conftest.$ac_ext
 
7916
if $ac_preproc_ok; then :
 
7917
  break
 
7918
fi
 
7919
 
 
7920
    done
 
7921
    ac_cv_prog_CPP=$CPP
 
7922
 
 
7923
fi
 
7924
  CPP=$ac_cv_prog_CPP
 
7925
else
 
7926
  ac_cv_prog_CPP=$CPP
 
7927
fi
 
7928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7929
$as_echo "$CPP" >&6; }
 
7930
ac_preproc_ok=false
 
7931
for ac_c_preproc_warn_flag in '' yes
 
7932
do
 
7933
  # Use a header file that comes with gcc, so configuring glibc
 
7934
  # with a fresh cross-compiler works.
 
7935
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7936
  # <limits.h> exists even on freestanding compilers.
 
7937
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7938
  # not just through cpp. "Syntax error" is here to catch this case.
 
7939
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7940
/* end confdefs.h.  */
 
7941
#ifdef __STDC__
 
7942
# include <limits.h>
 
7943
#else
 
7944
# include <assert.h>
 
7945
#endif
 
7946
                     Syntax error
 
7947
_ACEOF
 
7948
if ac_fn_c_try_cpp "$LINENO"; then :
 
7949
 
 
7950
else
 
7951
  # Broken: fails on valid input.
 
7952
continue
 
7953
fi
 
7954
rm -f conftest.err conftest.i conftest.$ac_ext
 
7955
 
 
7956
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7957
  # can be detected and how.
 
7958
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7959
/* end confdefs.h.  */
 
7960
#include <ac_nonexistent.h>
 
7961
_ACEOF
 
7962
if ac_fn_c_try_cpp "$LINENO"; then :
 
7963
  # Broken: success on invalid input.
 
7964
continue
 
7965
else
 
7966
  # Passes both tests.
 
7967
ac_preproc_ok=:
 
7968
break
 
7969
fi
 
7970
rm -f conftest.err conftest.i conftest.$ac_ext
 
7971
 
 
7972
done
 
7973
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7974
rm -f conftest.i conftest.err conftest.$ac_ext
 
7975
if $ac_preproc_ok; then :
 
7976
 
 
7977
else
 
7978
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7979
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7980
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7981
See \`config.log' for more details" "$LINENO" 5; }
 
7982
fi
 
7983
 
 
7984
ac_ext=c
 
7985
ac_cpp='$CPP $CPPFLAGS'
 
7986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7989
 
 
7990
 
 
7991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7992
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7993
if ${ac_cv_header_stdc+:} false; then :
 
7994
  $as_echo_n "(cached) " >&6
 
7995
else
 
7996
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7997
/* end confdefs.h.  */
 
7998
#include <stdlib.h>
 
7999
#include <stdarg.h>
 
8000
#include <string.h>
 
8001
#include <float.h>
 
8002
 
 
8003
int
 
8004
main ()
 
8005
{
 
8006
 
 
8007
  ;
 
8008
  return 0;
 
8009
}
 
8010
_ACEOF
 
8011
if ac_fn_c_try_compile "$LINENO"; then :
 
8012
  ac_cv_header_stdc=yes
 
8013
else
 
8014
  ac_cv_header_stdc=no
 
8015
fi
 
8016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8017
 
 
8018
if test $ac_cv_header_stdc = yes; then
 
8019
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8020
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8021
/* end confdefs.h.  */
 
8022
#include <string.h>
 
8023
 
 
8024
_ACEOF
 
8025
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8026
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8027
 
 
8028
else
 
8029
  ac_cv_header_stdc=no
 
8030
fi
 
8031
rm -f conftest*
 
8032
 
 
8033
fi
 
8034
 
 
8035
if test $ac_cv_header_stdc = yes; then
 
8036
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8037
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8038
/* end confdefs.h.  */
 
8039
#include <stdlib.h>
 
8040
 
 
8041
_ACEOF
 
8042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8043
  $EGREP "free" >/dev/null 2>&1; then :
 
8044
 
 
8045
else
 
8046
  ac_cv_header_stdc=no
 
8047
fi
 
8048
rm -f conftest*
 
8049
 
 
8050
fi
 
8051
 
 
8052
if test $ac_cv_header_stdc = yes; then
 
8053
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8054
  if test "$cross_compiling" = yes; then :
 
8055
  :
 
8056
else
 
8057
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8058
/* end confdefs.h.  */
 
8059
#include <ctype.h>
 
8060
#include <stdlib.h>
 
8061
#if ((' ' & 0x0FF) == 0x020)
 
8062
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8063
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8064
#else
 
8065
# define ISLOWER(c) \
 
8066
                   (('a' <= (c) && (c) <= 'i') \
 
8067
                     || ('j' <= (c) && (c) <= 'r') \
 
8068
                     || ('s' <= (c) && (c) <= 'z'))
 
8069
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8070
#endif
 
8071
 
 
8072
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8073
int
 
8074
main ()
 
8075
{
 
8076
  int i;
 
8077
  for (i = 0; i < 256; i++)
 
8078
    if (XOR (islower (i), ISLOWER (i))
 
8079
        || toupper (i) != TOUPPER (i))
 
8080
      return 2;
 
8081
  return 0;
 
8082
}
 
8083
_ACEOF
 
8084
if ac_fn_c_try_run "$LINENO"; then :
 
8085
 
 
8086
else
 
8087
  ac_cv_header_stdc=no
 
8088
fi
 
8089
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8090
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8091
fi
 
8092
 
 
8093
fi
 
8094
fi
 
8095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8096
$as_echo "$ac_cv_header_stdc" >&6; }
 
8097
if test $ac_cv_header_stdc = yes; then
 
8098
 
 
8099
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8100
 
 
8101
fi
 
8102
 
 
8103
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8104
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8105
                  inttypes.h stdint.h unistd.h
 
8106
do :
 
8107
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8108
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8109
"
 
8110
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8111
  cat >>confdefs.h <<_ACEOF
 
8112
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8113
_ACEOF
 
8114
 
 
8115
fi
 
8116
 
 
8117
done
 
8118
 
 
8119
 
 
8120
for ac_header in dlfcn.h
 
8121
do :
 
8122
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8123
"
 
8124
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
8125
  cat >>confdefs.h <<_ACEOF
 
8126
#define HAVE_DLFCN_H 1
 
8127
_ACEOF
 
8128
 
 
8129
fi
 
8130
 
 
8131
done
 
8132
 
 
8133
 
 
8134
 
 
8135
 
 
8136
 
 
8137
# Set options
 
8138
# Check whether --enable-static was given.
 
8139
if test "${enable_static+set}" = set; then :
 
8140
  enableval=$enable_static; p=${PACKAGE-default}
 
8141
    case $enableval in
 
8142
    yes) enable_static=yes ;;
 
8143
    no) enable_static=no ;;
 
8144
    *)
 
8145
     enable_static=no
 
8146
      # Look at the argument we got.  We use all the common list separators.
 
8147
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8148
      for pkg in $enableval; do
 
8149
        IFS="$lt_save_ifs"
 
8150
        if test "X$pkg" = "X$p"; then
 
8151
          enable_static=yes
 
8152
        fi
 
8153
      done
 
8154
      IFS="$lt_save_ifs"
 
8155
      ;;
 
8156
    esac
 
8157
else
 
8158
  enable_static=no
 
8159
fi
 
8160
 
 
8161
 
 
8162
 
 
8163
 
 
8164
 
 
8165
 
 
8166
 
 
8167
enable_win32_dll=yes
 
8168
 
 
8169
case $host in
 
8170
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
 
8171
  if test -n "$ac_tool_prefix"; then
 
8172
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
8173
set dummy ${ac_tool_prefix}as; ac_word=$2
 
8174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8175
$as_echo_n "checking for $ac_word... " >&6; }
 
8176
if ${ac_cv_prog_AS+:} false; then :
 
8177
  $as_echo_n "(cached) " >&6
 
8178
else
 
8179
  if test -n "$AS"; then
 
8180
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
8181
else
 
8182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8183
for as_dir in $PATH
 
8184
do
 
8185
  IFS=$as_save_IFS
 
8186
  test -z "$as_dir" && as_dir=.
 
8187
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8188
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8189
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
8190
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8191
    break 2
 
8192
  fi
 
8193
done
 
8194
  done
 
8195
IFS=$as_save_IFS
 
8196
 
 
8197
fi
 
8198
fi
 
8199
AS=$ac_cv_prog_AS
 
8200
if test -n "$AS"; then
 
8201
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
8202
$as_echo "$AS" >&6; }
 
8203
else
 
8204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8205
$as_echo "no" >&6; }
 
8206
fi
 
8207
 
 
8208
 
 
8209
fi
 
8210
if test -z "$ac_cv_prog_AS"; then
 
8211
  ac_ct_AS=$AS
 
8212
  # Extract the first word of "as", so it can be a program name with args.
 
8213
set dummy as; ac_word=$2
 
8214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8215
$as_echo_n "checking for $ac_word... " >&6; }
 
8216
if ${ac_cv_prog_ac_ct_AS+:} false; then :
 
8217
  $as_echo_n "(cached) " >&6
 
8218
else
 
8219
  if test -n "$ac_ct_AS"; then
 
8220
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
8221
else
 
8222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8223
for as_dir in $PATH
 
8224
do
 
8225
  IFS=$as_save_IFS
 
8226
  test -z "$as_dir" && as_dir=.
 
8227
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8228
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8229
    ac_cv_prog_ac_ct_AS="as"
 
8230
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8231
    break 2
 
8232
  fi
 
8233
done
 
8234
  done
 
8235
IFS=$as_save_IFS
 
8236
 
 
8237
fi
 
8238
fi
 
8239
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
8240
if test -n "$ac_ct_AS"; then
 
8241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
8242
$as_echo "$ac_ct_AS" >&6; }
 
8243
else
 
8244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8245
$as_echo "no" >&6; }
 
8246
fi
 
8247
 
 
8248
  if test "x$ac_ct_AS" = x; then
 
8249
    AS="false"
 
8250
  else
 
8251
    case $cross_compiling:$ac_tool_warned in
 
8252
yes:)
 
8253
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8254
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8255
ac_tool_warned=yes ;;
 
8256
esac
 
8257
    AS=$ac_ct_AS
 
8258
  fi
 
8259
else
 
8260
  AS="$ac_cv_prog_AS"
 
8261
fi
 
8262
 
 
8263
  if test -n "$ac_tool_prefix"; then
 
8264
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
8265
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
8266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8267
$as_echo_n "checking for $ac_word... " >&6; }
 
8268
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
8269
  $as_echo_n "(cached) " >&6
 
8270
else
 
8271
  if test -n "$DLLTOOL"; then
 
8272
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
8273
else
 
8274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8275
for as_dir in $PATH
 
8276
do
 
8277
  IFS=$as_save_IFS
 
8278
  test -z "$as_dir" && as_dir=.
 
8279
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8280
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8281
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
8282
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8283
    break 2
 
8284
  fi
 
8285
done
 
8286
  done
 
8287
IFS=$as_save_IFS
 
8288
 
 
8289
fi
 
8290
fi
 
8291
DLLTOOL=$ac_cv_prog_DLLTOOL
 
8292
if test -n "$DLLTOOL"; then
 
8293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
8294
$as_echo "$DLLTOOL" >&6; }
 
8295
else
 
8296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8297
$as_echo "no" >&6; }
 
8298
fi
 
8299
 
 
8300
 
 
8301
fi
 
8302
if test -z "$ac_cv_prog_DLLTOOL"; then
 
8303
  ac_ct_DLLTOOL=$DLLTOOL
 
8304
  # Extract the first word of "dlltool", so it can be a program name with args.
 
8305
set dummy dlltool; ac_word=$2
 
8306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8307
$as_echo_n "checking for $ac_word... " >&6; }
 
8308
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
8309
  $as_echo_n "(cached) " >&6
 
8310
else
 
8311
  if test -n "$ac_ct_DLLTOOL"; then
 
8312
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
8313
else
 
8314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8315
for as_dir in $PATH
 
8316
do
 
8317
  IFS=$as_save_IFS
 
8318
  test -z "$as_dir" && as_dir=.
 
8319
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8320
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8321
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
8322
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8323
    break 2
 
8324
  fi
 
8325
done
 
8326
  done
 
8327
IFS=$as_save_IFS
 
8328
 
 
8329
fi
 
8330
fi
 
8331
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
8332
if test -n "$ac_ct_DLLTOOL"; then
 
8333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
8334
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
8335
else
 
8336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8337
$as_echo "no" >&6; }
 
8338
fi
 
8339
 
 
8340
  if test "x$ac_ct_DLLTOOL" = x; then
 
8341
    DLLTOOL="false"
 
8342
  else
 
8343
    case $cross_compiling:$ac_tool_warned in
 
8344
yes:)
 
8345
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8346
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8347
ac_tool_warned=yes ;;
 
8348
esac
 
8349
    DLLTOOL=$ac_ct_DLLTOOL
 
8350
  fi
 
8351
else
 
8352
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
8353
fi
 
8354
 
 
8355
  if test -n "$ac_tool_prefix"; then
 
8356
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
8357
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
8358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8359
$as_echo_n "checking for $ac_word... " >&6; }
 
8360
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
8361
  $as_echo_n "(cached) " >&6
 
8362
else
 
8363
  if test -n "$OBJDUMP"; then
 
8364
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
8365
else
 
8366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8367
for as_dir in $PATH
 
8368
do
 
8369
  IFS=$as_save_IFS
 
8370
  test -z "$as_dir" && as_dir=.
 
8371
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8372
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8373
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
8374
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8375
    break 2
 
8376
  fi
 
8377
done
 
8378
  done
 
8379
IFS=$as_save_IFS
 
8380
 
 
8381
fi
 
8382
fi
 
8383
OBJDUMP=$ac_cv_prog_OBJDUMP
 
8384
if test -n "$OBJDUMP"; then
 
8385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
8386
$as_echo "$OBJDUMP" >&6; }
 
8387
else
 
8388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8389
$as_echo "no" >&6; }
 
8390
fi
 
8391
 
 
8392
 
 
8393
fi
 
8394
if test -z "$ac_cv_prog_OBJDUMP"; then
 
8395
  ac_ct_OBJDUMP=$OBJDUMP
 
8396
  # Extract the first word of "objdump", so it can be a program name with args.
 
8397
set dummy objdump; ac_word=$2
 
8398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8399
$as_echo_n "checking for $ac_word... " >&6; }
 
8400
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
8401
  $as_echo_n "(cached) " >&6
 
8402
else
 
8403
  if test -n "$ac_ct_OBJDUMP"; then
 
8404
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
8405
else
 
8406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8407
for as_dir in $PATH
 
8408
do
 
8409
  IFS=$as_save_IFS
 
8410
  test -z "$as_dir" && as_dir=.
 
8411
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8412
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8413
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
8414
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8415
    break 2
 
8416
  fi
 
8417
done
 
8418
  done
 
8419
IFS=$as_save_IFS
 
8420
 
 
8421
fi
 
8422
fi
 
8423
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
8424
if test -n "$ac_ct_OBJDUMP"; then
 
8425
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
8426
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
8427
else
 
8428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8429
$as_echo "no" >&6; }
 
8430
fi
 
8431
 
 
8432
  if test "x$ac_ct_OBJDUMP" = x; then
 
8433
    OBJDUMP="false"
 
8434
  else
 
8435
    case $cross_compiling:$ac_tool_warned in
 
8436
yes:)
 
8437
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8438
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8439
ac_tool_warned=yes ;;
 
8440
esac
 
8441
    OBJDUMP=$ac_ct_OBJDUMP
 
8442
  fi
 
8443
else
 
8444
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
8445
fi
 
8446
 
 
8447
  ;;
 
8448
esac
 
8449
 
 
8450
test -z "$AS" && AS=as
 
8451
 
 
8452
 
 
8453
 
 
8454
 
 
8455
 
 
8456
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8457
 
 
8458
 
 
8459
 
 
8460
 
 
8461
 
 
8462
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8463
 
 
8464
 
 
8465
 
 
8466
 
 
8467
 
 
8468
 
 
8469
 
 
8470
        enable_dlopen=no
 
8471
 
 
8472
 
 
8473
 
 
8474
            # Check whether --enable-shared was given.
 
8475
if test "${enable_shared+set}" = set; then :
 
8476
  enableval=$enable_shared; p=${PACKAGE-default}
 
8477
    case $enableval in
 
8478
    yes) enable_shared=yes ;;
 
8479
    no) enable_shared=no ;;
 
8480
    *)
 
8481
      enable_shared=no
 
8482
      # Look at the argument we got.  We use all the common list separators.
 
8483
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8484
      for pkg in $enableval; do
 
8485
        IFS="$lt_save_ifs"
 
8486
        if test "X$pkg" = "X$p"; then
 
8487
          enable_shared=yes
 
8488
        fi
 
8489
      done
 
8490
      IFS="$lt_save_ifs"
 
8491
      ;;
 
8492
    esac
 
8493
else
 
8494
  enable_shared=yes
 
8495
fi
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
 
8501
 
 
8502
 
 
8503
 
 
8504
 
 
8505
 
 
8506
 
 
8507
# Check whether --with-pic was given.
 
8508
if test "${with_pic+set}" = set; then :
 
8509
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8510
    case $withval in
 
8511
    yes|no) pic_mode=$withval ;;
 
8512
    *)
 
8513
      pic_mode=default
 
8514
      # Look at the argument we got.  We use all the common list separators.
 
8515
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8516
      for lt_pkg in $withval; do
 
8517
        IFS="$lt_save_ifs"
 
8518
        if test "X$lt_pkg" = "X$lt_p"; then
 
8519
          pic_mode=yes
 
8520
        fi
 
8521
      done
 
8522
      IFS="$lt_save_ifs"
 
8523
      ;;
 
8524
    esac
 
8525
else
 
8526
  pic_mode=default
 
8527
fi
 
8528
 
 
8529
 
 
8530
test -z "$pic_mode" && pic_mode=default
 
8531
 
 
8532
 
 
8533
 
 
8534
 
 
8535
 
 
8536
 
 
8537
 
 
8538
  # Check whether --enable-fast-install was given.
 
8539
if test "${enable_fast_install+set}" = set; then :
 
8540
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8541
    case $enableval in
 
8542
    yes) enable_fast_install=yes ;;
 
8543
    no) enable_fast_install=no ;;
 
8544
    *)
 
8545
      enable_fast_install=no
 
8546
      # Look at the argument we got.  We use all the common list separators.
 
8547
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8548
      for pkg in $enableval; do
 
8549
        IFS="$lt_save_ifs"
 
8550
        if test "X$pkg" = "X$p"; then
 
8551
          enable_fast_install=yes
 
8552
        fi
 
8553
      done
 
8554
      IFS="$lt_save_ifs"
 
8555
      ;;
 
8556
    esac
 
8557
else
 
8558
  enable_fast_install=yes
 
8559
fi
 
8560
 
 
8561
 
 
8562
 
 
8563
 
 
8564
 
 
8565
 
 
8566
 
 
8567
 
 
8568
 
 
8569
 
 
8570
 
 
8571
# This can be used to rebuild libtool when needed
 
8572
LIBTOOL_DEPS="$ltmain"
 
8573
 
 
8574
# Always use our own libtool.
 
8575
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8576
 
 
8577
 
 
8578
 
 
8579
 
 
8580
 
 
8581
 
 
8582
 
 
8583
 
 
8584
 
 
8585
 
 
8586
 
 
8587
 
 
8588
 
 
8589
 
 
8590
 
 
8591
 
 
8592
 
 
8593
 
 
8594
 
 
8595
 
 
8596
 
 
8597
 
 
8598
 
 
8599
 
 
8600
 
 
8601
 
 
8602
 
 
8603
 
 
8604
 
 
8605
 
 
8606
test -z "$LN_S" && LN_S="ln -s"
 
8607
 
 
8608
 
 
8609
 
 
8610
 
 
8611
 
 
8612
 
 
8613
 
 
8614
 
 
8615
 
 
8616
 
 
8617
 
 
8618
 
 
8619
 
 
8620
 
 
8621
if test -n "${ZSH_VERSION+set}" ; then
 
8622
   setopt NO_GLOB_SUBST
 
8623
fi
 
8624
 
 
8625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
8626
$as_echo_n "checking for objdir... " >&6; }
 
8627
if ${lt_cv_objdir+:} false; then :
 
8628
  $as_echo_n "(cached) " >&6
 
8629
else
 
8630
  rm -f .libs 2>/dev/null
 
8631
mkdir .libs 2>/dev/null
 
8632
if test -d .libs; then
 
8633
  lt_cv_objdir=.libs
 
8634
else
 
8635
  # MS-DOS does not allow filenames that begin with a dot.
 
8636
  lt_cv_objdir=_libs
 
8637
fi
 
8638
rmdir .libs 2>/dev/null
 
8639
fi
 
8640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
8641
$as_echo "$lt_cv_objdir" >&6; }
 
8642
objdir=$lt_cv_objdir
 
8643
 
 
8644
 
 
8645
 
 
8646
 
 
8647
 
 
8648
cat >>confdefs.h <<_ACEOF
 
8649
#define LT_OBJDIR "$lt_cv_objdir/"
 
8650
_ACEOF
 
8651
 
 
8652
 
 
8653
 
 
8654
 
 
8655
case $host_os in
 
8656
aix3*)
 
8657
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8658
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8659
  # vanish in a puff of smoke.
 
8660
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8661
    COLLECT_NAMES=
 
8662
    export COLLECT_NAMES
 
8663
  fi
 
8664
  ;;
 
8665
esac
 
8666
 
 
8667
# Global variables:
 
8668
ofile=libtool
 
8669
can_build_shared=yes
 
8670
 
 
8671
# All known linkers require a `.a' archive for static linking (except MSVC,
 
8672
# which needs '.lib').
 
8673
libext=a
 
8674
 
 
8675
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8676
 
 
8677
old_CC="$CC"
 
8678
old_CFLAGS="$CFLAGS"
 
8679
 
 
8680
# Set sane defaults for various variables
 
8681
test -z "$CC" && CC=cc
 
8682
test -z "$LTCC" && LTCC=$CC
 
8683
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8684
test -z "$LD" && LD=ld
 
8685
test -z "$ac_objext" && ac_objext=o
 
8686
 
 
8687
for cc_temp in $compiler""; do
 
8688
  case $cc_temp in
 
8689
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8690
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8691
    \-*) ;;
 
8692
    *) break;;
 
8693
  esac
 
8694
done
 
8695
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
8696
 
 
8697
 
 
8698
# Only perform the check for file, if the check method requires it
 
8699
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8700
case $deplibs_check_method in
 
8701
file_magic*)
 
8702
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8703
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
8704
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8705
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8706
  $as_echo_n "(cached) " >&6
 
8707
else
 
8708
  case $MAGIC_CMD in
 
8709
[\\/*] |  ?:[\\/]*)
 
8710
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8711
  ;;
 
8712
*)
 
8713
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8714
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8715
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8716
  for ac_dir in $ac_dummy; do
 
8717
    IFS="$lt_save_ifs"
 
8718
    test -z "$ac_dir" && ac_dir=.
 
8719
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8720
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8721
      if test -n "$file_magic_test_file"; then
 
8722
        case $deplibs_check_method in
 
8723
        "file_magic "*)
 
8724
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8725
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8726
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8727
            $EGREP "$file_magic_regex" > /dev/null; then
 
8728
            :
 
8729
          else
 
8730
            cat <<_LT_EOF 1>&2
 
8731
 
 
8732
*** Warning: the command libtool uses to detect shared libraries,
 
8733
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8734
*** The result is that libtool may fail to recognize shared libraries
 
8735
*** as such.  This will affect the creation of libtool libraries that
 
8736
*** depend on shared libraries, but programs linked with such libtool
 
8737
*** libraries will work regardless of this problem.  Nevertheless, you
 
8738
*** may want to report the problem to your system manager and/or to
 
8739
*** bug-libtool@gnu.org
 
8740
 
 
8741
_LT_EOF
 
8742
          fi ;;
 
8743
        esac
 
8744
      fi
 
8745
      break
 
8746
    fi
 
8747
  done
 
8748
  IFS="$lt_save_ifs"
 
8749
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8750
  ;;
 
8751
esac
 
8752
fi
 
8753
 
 
8754
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8755
if test -n "$MAGIC_CMD"; then
 
8756
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8757
$as_echo "$MAGIC_CMD" >&6; }
 
8758
else
 
8759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8760
$as_echo "no" >&6; }
 
8761
fi
 
8762
 
 
8763
 
 
8764
 
 
8765
 
 
8766
 
 
8767
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8768
  if test -n "$ac_tool_prefix"; then
 
8769
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
8770
$as_echo_n "checking for file... " >&6; }
 
8771
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
8772
  $as_echo_n "(cached) " >&6
 
8773
else
 
8774
  case $MAGIC_CMD in
 
8775
[\\/*] |  ?:[\\/]*)
 
8776
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8777
  ;;
 
8778
*)
 
8779
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8780
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8781
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8782
  for ac_dir in $ac_dummy; do
 
8783
    IFS="$lt_save_ifs"
 
8784
    test -z "$ac_dir" && ac_dir=.
 
8785
    if test -f $ac_dir/file; then
 
8786
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8787
      if test -n "$file_magic_test_file"; then
 
8788
        case $deplibs_check_method in
 
8789
        "file_magic "*)
 
8790
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8791
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8792
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8793
            $EGREP "$file_magic_regex" > /dev/null; then
 
8794
            :
 
8795
          else
 
8796
            cat <<_LT_EOF 1>&2
 
8797
 
 
8798
*** Warning: the command libtool uses to detect shared libraries,
 
8799
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8800
*** The result is that libtool may fail to recognize shared libraries
 
8801
*** as such.  This will affect the creation of libtool libraries that
 
8802
*** depend on shared libraries, but programs linked with such libtool
 
8803
*** libraries will work regardless of this problem.  Nevertheless, you
 
8804
*** may want to report the problem to your system manager and/or to
 
8805
*** bug-libtool@gnu.org
 
8806
 
 
8807
_LT_EOF
 
8808
          fi ;;
 
8809
        esac
 
8810
      fi
 
8811
      break
 
8812
    fi
 
8813
  done
 
8814
  IFS="$lt_save_ifs"
 
8815
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8816
  ;;
 
8817
esac
 
8818
fi
 
8819
 
 
8820
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8821
if test -n "$MAGIC_CMD"; then
 
8822
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
8823
$as_echo "$MAGIC_CMD" >&6; }
 
8824
else
 
8825
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8826
$as_echo "no" >&6; }
 
8827
fi
 
8828
 
 
8829
 
 
8830
  else
 
8831
    MAGIC_CMD=:
 
8832
  fi
 
8833
fi
 
8834
 
 
8835
  fi
 
8836
  ;;
 
8837
esac
 
8838
 
 
8839
# Use C for the default configuration in the libtool script
 
8840
 
 
8841
lt_save_CC="$CC"
 
8842
ac_ext=c
 
8843
ac_cpp='$CPP $CPPFLAGS'
 
8844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8847
 
 
8848
 
 
8849
# Source file extension for C test sources.
 
8850
ac_ext=c
 
8851
 
 
8852
# Object file extension for compiled C test sources.
 
8853
objext=o
 
8854
objext=$objext
 
8855
 
 
8856
# Code to be used in simple compile tests
 
8857
lt_simple_compile_test_code="int some_variable = 0;"
 
8858
 
 
8859
# Code to be used in simple link tests
 
8860
lt_simple_link_test_code='int main(){return(0);}'
 
8861
 
 
8862
 
 
8863
 
 
8864
 
 
8865
 
 
8866
 
 
8867
 
 
8868
# If no C compiler was specified, use CC.
 
8869
LTCC=${LTCC-"$CC"}
 
8870
 
 
8871
# If no C compiler flags were specified, use CFLAGS.
 
8872
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
8873
 
 
8874
# Allow CC to be a program name with arguments.
 
8875
compiler=$CC
 
8876
 
 
8877
# Save the default compiler, since it gets overwritten when the other
 
8878
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8879
compiler_DEFAULT=$CC
 
8880
 
 
8881
# save warnings/boilerplate of simple test code
 
8882
ac_outfile=conftest.$ac_objext
 
8883
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8884
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8885
_lt_compiler_boilerplate=`cat conftest.err`
 
8886
$RM conftest*
 
8887
 
 
8888
ac_outfile=conftest.$ac_objext
 
8889
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
8890
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
8891
_lt_linker_boilerplate=`cat conftest.err`
 
8892
$RM -r conftest*
 
8893
 
 
8894
 
 
8895
if test -n "$compiler"; then
 
8896
 
 
8897
lt_prog_compiler_no_builtin_flag=
 
8898
 
 
8899
if test "$GCC" = yes; then
 
8900
  case $cc_basename in
 
8901
  nvcc*)
 
8902
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
8903
  *)
 
8904
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
8905
  esac
 
8906
 
 
8907
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8908
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8909
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8910
  $as_echo_n "(cached) " >&6
 
8911
else
 
8912
  lt_cv_prog_compiler_rtti_exceptions=no
 
8913
   ac_outfile=conftest.$ac_objext
 
8914
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8915
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8916
   # Insert the option either (1) after the last *FLAGS variable, or
 
8917
   # (2) before a word containing "conftest.", or (3) at the end.
 
8918
   # Note that $ac_compile itself does not contain backslashes and begins
 
8919
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8920
   # The option is referenced via a variable to avoid confusing sed.
 
8921
   lt_compile=`echo "$ac_compile" | $SED \
 
8922
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8923
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8924
   -e 's:$: $lt_compiler_flag:'`
 
8925
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8926
   (eval "$lt_compile" 2>conftest.err)
 
8927
   ac_status=$?
 
8928
   cat conftest.err >&5
 
8929
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8930
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8931
     # The compiler can only warn and ignore the option if not recognized
 
8932
     # So say no if there are warnings other than the usual output.
 
8933
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8934
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8935
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8936
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8937
     fi
 
8938
   fi
 
8939
   $RM conftest*
 
8940
 
 
8941
fi
 
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8943
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8944
 
 
8945
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8946
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8947
else
 
8948
    :
 
8949
fi
 
8950
 
 
8951
fi
 
8952
 
 
8953
 
 
8954
 
 
8955
 
 
8956
 
 
8957
 
 
8958
  lt_prog_compiler_wl=
 
8959
lt_prog_compiler_pic=
 
8960
lt_prog_compiler_static=
 
8961
 
 
8962
 
 
8963
  if test "$GCC" = yes; then
 
8964
    lt_prog_compiler_wl='-Wl,'
 
8965
    lt_prog_compiler_static='-static'
 
8966
 
 
8967
    case $host_os in
 
8968
      aix*)
 
8969
      # All AIX code is PIC.
 
8970
      if test "$host_cpu" = ia64; then
 
8971
        # AIX 5 now supports IA64 processor
 
8972
        lt_prog_compiler_static='-Bstatic'
 
8973
      fi
 
8974
      ;;
 
8975
 
 
8976
    amigaos*)
 
8977
      case $host_cpu in
 
8978
      powerpc)
 
8979
            # see comment about AmigaOS4 .so support
 
8980
            lt_prog_compiler_pic='-fPIC'
 
8981
        ;;
 
8982
      m68k)
 
8983
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8984
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8985
            # like `-m68040'.
 
8986
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8987
        ;;
 
8988
      esac
 
8989
      ;;
 
8990
 
 
8991
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8992
      # PIC is the default for these OSes.
 
8993
      ;;
 
8994
 
 
8995
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8996
      # This hack is so that the source file can tell whether it is being
 
8997
      # built for inclusion in a dll (and should export symbols for example).
 
8998
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8999
      # (--disable-auto-import) libraries
 
9000
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9001
      ;;
 
9002
 
 
9003
    darwin* | rhapsody*)
 
9004
      # PIC is the default on this platform
 
9005
      # Common symbols not allowed in MH_DYLIB files
 
9006
      lt_prog_compiler_pic='-fno-common'
 
9007
      ;;
 
9008
 
 
9009
    haiku*)
 
9010
      # PIC is the default for Haiku.
 
9011
      # The "-static" flag exists, but is broken.
 
9012
      lt_prog_compiler_static=
 
9013
      ;;
 
9014
 
 
9015
    hpux*)
 
9016
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9017
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9018
      # sets the default TLS model and affects inlining.
 
9019
      case $host_cpu in
 
9020
      hppa*64*)
 
9021
        # +Z the default
 
9022
        ;;
 
9023
      *)
 
9024
        lt_prog_compiler_pic='-fPIC'
 
9025
        ;;
 
9026
      esac
 
9027
      ;;
 
9028
 
 
9029
    interix[3-9]*)
 
9030
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9031
      # Instead, we relocate shared libraries at runtime.
 
9032
      ;;
 
9033
 
 
9034
    msdosdjgpp*)
 
9035
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9036
      # on systems that don't support them.
 
9037
      lt_prog_compiler_can_build_shared=no
 
9038
      enable_shared=no
 
9039
      ;;
 
9040
 
 
9041
    *nto* | *qnx*)
 
9042
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9043
      # it will coredump.
 
9044
      lt_prog_compiler_pic='-fPIC -shared'
 
9045
      ;;
 
9046
 
 
9047
    sysv4*MP*)
 
9048
      if test -d /usr/nec; then
 
9049
        lt_prog_compiler_pic=-Kconform_pic
 
9050
      fi
 
9051
      ;;
 
9052
 
 
9053
    *)
 
9054
      lt_prog_compiler_pic='-fPIC'
 
9055
      ;;
 
9056
    esac
 
9057
 
 
9058
    case $cc_basename in
 
9059
    nvcc*) # Cuda Compiler Driver 2.2
 
9060
      lt_prog_compiler_wl='-Xlinker '
 
9061
      if test -n "$lt_prog_compiler_pic"; then
 
9062
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
9063
      fi
 
9064
      ;;
 
9065
    esac
 
9066
  else
 
9067
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9068
    case $host_os in
 
9069
    aix*)
 
9070
      lt_prog_compiler_wl='-Wl,'
 
9071
      if test "$host_cpu" = ia64; then
 
9072
        # AIX 5 now supports IA64 processor
 
9073
        lt_prog_compiler_static='-Bstatic'
 
9074
      else
 
9075
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9076
      fi
 
9077
      ;;
 
9078
 
 
9079
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9080
      # This hack is so that the source file can tell whether it is being
 
9081
      # built for inclusion in a dll (and should export symbols for example).
 
9082
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9083
      ;;
 
9084
 
 
9085
    hpux9* | hpux10* | hpux11*)
 
9086
      lt_prog_compiler_wl='-Wl,'
 
9087
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9088
      # not for PA HP-UX.
 
9089
      case $host_cpu in
 
9090
      hppa*64*|ia64*)
 
9091
        # +Z the default
 
9092
        ;;
 
9093
      *)
 
9094
        lt_prog_compiler_pic='+Z'
 
9095
        ;;
 
9096
      esac
 
9097
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9098
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9099
      ;;
 
9100
 
 
9101
    irix5* | irix6* | nonstopux*)
 
9102
      lt_prog_compiler_wl='-Wl,'
 
9103
      # PIC (with -KPIC) is the default.
 
9104
      lt_prog_compiler_static='-non_shared'
 
9105
      ;;
 
9106
 
 
9107
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
9108
      case $cc_basename in
 
9109
      # old Intel for x86_64 which still supported -KPIC.
 
9110
      ecc*)
 
9111
        lt_prog_compiler_wl='-Wl,'
 
9112
        lt_prog_compiler_pic='-KPIC'
 
9113
        lt_prog_compiler_static='-static'
 
9114
        ;;
 
9115
      # icc used to be incompatible with GCC.
 
9116
      # ICC 10 doesn't accept -KPIC any more.
 
9117
      icc* | ifort*)
 
9118
        lt_prog_compiler_wl='-Wl,'
 
9119
        lt_prog_compiler_pic='-fPIC'
 
9120
        lt_prog_compiler_static='-static'
 
9121
        ;;
 
9122
      # Lahey Fortran 8.1.
 
9123
      lf95*)
 
9124
        lt_prog_compiler_wl='-Wl,'
 
9125
        lt_prog_compiler_pic='--shared'
 
9126
        lt_prog_compiler_static='--static'
 
9127
        ;;
 
9128
      nagfor*)
 
9129
        # NAG Fortran compiler
 
9130
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9131
        lt_prog_compiler_pic='-PIC'
 
9132
        lt_prog_compiler_static='-Bstatic'
 
9133
        ;;
 
9134
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
9135
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9136
        # which looks to be a dead project)
 
9137
        lt_prog_compiler_wl='-Wl,'
 
9138
        lt_prog_compiler_pic='-fpic'
 
9139
        lt_prog_compiler_static='-Bstatic'
 
9140
        ;;
 
9141
      ccc*)
 
9142
        lt_prog_compiler_wl='-Wl,'
 
9143
        # All Alpha code is PIC.
 
9144
        lt_prog_compiler_static='-non_shared'
 
9145
        ;;
 
9146
      xl* | bgxl* | bgf* | mpixl*)
 
9147
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
9148
        lt_prog_compiler_wl='-Wl,'
 
9149
        lt_prog_compiler_pic='-qpic'
 
9150
        lt_prog_compiler_static='-qstaticlink'
 
9151
        ;;
 
9152
      *)
 
9153
        case `$CC -V 2>&1 | sed 5q` in
 
9154
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
9155
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9156
          lt_prog_compiler_pic='-KPIC'
 
9157
          lt_prog_compiler_static='-Bstatic'
 
9158
          lt_prog_compiler_wl=''
 
9159
          ;;
 
9160
        *Sun\ F* | *Sun*Fortran*)
 
9161
          lt_prog_compiler_pic='-KPIC'
 
9162
          lt_prog_compiler_static='-Bstatic'
 
9163
          lt_prog_compiler_wl='-Qoption ld '
 
9164
          ;;
 
9165
        *Sun\ C*)
 
9166
          # Sun C 5.9
 
9167
          lt_prog_compiler_pic='-KPIC'
 
9168
          lt_prog_compiler_static='-Bstatic'
 
9169
          lt_prog_compiler_wl='-Wl,'
 
9170
          ;;
 
9171
        *Intel*\ [CF]*Compiler*)
 
9172
          lt_prog_compiler_wl='-Wl,'
 
9173
          lt_prog_compiler_pic='-fPIC'
 
9174
          lt_prog_compiler_static='-static'
 
9175
          ;;
 
9176
        *Portland\ Group*)
 
9177
          lt_prog_compiler_wl='-Wl,'
 
9178
          lt_prog_compiler_pic='-fpic'
 
9179
          lt_prog_compiler_static='-Bstatic'
 
9180
          ;;
 
9181
        esac
 
9182
        ;;
 
9183
      esac
 
9184
      ;;
 
9185
 
 
9186
    newsos6)
 
9187
      lt_prog_compiler_pic='-KPIC'
 
9188
      lt_prog_compiler_static='-Bstatic'
 
9189
      ;;
 
9190
 
 
9191
    *nto* | *qnx*)
 
9192
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9193
      # it will coredump.
 
9194
      lt_prog_compiler_pic='-fPIC -shared'
 
9195
      ;;
 
9196
 
 
9197
    osf3* | osf4* | osf5*)
 
9198
      lt_prog_compiler_wl='-Wl,'
 
9199
      # All OSF/1 code is PIC.
 
9200
      lt_prog_compiler_static='-non_shared'
 
9201
      ;;
 
9202
 
 
9203
    rdos*)
 
9204
      lt_prog_compiler_static='-non_shared'
 
9205
      ;;
 
9206
 
 
9207
    solaris*)
 
9208
      lt_prog_compiler_pic='-KPIC'
 
9209
      lt_prog_compiler_static='-Bstatic'
 
9210
      case $cc_basename in
 
9211
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
9212
        lt_prog_compiler_wl='-Qoption ld ';;
 
9213
      *)
 
9214
        lt_prog_compiler_wl='-Wl,';;
 
9215
      esac
 
9216
      ;;
 
9217
 
 
9218
    sunos4*)
 
9219
      lt_prog_compiler_wl='-Qoption ld '
 
9220
      lt_prog_compiler_pic='-PIC'
 
9221
      lt_prog_compiler_static='-Bstatic'
 
9222
      ;;
 
9223
 
 
9224
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9225
      lt_prog_compiler_wl='-Wl,'
 
9226
      lt_prog_compiler_pic='-KPIC'
 
9227
      lt_prog_compiler_static='-Bstatic'
 
9228
      ;;
 
9229
 
 
9230
    sysv4*MP*)
 
9231
      if test -d /usr/nec ;then
 
9232
        lt_prog_compiler_pic='-Kconform_pic'
 
9233
        lt_prog_compiler_static='-Bstatic'
 
9234
      fi
 
9235
      ;;
 
9236
 
 
9237
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9238
      lt_prog_compiler_wl='-Wl,'
 
9239
      lt_prog_compiler_pic='-KPIC'
 
9240
      lt_prog_compiler_static='-Bstatic'
 
9241
      ;;
 
9242
 
 
9243
    unicos*)
 
9244
      lt_prog_compiler_wl='-Wl,'
 
9245
      lt_prog_compiler_can_build_shared=no
 
9246
      ;;
 
9247
 
 
9248
    uts4*)
 
9249
      lt_prog_compiler_pic='-pic'
 
9250
      lt_prog_compiler_static='-Bstatic'
 
9251
      ;;
 
9252
 
 
9253
    *)
 
9254
      lt_prog_compiler_can_build_shared=no
 
9255
      ;;
 
9256
    esac
 
9257
  fi
 
9258
 
 
9259
case $host_os in
 
9260
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9261
  *djgpp*)
 
9262
    lt_prog_compiler_pic=
 
9263
    ;;
 
9264
  *)
 
9265
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9266
    ;;
 
9267
esac
 
9268
 
 
9269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9270
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9271
if ${lt_cv_prog_compiler_pic+:} false; then :
 
9272
  $as_echo_n "(cached) " >&6
 
9273
else
 
9274
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
9275
fi
 
9276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
9277
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
9278
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
9279
 
 
9280
#
 
9281
# Check to make sure the PIC flag actually works.
 
9282
#
 
9283
if test -n "$lt_prog_compiler_pic"; then
 
9284
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9285
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9286
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
9287
  $as_echo_n "(cached) " >&6
 
9288
else
 
9289
  lt_cv_prog_compiler_pic_works=no
 
9290
   ac_outfile=conftest.$ac_objext
 
9291
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9292
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9293
   # Insert the option either (1) after the last *FLAGS variable, or
 
9294
   # (2) before a word containing "conftest.", or (3) at the end.
 
9295
   # Note that $ac_compile itself does not contain backslashes and begins
 
9296
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9297
   # The option is referenced via a variable to avoid confusing sed.
 
9298
   lt_compile=`echo "$ac_compile" | $SED \
 
9299
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9300
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9301
   -e 's:$: $lt_compiler_flag:'`
 
9302
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9303
   (eval "$lt_compile" 2>conftest.err)
 
9304
   ac_status=$?
 
9305
   cat conftest.err >&5
 
9306
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9307
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9308
     # The compiler can only warn and ignore the option if not recognized
 
9309
     # So say no if there are warnings other than the usual output.
 
9310
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
9311
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9312
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9313
       lt_cv_prog_compiler_pic_works=yes
 
9314
     fi
 
9315
   fi
 
9316
   $RM conftest*
 
9317
 
 
9318
fi
 
9319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9320
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9321
 
 
9322
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9323
    case $lt_prog_compiler_pic in
 
9324
     "" | " "*) ;;
 
9325
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9326
     esac
 
9327
else
 
9328
    lt_prog_compiler_pic=
 
9329
     lt_prog_compiler_can_build_shared=no
 
9330
fi
 
9331
 
 
9332
fi
 
9333
 
 
9334
 
 
9335
 
 
9336
 
 
9337
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
#
 
9345
# Check to make sure the static flag actually works.
 
9346
#
 
9347
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9349
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9350
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
9351
  $as_echo_n "(cached) " >&6
 
9352
else
 
9353
  lt_cv_prog_compiler_static_works=no
 
9354
   save_LDFLAGS="$LDFLAGS"
 
9355
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9356
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9357
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9358
     # The linker can only warn and ignore the option if not recognized
 
9359
     # So say no if there are warnings
 
9360
     if test -s conftest.err; then
 
9361
       # Append any errors to the config.log.
 
9362
       cat conftest.err 1>&5
 
9363
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9364
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9365
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9366
         lt_cv_prog_compiler_static_works=yes
 
9367
       fi
 
9368
     else
 
9369
       lt_cv_prog_compiler_static_works=yes
 
9370
     fi
 
9371
   fi
 
9372
   $RM -r conftest*
 
9373
   LDFLAGS="$save_LDFLAGS"
 
9374
 
 
9375
fi
 
9376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9377
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9378
 
 
9379
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9380
    :
 
9381
else
 
9382
    lt_prog_compiler_static=
 
9383
fi
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9392
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9393
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9394
  $as_echo_n "(cached) " >&6
 
9395
else
 
9396
  lt_cv_prog_compiler_c_o=no
 
9397
   $RM -r conftest 2>/dev/null
 
9398
   mkdir conftest
 
9399
   cd conftest
 
9400
   mkdir out
 
9401
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9402
 
 
9403
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9404
   # Insert the option either (1) after the last *FLAGS variable, or
 
9405
   # (2) before a word containing "conftest.", or (3) at the end.
 
9406
   # Note that $ac_compile itself does not contain backslashes and begins
 
9407
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9408
   lt_compile=`echo "$ac_compile" | $SED \
 
9409
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9410
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9411
   -e 's:$: $lt_compiler_flag:'`
 
9412
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9413
   (eval "$lt_compile" 2>out/conftest.err)
 
9414
   ac_status=$?
 
9415
   cat out/conftest.err >&5
 
9416
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9417
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9418
   then
 
9419
     # The compiler can only warn and ignore the option if not recognized
 
9420
     # So say no if there are warnings
 
9421
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9422
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9423
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9424
       lt_cv_prog_compiler_c_o=yes
 
9425
     fi
 
9426
   fi
 
9427
   chmod u+w . 2>&5
 
9428
   $RM conftest*
 
9429
   # SGI C++ compiler will create directory out/ii_files/ for
 
9430
   # template instantiation
 
9431
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9432
   $RM out/* && rmdir out
 
9433
   cd ..
 
9434
   $RM -r conftest
 
9435
   $RM conftest*
 
9436
 
 
9437
fi
 
9438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9439
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9447
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9448
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
9449
  $as_echo_n "(cached) " >&6
 
9450
else
 
9451
  lt_cv_prog_compiler_c_o=no
 
9452
   $RM -r conftest 2>/dev/null
 
9453
   mkdir conftest
 
9454
   cd conftest
 
9455
   mkdir out
 
9456
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9457
 
 
9458
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9459
   # Insert the option either (1) after the last *FLAGS variable, or
 
9460
   # (2) before a word containing "conftest.", or (3) at the end.
 
9461
   # Note that $ac_compile itself does not contain backslashes and begins
 
9462
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9463
   lt_compile=`echo "$ac_compile" | $SED \
 
9464
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9465
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9466
   -e 's:$: $lt_compiler_flag:'`
 
9467
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
9468
   (eval "$lt_compile" 2>out/conftest.err)
 
9469
   ac_status=$?
 
9470
   cat out/conftest.err >&5
 
9471
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9472
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9473
   then
 
9474
     # The compiler can only warn and ignore the option if not recognized
 
9475
     # So say no if there are warnings
 
9476
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
9477
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9478
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9479
       lt_cv_prog_compiler_c_o=yes
 
9480
     fi
 
9481
   fi
 
9482
   chmod u+w . 2>&5
 
9483
   $RM conftest*
 
9484
   # SGI C++ compiler will create directory out/ii_files/ for
 
9485
   # template instantiation
 
9486
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9487
   $RM out/* && rmdir out
 
9488
   cd ..
 
9489
   $RM -r conftest
 
9490
   $RM conftest*
 
9491
 
 
9492
fi
 
9493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9494
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9495
 
 
9496
 
 
9497
 
 
9498
 
 
9499
hard_links="nottested"
 
9500
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9501
  # do not overwrite the value of need_locks provided by the user
 
9502
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9503
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9504
  hard_links=yes
 
9505
  $RM conftest*
 
9506
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9507
  touch conftest.a
 
9508
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9509
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9510
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9511
$as_echo "$hard_links" >&6; }
 
9512
  if test "$hard_links" = no; then
 
9513
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9514
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9515
    need_locks=warn
 
9516
  fi
 
9517
else
 
9518
  need_locks=no
 
9519
fi
 
9520
 
 
9521
 
 
9522
 
 
9523
 
 
9524
 
 
9525
 
 
9526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9527
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9528
 
 
9529
  runpath_var=
 
9530
  allow_undefined_flag=
 
9531
  always_export_symbols=no
 
9532
  archive_cmds=
 
9533
  archive_expsym_cmds=
 
9534
  compiler_needs_object=no
 
9535
  enable_shared_with_static_runtimes=no
 
9536
  export_dynamic_flag_spec=
 
9537
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9538
  hardcode_automatic=no
 
9539
  hardcode_direct=no
 
9540
  hardcode_direct_absolute=no
 
9541
  hardcode_libdir_flag_spec=
 
9542
  hardcode_libdir_separator=
 
9543
  hardcode_minus_L=no
 
9544
  hardcode_shlibpath_var=unsupported
 
9545
  inherit_rpath=no
 
9546
  link_all_deplibs=unknown
 
9547
  module_cmds=
 
9548
  module_expsym_cmds=
 
9549
  old_archive_from_new_cmds=
 
9550
  old_archive_from_expsyms_cmds=
 
9551
  thread_safe_flag_spec=
 
9552
  whole_archive_flag_spec=
 
9553
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9554
  # included in the symbol list
 
9555
  include_expsyms=
 
9556
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9557
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9558
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9559
  # as well as any symbol that contains `d'.
 
9560
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9561
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9562
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9563
  # the symbol is explicitly referenced.  Since portable code cannot
 
9564
  # rely on this symbol name, it's probably fine to never include it in
 
9565
  # preloaded symbol tables.
 
9566
  # Exclude shared library initialization/finalization symbols.
 
9567
  extract_expsyms_cmds=
 
9568
 
 
9569
  case $host_os in
 
9570
  cygwin* | mingw* | pw32* | cegcc*)
 
9571
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9572
    # When not using gcc, we currently assume that we are using
 
9573
    # Microsoft Visual C++.
 
9574
    if test "$GCC" != yes; then
 
9575
      with_gnu_ld=no
 
9576
    fi
 
9577
    ;;
 
9578
  interix*)
 
9579
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
9580
    with_gnu_ld=yes
 
9581
    ;;
 
9582
  openbsd*)
 
9583
    with_gnu_ld=no
 
9584
    ;;
 
9585
  linux* | k*bsd*-gnu | gnu*)
 
9586
    link_all_deplibs=no
 
9587
    ;;
 
9588
  esac
 
9589
 
 
9590
  ld_shlibs=yes
 
9591
 
 
9592
  # On some targets, GNU ld is compatible enough with the native linker
 
9593
  # that we're better off using the native interface for both.
 
9594
  lt_use_gnu_ld_interface=no
 
9595
  if test "$with_gnu_ld" = yes; then
 
9596
    case $host_os in
 
9597
      aix*)
 
9598
        # The AIX port of GNU ld has always aspired to compatibility
 
9599
        # with the native linker.  However, as the warning in the GNU ld
 
9600
        # block says, versions before 2.19.5* couldn't really create working
 
9601
        # shared libraries, regardless of the interface used.
 
9602
        case `$LD -v 2>&1` in
 
9603
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
9604
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
9605
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
9606
          *)
 
9607
            lt_use_gnu_ld_interface=yes
 
9608
            ;;
 
9609
        esac
 
9610
        ;;
 
9611
      *)
 
9612
        lt_use_gnu_ld_interface=yes
 
9613
        ;;
 
9614
    esac
 
9615
  fi
 
9616
 
 
9617
  if test "$lt_use_gnu_ld_interface" = yes; then
 
9618
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9619
    wlarc='${wl}'
 
9620
 
 
9621
    # Set some defaults for GNU ld with shared library support. These
 
9622
    # are reset later if shared libraries are not supported. Putting them
 
9623
    # here allows them to be overridden if necessary.
 
9624
    runpath_var=LD_RUN_PATH
 
9625
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9626
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
9627
    # ancient GNU ld didn't support --whole-archive et. al.
 
9628
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9629
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9630
    else
 
9631
      whole_archive_flag_spec=
 
9632
    fi
 
9633
    supports_anon_versioning=no
 
9634
    case `$LD -v 2>&1` in
 
9635
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
9636
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9637
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9638
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9639
      *\ 2.11.*) ;; # other 2.11 versions
 
9640
      *) supports_anon_versioning=yes ;;
 
9641
    esac
 
9642
 
 
9643
    # See if GNU ld supports shared libraries.
 
9644
    case $host_os in
 
9645
    aix[3-9]*)
 
9646
      # On AIX/PPC, the GNU linker is very broken
 
9647
      if test "$host_cpu" != ia64; then
 
9648
        ld_shlibs=no
 
9649
        cat <<_LT_EOF 1>&2
 
9650
 
 
9651
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
9652
*** to be unable to reliably create shared libraries on AIX.
 
9653
*** Therefore, libtool is disabling shared libraries support.  If you
 
9654
*** really care for shared libraries, you may want to install binutils
 
9655
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
9656
*** You will then need to restart the configuration process.
 
9657
 
 
9658
_LT_EOF
 
9659
      fi
 
9660
      ;;
 
9661
 
 
9662
    amigaos*)
 
9663
      case $host_cpu in
 
9664
      powerpc)
 
9665
            # see comment about AmigaOS4 .so support
 
9666
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9667
            archive_expsym_cmds=''
 
9668
        ;;
 
9669
      m68k)
 
9670
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9671
            hardcode_libdir_flag_spec='-L$libdir'
 
9672
            hardcode_minus_L=yes
 
9673
        ;;
 
9674
      esac
 
9675
      ;;
 
9676
 
 
9677
    beos*)
 
9678
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9679
        allow_undefined_flag=unsupported
 
9680
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9681
        # support --undefined.  This deserves some investigation.  FIXME
 
9682
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9683
      else
 
9684
        ld_shlibs=no
 
9685
      fi
 
9686
      ;;
 
9687
 
 
9688
    cygwin* | mingw* | pw32* | cegcc*)
 
9689
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9690
      # as there is no search path for DLLs.
 
9691
      hardcode_libdir_flag_spec='-L$libdir'
 
9692
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
9693
      allow_undefined_flag=unsupported
 
9694
      always_export_symbols=no
 
9695
      enable_shared_with_static_runtimes=yes
 
9696
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
9697
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
9698
 
 
9699
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9700
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9701
        # If the export-symbols file already is a .def file (1st line
 
9702
        # is EXPORTS), use it as is; otherwise, prepend...
 
9703
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9704
          cp $export_symbols $output_objdir/$soname.def;
 
9705
        else
 
9706
          echo EXPORTS > $output_objdir/$soname.def;
 
9707
          cat $export_symbols >> $output_objdir/$soname.def;
 
9708
        fi~
 
9709
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9710
      else
 
9711
        ld_shlibs=no
 
9712
      fi
 
9713
      ;;
 
9714
 
 
9715
    haiku*)
 
9716
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9717
      link_all_deplibs=yes
 
9718
      ;;
 
9719
 
 
9720
    interix[3-9]*)
 
9721
      hardcode_direct=no
 
9722
      hardcode_shlibpath_var=no
 
9723
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9724
      export_dynamic_flag_spec='${wl}-E'
 
9725
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
9726
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
9727
      # default) and relocated if they conflict, which is a slow very memory
 
9728
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
9729
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
9730
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
9731
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9732
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
9733
      ;;
 
9734
 
 
9735
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
9736
      tmp_diet=no
 
9737
      if test "$host_os" = linux-dietlibc; then
 
9738
        case $cc_basename in
 
9739
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9740
        esac
 
9741
      fi
 
9742
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9743
         && test "$tmp_diet" = no
 
9744
      then
 
9745
        tmp_addflag=' $pic_flag'
 
9746
        tmp_sharedflag='-shared'
 
9747
        case $cc_basename,$host_cpu in
 
9748
        pgcc*)                          # Portland Group C compiler
 
9749
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9750
          tmp_addflag=' $pic_flag'
 
9751
          ;;
 
9752
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
9753
                                        # Portland Group f77 and f90 compilers
 
9754
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9755
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
9756
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9757
          tmp_addflag=' -i_dynamic' ;;
 
9758
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
9759
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
9760
        ifc* | ifort*)                  # Intel Fortran compiler
 
9761
          tmp_addflag=' -nofor_main' ;;
 
9762
        lf95*)                          # Lahey Fortran 8.1
 
9763
          whole_archive_flag_spec=
 
9764
          tmp_sharedflag='--shared' ;;
 
9765
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
9766
          tmp_sharedflag='-qmkshrobj'
 
9767
          tmp_addflag= ;;
 
9768
        nvcc*)  # Cuda Compiler Driver 2.2
 
9769
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9770
          compiler_needs_object=yes
 
9771
          ;;
 
9772
        esac
 
9773
        case `$CC -V 2>&1 | sed 5q` in
 
9774
        *Sun\ C*)                       # Sun C 5.9
 
9775
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
9776
          compiler_needs_object=yes
 
9777
          tmp_sharedflag='-G' ;;
 
9778
        *Sun\ F*)                       # Sun Fortran 8.3
 
9779
          tmp_sharedflag='-G' ;;
 
9780
        esac
 
9781
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9782
 
 
9783
        if test "x$supports_anon_versioning" = xyes; then
 
9784
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9785
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9786
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9787
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9788
        fi
 
9789
 
 
9790
        case $cc_basename in
 
9791
        xlf* | bgf* | bgxlf* | mpixlf*)
 
9792
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9793
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9794
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9795
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
9796
          if test "x$supports_anon_versioning" = xyes; then
 
9797
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9798
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9799
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9800
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9801
          fi
 
9802
          ;;
 
9803
        esac
 
9804
      else
 
9805
        ld_shlibs=no
 
9806
      fi
 
9807
      ;;
 
9808
 
 
9809
    netbsd* | netbsdelf*-gnu)
 
9810
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9811
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9812
        wlarc=
 
9813
      else
 
9814
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9815
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9816
      fi
 
9817
      ;;
 
9818
 
 
9819
    solaris*)
 
9820
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9821
        ld_shlibs=no
 
9822
        cat <<_LT_EOF 1>&2
 
9823
 
 
9824
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9825
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9826
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9827
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9828
*** your PATH or compiler configuration so that the native linker is
 
9829
*** used, and then restart.
 
9830
 
 
9831
_LT_EOF
 
9832
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9833
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9834
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9835
      else
 
9836
        ld_shlibs=no
 
9837
      fi
 
9838
      ;;
 
9839
 
 
9840
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
9841
      case `$LD -v 2>&1` in
 
9842
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
9843
        ld_shlibs=no
 
9844
        cat <<_LT_EOF 1>&2
 
9845
 
 
9846
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
9847
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
9848
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9849
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
9850
*** your PATH or compiler configuration so that the native linker is
 
9851
*** used, and then restart.
 
9852
 
 
9853
_LT_EOF
 
9854
        ;;
 
9855
        *)
 
9856
          # For security reasons, it is highly recommended that you always
 
9857
          # use absolute paths for naming shared libraries, and exclude the
 
9858
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9859
          # requires that you compile everything twice, which is a pain.
 
9860
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9861
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9862
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9863
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9864
          else
 
9865
            ld_shlibs=no
 
9866
          fi
 
9867
        ;;
 
9868
      esac
 
9869
      ;;
 
9870
 
 
9871
    sunos4*)
 
9872
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9873
      wlarc=
 
9874
      hardcode_direct=yes
 
9875
      hardcode_shlibpath_var=no
 
9876
      ;;
 
9877
 
 
9878
    *)
 
9879
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9880
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9881
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9882
      else
 
9883
        ld_shlibs=no
 
9884
      fi
 
9885
      ;;
 
9886
    esac
 
9887
 
 
9888
    if test "$ld_shlibs" = no; then
 
9889
      runpath_var=
 
9890
      hardcode_libdir_flag_spec=
 
9891
      export_dynamic_flag_spec=
 
9892
      whole_archive_flag_spec=
 
9893
    fi
 
9894
  else
 
9895
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9896
    case $host_os in
 
9897
    aix3*)
 
9898
      allow_undefined_flag=unsupported
 
9899
      always_export_symbols=yes
 
9900
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
9901
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9902
      # are no directories specified by -L.
 
9903
      hardcode_minus_L=yes
 
9904
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
9905
        # Neither direct hardcoding nor static linking is supported with a
 
9906
        # broken collect2.
 
9907
        hardcode_direct=unsupported
 
9908
      fi
 
9909
      ;;
 
9910
 
 
9911
    aix[4-9]*)
 
9912
      if test "$host_cpu" = ia64; then
 
9913
        # On IA64, the linker does run time linking by default, so we don't
 
9914
        # have to do anything special.
 
9915
        aix_use_runtimelinking=no
 
9916
        exp_sym_flag='-Bexport'
 
9917
        no_entry_flag=""
 
9918
      else
 
9919
        # If we're using GNU nm, then we don't want the "-C" option.
 
9920
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9921
        # Also, AIX nm treats weak defined symbols like other global
 
9922
        # defined symbols, whereas GNU nm marks them as "W".
 
9923
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9924
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9925
        else
 
9926
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9927
        fi
 
9928
        aix_use_runtimelinking=no
 
9929
 
 
9930
        # Test if we are trying to use run time linking or normal
 
9931
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9932
        # need to do runtime linking.
 
9933
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9934
          for ld_flag in $LDFLAGS; do
 
9935
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9936
            aix_use_runtimelinking=yes
 
9937
            break
 
9938
          fi
 
9939
          done
 
9940
          ;;
 
9941
        esac
 
9942
 
 
9943
        exp_sym_flag='-bexport'
 
9944
        no_entry_flag='-bnoentry'
 
9945
      fi
 
9946
 
 
9947
      # When large executables or shared objects are built, AIX ld can
 
9948
      # have problems creating the table of contents.  If linking a library
 
9949
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9950
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9951
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9952
 
 
9953
      archive_cmds=''
 
9954
      hardcode_direct=yes
 
9955
      hardcode_direct_absolute=yes
 
9956
      hardcode_libdir_separator=':'
 
9957
      link_all_deplibs=yes
 
9958
      file_list_spec='${wl}-f,'
 
9959
 
 
9960
      if test "$GCC" = yes; then
 
9961
        case $host_os in aix4.[012]|aix4.[012].*)
 
9962
        # We only want to do this on AIX 4.2 and lower, the check
 
9963
        # below for broken collect2 doesn't work under 4.3+
 
9964
          collect2name=`${CC} -print-prog-name=collect2`
 
9965
          if test -f "$collect2name" &&
 
9966
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9967
          then
 
9968
          # We have reworked collect2
 
9969
          :
 
9970
          else
 
9971
          # We have old collect2
 
9972
          hardcode_direct=unsupported
 
9973
          # It fails to find uninstalled libraries when the uninstalled
 
9974
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9975
          # to unsupported forces relinking
 
9976
          hardcode_minus_L=yes
 
9977
          hardcode_libdir_flag_spec='-L$libdir'
 
9978
          hardcode_libdir_separator=
 
9979
          fi
 
9980
          ;;
 
9981
        esac
 
9982
        shared_flag='-shared'
 
9983
        if test "$aix_use_runtimelinking" = yes; then
 
9984
          shared_flag="$shared_flag "'${wl}-G'
 
9985
        fi
 
9986
        link_all_deplibs=no
 
9987
      else
 
9988
        # not using gcc
 
9989
        if test "$host_cpu" = ia64; then
 
9990
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9991
        # chokes on -Wl,-G. The following line is correct:
 
9992
          shared_flag='-G'
 
9993
        else
 
9994
          if test "$aix_use_runtimelinking" = yes; then
 
9995
            shared_flag='${wl}-G'
 
9996
          else
 
9997
            shared_flag='${wl}-bM:SRE'
 
9998
          fi
 
9999
        fi
 
10000
      fi
 
10001
 
 
10002
      export_dynamic_flag_spec='${wl}-bexpall'
 
10003
      # It seems that -bexpall does not export symbols beginning with
 
10004
      # underscore (_), so it is better to generate a list of symbols to export.
 
10005
      always_export_symbols=yes
 
10006
      if test "$aix_use_runtimelinking" = yes; then
 
10007
        # Warning - without using the other runtime loading flags (-brtl),
 
10008
        # -berok will link without error, but may produce a broken library.
 
10009
        allow_undefined_flag='-berok'
 
10010
        # Determine the default libpath from the value encoded in an
 
10011
        # empty executable.
 
10012
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10013
  aix_libpath=$lt_cv_aix_libpath
 
10014
else
 
10015
  if ${lt_cv_aix_libpath_+:} false; then :
 
10016
  $as_echo_n "(cached) " >&6
 
10017
else
 
10018
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10019
/* end confdefs.h.  */
 
10020
 
 
10021
int
 
10022
main ()
 
10023
{
 
10024
 
 
10025
  ;
 
10026
  return 0;
 
10027
}
 
10028
_ACEOF
 
10029
if ac_fn_c_try_link "$LINENO"; then :
 
10030
 
 
10031
  lt_aix_libpath_sed='
 
10032
      /Import File Strings/,/^$/ {
 
10033
          /^0/ {
 
10034
              s/^0  *\([^ ]*\) *$/\1/
 
10035
              p
 
10036
          }
 
10037
      }'
 
10038
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10039
  # Check for a 64-bit object if we didn't find anything.
 
10040
  if test -z "$lt_cv_aix_libpath_"; then
 
10041
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10042
  fi
 
10043
fi
 
10044
rm -f core conftest.err conftest.$ac_objext \
 
10045
    conftest$ac_exeext conftest.$ac_ext
 
10046
  if test -z "$lt_cv_aix_libpath_"; then
 
10047
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10048
  fi
 
10049
 
 
10050
fi
 
10051
 
 
10052
  aix_libpath=$lt_cv_aix_libpath_
 
10053
fi
 
10054
 
 
10055
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10056
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10057
      else
 
10058
        if test "$host_cpu" = ia64; then
 
10059
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10060
          allow_undefined_flag="-z nodefs"
 
10061
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10062
        else
 
10063
         # Determine the default libpath from the value encoded in an
 
10064
         # empty executable.
 
10065
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10066
  aix_libpath=$lt_cv_aix_libpath
 
10067
else
 
10068
  if ${lt_cv_aix_libpath_+:} false; then :
 
10069
  $as_echo_n "(cached) " >&6
 
10070
else
 
10071
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10072
/* end confdefs.h.  */
 
10073
 
 
10074
int
 
10075
main ()
 
10076
{
 
10077
 
 
10078
  ;
 
10079
  return 0;
 
10080
}
 
10081
_ACEOF
 
10082
if ac_fn_c_try_link "$LINENO"; then :
 
10083
 
 
10084
  lt_aix_libpath_sed='
 
10085
      /Import File Strings/,/^$/ {
 
10086
          /^0/ {
 
10087
              s/^0  *\([^ ]*\) *$/\1/
 
10088
              p
 
10089
          }
 
10090
      }'
 
10091
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10092
  # Check for a 64-bit object if we didn't find anything.
 
10093
  if test -z "$lt_cv_aix_libpath_"; then
 
10094
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10095
  fi
 
10096
fi
 
10097
rm -f core conftest.err conftest.$ac_objext \
 
10098
    conftest$ac_exeext conftest.$ac_ext
 
10099
  if test -z "$lt_cv_aix_libpath_"; then
 
10100
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10101
  fi
 
10102
 
 
10103
fi
 
10104
 
 
10105
  aix_libpath=$lt_cv_aix_libpath_
 
10106
fi
 
10107
 
 
10108
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10109
          # Warning - without using the other run time loading flags,
 
10110
          # -berok will link without error, but may produce a broken library.
 
10111
          no_undefined_flag=' ${wl}-bernotok'
 
10112
          allow_undefined_flag=' ${wl}-berok'
 
10113
          if test "$with_gnu_ld" = yes; then
 
10114
            # We only use this code for GNU lds that support --whole-archive.
 
10115
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10116
          else
 
10117
            # Exported symbols can be pulled into shared objects from archives
 
10118
            whole_archive_flag_spec='$convenience'
 
10119
          fi
 
10120
          archive_cmds_need_lc=yes
 
10121
          # This is similar to how AIX traditionally builds its shared libraries.
 
10122
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10123
        fi
 
10124
      fi
 
10125
      ;;
 
10126
 
 
10127
    amigaos*)
 
10128
      case $host_cpu in
 
10129
      powerpc)
 
10130
            # see comment about AmigaOS4 .so support
 
10131
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10132
            archive_expsym_cmds=''
 
10133
        ;;
 
10134
      m68k)
 
10135
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
10136
            hardcode_libdir_flag_spec='-L$libdir'
 
10137
            hardcode_minus_L=yes
 
10138
        ;;
 
10139
      esac
 
10140
      ;;
 
10141
 
 
10142
    bsdi[45]*)
 
10143
      export_dynamic_flag_spec=-rdynamic
 
10144
      ;;
 
10145
 
 
10146
    cygwin* | mingw* | pw32* | cegcc*)
 
10147
      # When not using gcc, we currently assume that we are using
 
10148
      # Microsoft Visual C++.
 
10149
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10150
      # no search path for DLLs.
 
10151
      case $cc_basename in
 
10152
      cl*)
 
10153
        # Native MSVC
 
10154
        hardcode_libdir_flag_spec=' '
 
10155
        allow_undefined_flag=unsupported
 
10156
        always_export_symbols=yes
 
10157
        file_list_spec='@'
 
10158
        # Tell ltmain to make .lib files, not .a files.
 
10159
        libext=lib
 
10160
        # Tell ltmain to make .dll files, not .so files.
 
10161
        shrext_cmds=".dll"
 
10162
        # FIXME: Setting linknames here is a bad hack.
 
10163
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
10164
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10165
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
10166
          else
 
10167
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
10168
          fi~
 
10169
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
10170
          linknames='
 
10171
        # The linker will not automatically build a static lib if we build a DLL.
 
10172
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
10173
        enable_shared_with_static_runtimes=yes
 
10174
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
10175
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10176
        # Don't use ranlib
 
10177
        old_postinstall_cmds='chmod 644 $oldlib'
 
10178
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
10179
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
10180
          case $lt_outputfile in
 
10181
            *.exe|*.EXE) ;;
 
10182
            *)
 
10183
              lt_outputfile="$lt_outputfile.exe"
 
10184
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
10185
              ;;
 
10186
          esac~
 
10187
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
10188
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
10189
            $RM "$lt_outputfile.manifest";
 
10190
          fi'
 
10191
        ;;
 
10192
      *)
 
10193
        # Assume MSVC wrapper
 
10194
        hardcode_libdir_flag_spec=' '
 
10195
        allow_undefined_flag=unsupported
 
10196
        # Tell ltmain to make .lib files, not .a files.
 
10197
        libext=lib
 
10198
        # Tell ltmain to make .dll files, not .so files.
 
10199
        shrext_cmds=".dll"
 
10200
        # FIXME: Setting linknames here is a bad hack.
 
10201
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
10202
        # The linker will automatically build a .lib file if we build a DLL.
 
10203
        old_archive_from_new_cmds='true'
 
10204
        # FIXME: Should let the user specify the lib program.
 
10205
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10206
        enable_shared_with_static_runtimes=yes
 
10207
        ;;
 
10208
      esac
 
10209
      ;;
 
10210
 
 
10211
    darwin* | rhapsody*)
 
10212
 
 
10213
 
 
10214
  archive_cmds_need_lc=no
 
10215
  hardcode_direct=no
 
10216
  hardcode_automatic=yes
 
10217
  hardcode_shlibpath_var=unsupported
 
10218
  if test "$lt_cv_ld_force_load" = "yes"; then
 
10219
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
10220
 
 
10221
  else
 
10222
    whole_archive_flag_spec=''
 
10223
  fi
 
10224
  link_all_deplibs=yes
 
10225
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10226
  case $cc_basename in
 
10227
     ifort*) _lt_dar_can_shared=yes ;;
 
10228
     *) _lt_dar_can_shared=$GCC ;;
 
10229
  esac
 
10230
  if test "$_lt_dar_can_shared" = "yes"; then
 
10231
    output_verbose_link_cmd=func_echo_all
 
10232
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10233
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10234
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
10235
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
10236
 
 
10237
  else
 
10238
  ld_shlibs=no
 
10239
  fi
 
10240
 
 
10241
      ;;
 
10242
 
 
10243
    dgux*)
 
10244
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10245
      hardcode_libdir_flag_spec='-L$libdir'
 
10246
      hardcode_shlibpath_var=no
 
10247
      ;;
 
10248
 
 
10249
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10250
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10251
    # does not break anything, and helps significantly (at the cost of a little
 
10252
    # extra space).
 
10253
    freebsd2.2*)
 
10254
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10255
      hardcode_libdir_flag_spec='-R$libdir'
 
10256
      hardcode_direct=yes
 
10257
      hardcode_shlibpath_var=no
 
10258
      ;;
 
10259
 
 
10260
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10261
    freebsd2.*)
 
10262
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10263
      hardcode_direct=yes
 
10264
      hardcode_minus_L=yes
 
10265
      hardcode_shlibpath_var=no
 
10266
      ;;
 
10267
 
 
10268
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10269
    freebsd* | dragonfly*)
 
10270
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10271
      hardcode_libdir_flag_spec='-R$libdir'
 
10272
      hardcode_direct=yes
 
10273
      hardcode_shlibpath_var=no
 
10274
      ;;
 
10275
 
 
10276
    hpux9*)
 
10277
      if test "$GCC" = yes; then
 
10278
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10279
      else
 
10280
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10281
      fi
 
10282
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10283
      hardcode_libdir_separator=:
 
10284
      hardcode_direct=yes
 
10285
 
 
10286
      # hardcode_minus_L: Not really in the search PATH,
 
10287
      # but as the default location of the library.
 
10288
      hardcode_minus_L=yes
 
10289
      export_dynamic_flag_spec='${wl}-E'
 
10290
      ;;
 
10291
 
 
10292
    hpux10*)
 
10293
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10294
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10295
      else
 
10296
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10297
      fi
 
10298
      if test "$with_gnu_ld" = no; then
 
10299
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10300
        hardcode_libdir_separator=:
 
10301
        hardcode_direct=yes
 
10302
        hardcode_direct_absolute=yes
 
10303
        export_dynamic_flag_spec='${wl}-E'
 
10304
        # hardcode_minus_L: Not really in the search PATH,
 
10305
        # but as the default location of the library.
 
10306
        hardcode_minus_L=yes
 
10307
      fi
 
10308
      ;;
 
10309
 
 
10310
    hpux11*)
 
10311
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
10312
        case $host_cpu in
 
10313
        hppa*64*)
 
10314
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10315
          ;;
 
10316
        ia64*)
 
10317
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10318
          ;;
 
10319
        *)
 
10320
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10321
          ;;
 
10322
        esac
 
10323
      else
 
10324
        case $host_cpu in
 
10325
        hppa*64*)
 
10326
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10327
          ;;
 
10328
        ia64*)
 
10329
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10330
          ;;
 
10331
        *)
 
10332
 
 
10333
          # Older versions of the 11.00 compiler do not understand -b yet
 
10334
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
10335
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
10336
$as_echo_n "checking if $CC understands -b... " >&6; }
 
10337
if ${lt_cv_prog_compiler__b+:} false; then :
 
10338
  $as_echo_n "(cached) " >&6
 
10339
else
 
10340
  lt_cv_prog_compiler__b=no
 
10341
   save_LDFLAGS="$LDFLAGS"
 
10342
   LDFLAGS="$LDFLAGS -b"
 
10343
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
10344
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
10345
     # The linker can only warn and ignore the option if not recognized
 
10346
     # So say no if there are warnings
 
10347
     if test -s conftest.err; then
 
10348
       # Append any errors to the config.log.
 
10349
       cat conftest.err 1>&5
 
10350
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
10351
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
10352
       if diff conftest.exp conftest.er2 >/dev/null; then
 
10353
         lt_cv_prog_compiler__b=yes
 
10354
       fi
 
10355
     else
 
10356
       lt_cv_prog_compiler__b=yes
 
10357
     fi
 
10358
   fi
 
10359
   $RM -r conftest*
 
10360
   LDFLAGS="$save_LDFLAGS"
 
10361
 
 
10362
fi
 
10363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
10364
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
10365
 
 
10366
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
10367
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10368
else
 
10369
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10370
fi
 
10371
 
 
10372
          ;;
 
10373
        esac
 
10374
      fi
 
10375
      if test "$with_gnu_ld" = no; then
 
10376
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10377
        hardcode_libdir_separator=:
 
10378
 
 
10379
        case $host_cpu in
 
10380
        hppa*64*|ia64*)
 
10381
          hardcode_direct=no
 
10382
          hardcode_shlibpath_var=no
 
10383
          ;;
 
10384
        *)
 
10385
          hardcode_direct=yes
 
10386
          hardcode_direct_absolute=yes
 
10387
          export_dynamic_flag_spec='${wl}-E'
 
10388
 
 
10389
          # hardcode_minus_L: Not really in the search PATH,
 
10390
          # but as the default location of the library.
 
10391
          hardcode_minus_L=yes
 
10392
          ;;
 
10393
        esac
 
10394
      fi
 
10395
      ;;
 
10396
 
 
10397
    irix5* | irix6* | nonstopux*)
 
10398
      if test "$GCC" = yes; then
 
10399
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10400
        # Try to use the -exported_symbol ld option, if it does not
 
10401
        # work, assume that -exports_file does not work either and
 
10402
        # implicitly export all symbols.
 
10403
        # This should be the same for all languages, so no per-tag cache variable.
 
10404
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
10405
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
10406
if ${lt_cv_irix_exported_symbol+:} false; then :
 
10407
  $as_echo_n "(cached) " >&6
 
10408
else
 
10409
  save_LDFLAGS="$LDFLAGS"
 
10410
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10411
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10412
/* end confdefs.h.  */
 
10413
int foo (void) { return 0; }
 
10414
_ACEOF
 
10415
if ac_fn_c_try_link "$LINENO"; then :
 
10416
  lt_cv_irix_exported_symbol=yes
 
10417
else
 
10418
  lt_cv_irix_exported_symbol=no
 
10419
fi
 
10420
rm -f core conftest.err conftest.$ac_objext \
 
10421
    conftest$ac_exeext conftest.$ac_ext
 
10422
           LDFLAGS="$save_LDFLAGS"
 
10423
fi
 
10424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
10425
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
10426
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
10427
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10428
        fi
 
10429
      else
 
10430
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10431
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10432
      fi
 
10433
      archive_cmds_need_lc='no'
 
10434
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10435
      hardcode_libdir_separator=:
 
10436
      inherit_rpath=yes
 
10437
      link_all_deplibs=yes
 
10438
      ;;
 
10439
 
 
10440
    netbsd* | netbsdelf*-gnu)
 
10441
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10442
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10443
      else
 
10444
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10445
      fi
 
10446
      hardcode_libdir_flag_spec='-R$libdir'
 
10447
      hardcode_direct=yes
 
10448
      hardcode_shlibpath_var=no
 
10449
      ;;
 
10450
 
 
10451
    newsos6)
 
10452
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10453
      hardcode_direct=yes
 
10454
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10455
      hardcode_libdir_separator=:
 
10456
      hardcode_shlibpath_var=no
 
10457
      ;;
 
10458
 
 
10459
    *nto* | *qnx*)
 
10460
      ;;
 
10461
 
 
10462
    openbsd*)
 
10463
      if test -f /usr/libexec/ld.so; then
 
10464
        hardcode_direct=yes
 
10465
        hardcode_shlibpath_var=no
 
10466
        hardcode_direct_absolute=yes
 
10467
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10468
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10469
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10470
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10471
          export_dynamic_flag_spec='${wl}-E'
 
10472
        else
 
10473
          case $host_os in
 
10474
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10475
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10476
             hardcode_libdir_flag_spec='-R$libdir'
 
10477
             ;;
 
10478
           *)
 
10479
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10480
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10481
             ;;
 
10482
          esac
 
10483
        fi
 
10484
      else
 
10485
        ld_shlibs=no
 
10486
      fi
 
10487
      ;;
 
10488
 
 
10489
    os2*)
 
10490
      hardcode_libdir_flag_spec='-L$libdir'
 
10491
      hardcode_minus_L=yes
 
10492
      allow_undefined_flag=unsupported
 
10493
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
10494
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10495
      ;;
 
10496
 
 
10497
    osf3*)
 
10498
      if test "$GCC" = yes; then
 
10499
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10500
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10501
      else
 
10502
        allow_undefined_flag=' -expect_unresolved \*'
 
10503
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10504
      fi
 
10505
      archive_cmds_need_lc='no'
 
10506
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10507
      hardcode_libdir_separator=:
 
10508
      ;;
 
10509
 
 
10510
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10511
      if test "$GCC" = yes; then
 
10512
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10513
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10514
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10515
      else
 
10516
        allow_undefined_flag=' -expect_unresolved \*'
 
10517
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
10518
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
10519
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10520
 
 
10521
        # Both c and cxx compiler support -rpath directly
 
10522
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10523
      fi
 
10524
      archive_cmds_need_lc='no'
 
10525
      hardcode_libdir_separator=:
 
10526
      ;;
 
10527
 
 
10528
    solaris*)
 
10529
      no_undefined_flag=' -z defs'
 
10530
      if test "$GCC" = yes; then
 
10531
        wlarc='${wl}'
 
10532
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10533
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10534
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10535
      else
 
10536
        case `$CC -V 2>&1` in
 
10537
        *"Compilers 5.0"*)
 
10538
          wlarc=''
 
10539
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10540
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10541
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10542
          ;;
 
10543
        *)
 
10544
          wlarc='${wl}'
 
10545
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10546
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10547
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10548
          ;;
 
10549
        esac
 
10550
      fi
 
10551
      hardcode_libdir_flag_spec='-R$libdir'
 
10552
      hardcode_shlibpath_var=no
 
10553
      case $host_os in
 
10554
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10555
      *)
 
10556
        # The compiler driver will combine and reorder linker options,
 
10557
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10558
        # but is careful enough not to reorder.
 
10559
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10560
        if test "$GCC" = yes; then
 
10561
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10562
        else
 
10563
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10564
        fi
 
10565
        ;;
 
10566
      esac
 
10567
      link_all_deplibs=yes
 
10568
      ;;
 
10569
 
 
10570
    sunos4*)
 
10571
      if test "x$host_vendor" = xsequent; then
 
10572
        # Use $CC to link under sequent, because it throws in some extra .o
 
10573
        # files that make .init and .fini sections work.
 
10574
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10575
      else
 
10576
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10577
      fi
 
10578
      hardcode_libdir_flag_spec='-L$libdir'
 
10579
      hardcode_direct=yes
 
10580
      hardcode_minus_L=yes
 
10581
      hardcode_shlibpath_var=no
 
10582
      ;;
 
10583
 
 
10584
    sysv4)
 
10585
      case $host_vendor in
 
10586
        sni)
 
10587
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10588
          hardcode_direct=yes # is this really true???
 
10589
        ;;
 
10590
        siemens)
 
10591
          ## LD is ld it makes a PLAMLIB
 
10592
          ## CC just makes a GrossModule.
 
10593
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10594
          reload_cmds='$CC -r -o $output$reload_objs'
 
10595
          hardcode_direct=no
 
10596
        ;;
 
10597
        motorola)
 
10598
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10599
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10600
        ;;
 
10601
      esac
 
10602
      runpath_var='LD_RUN_PATH'
 
10603
      hardcode_shlibpath_var=no
 
10604
      ;;
 
10605
 
 
10606
    sysv4.3*)
 
10607
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10608
      hardcode_shlibpath_var=no
 
10609
      export_dynamic_flag_spec='-Bexport'
 
10610
      ;;
 
10611
 
 
10612
    sysv4*MP*)
 
10613
      if test -d /usr/nec; then
 
10614
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10615
        hardcode_shlibpath_var=no
 
10616
        runpath_var=LD_RUN_PATH
 
10617
        hardcode_runpath_var=yes
 
10618
        ld_shlibs=yes
 
10619
      fi
 
10620
      ;;
 
10621
 
 
10622
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10623
      no_undefined_flag='${wl}-z,text'
 
10624
      archive_cmds_need_lc=no
 
10625
      hardcode_shlibpath_var=no
 
10626
      runpath_var='LD_RUN_PATH'
 
10627
 
 
10628
      if test "$GCC" = yes; then
 
10629
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10630
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10631
      else
 
10632
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10633
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10634
      fi
 
10635
      ;;
 
10636
 
 
10637
    sysv5* | sco3.2v5* | sco5v6*)
 
10638
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10639
      # link with -lc, and that would cause any symbols used from libc to
 
10640
      # always be unresolved, which means just about no library would
 
10641
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10642
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10643
      # as -z defs.
 
10644
      no_undefined_flag='${wl}-z,text'
 
10645
      allow_undefined_flag='${wl}-z,nodefs'
 
10646
      archive_cmds_need_lc=no
 
10647
      hardcode_shlibpath_var=no
 
10648
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10649
      hardcode_libdir_separator=':'
 
10650
      link_all_deplibs=yes
 
10651
      export_dynamic_flag_spec='${wl}-Bexport'
 
10652
      runpath_var='LD_RUN_PATH'
 
10653
 
 
10654
      if test "$GCC" = yes; then
 
10655
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10656
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10657
      else
 
10658
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10659
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10660
      fi
 
10661
      ;;
 
10662
 
 
10663
    uts4*)
 
10664
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10665
      hardcode_libdir_flag_spec='-L$libdir'
 
10666
      hardcode_shlibpath_var=no
 
10667
      ;;
 
10668
 
 
10669
    *)
 
10670
      ld_shlibs=no
 
10671
      ;;
 
10672
    esac
 
10673
 
 
10674
    if test x$host_vendor = xsni; then
 
10675
      case $host in
 
10676
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10677
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10678
        ;;
 
10679
      esac
 
10680
    fi
 
10681
  fi
 
10682
 
 
10683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10684
$as_echo "$ld_shlibs" >&6; }
 
10685
test "$ld_shlibs" = no && can_build_shared=no
 
10686
 
 
10687
with_gnu_ld=$with_gnu_ld
 
10688
 
 
10689
 
 
10690
 
 
10691
 
 
10692
 
 
10693
 
 
10694
 
 
10695
 
 
10696
 
 
10697
 
 
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
#
 
10704
# Do we need to explicitly link libc?
 
10705
#
 
10706
case "x$archive_cmds_need_lc" in
 
10707
x|xyes)
 
10708
  # Assume -lc should be added
 
10709
  archive_cmds_need_lc=yes
 
10710
 
 
10711
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10712
    case $archive_cmds in
 
10713
    *'~'*)
 
10714
      # FIXME: we may have to deal with multi-command sequences.
 
10715
      ;;
 
10716
    '$CC '*)
 
10717
      # Test whether the compiler implicitly links with -lc since on some
 
10718
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10719
      # to ld, don't add -lc before -lgcc.
 
10720
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10721
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10722
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
10723
  $as_echo_n "(cached) " >&6
 
10724
else
 
10725
  $RM conftest*
 
10726
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10727
 
 
10728
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10729
  (eval $ac_compile) 2>&5
 
10730
  ac_status=$?
 
10731
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10732
  test $ac_status = 0; } 2>conftest.err; then
 
10733
          soname=conftest
 
10734
          lib=conftest
 
10735
          libobjs=conftest.$ac_objext
 
10736
          deplibs=
 
10737
          wl=$lt_prog_compiler_wl
 
10738
          pic_flag=$lt_prog_compiler_pic
 
10739
          compiler_flags=-v
 
10740
          linker_flags=-v
 
10741
          verstring=
 
10742
          output_objdir=.
 
10743
          libname=conftest
 
10744
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
10745
          allow_undefined_flag=
 
10746
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
10747
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10748
  ac_status=$?
 
10749
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10750
  test $ac_status = 0; }
 
10751
          then
 
10752
            lt_cv_archive_cmds_need_lc=no
 
10753
          else
 
10754
            lt_cv_archive_cmds_need_lc=yes
 
10755
          fi
 
10756
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
10757
        else
 
10758
          cat conftest.err 1>&5
 
10759
        fi
 
10760
        $RM conftest*
 
10761
 
 
10762
fi
 
10763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
10764
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
10765
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
10766
      ;;
 
10767
    esac
 
10768
  fi
 
10769
  ;;
 
10770
esac
 
10771
 
 
10772
 
 
10773
 
 
10774
 
 
10775
 
 
10776
 
 
10777
 
 
10778
 
 
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
 
 
10784
 
 
10785
 
 
10786
 
 
10787
 
 
10788
 
 
10789
 
 
10790
 
 
10791
 
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
 
 
10798
 
 
10799
 
 
10800
 
 
10801
 
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
 
10813
 
 
10814
 
 
10815
 
 
10816
 
 
10817
 
 
10818
 
 
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
 
 
10830
 
 
10831
 
 
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
 
 
10864
 
 
10865
 
 
10866
 
 
10867
 
 
10868
 
 
10869
 
 
10870
 
 
10871
 
 
10872
 
 
10873
 
 
10874
 
 
10875
 
 
10876
 
 
10877
 
 
10878
 
 
10879
 
 
10880
 
 
10881
 
 
10882
 
 
10883
 
 
10884
 
 
10885
 
 
10886
 
 
10887
 
 
10888
 
 
10889
 
 
10890
 
 
10891
 
 
10892
 
 
10893
 
 
10894
 
 
10895
 
 
10896
 
 
10897
 
 
10898
 
 
10899
 
 
10900
 
 
10901
 
 
10902
 
 
10903
 
 
10904
 
 
10905
 
 
10906
 
 
10907
 
 
10908
 
 
10909
 
 
10910
 
 
10911
 
 
10912
 
 
10913
 
 
10914
 
 
10915
 
 
10916
 
 
10917
 
 
10918
 
 
10919
 
 
10920
 
 
10921
 
 
10922
 
 
10923
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10924
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10925
 
 
10926
if test "$GCC" = yes; then
 
10927
  case $host_os in
 
10928
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10929
    *) lt_awk_arg="/^libraries:/" ;;
 
10930
  esac
 
10931
  case $host_os in
 
10932
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10933
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10934
  esac
 
10935
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10936
  case $lt_search_path_spec in
 
10937
  *\;*)
 
10938
    # if the path contains ";" then we assume it to be the separator
 
10939
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10940
    # assumed that no part of a normal pathname contains ";" but that should
 
10941
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10942
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10943
    ;;
 
10944
  *)
 
10945
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10946
    ;;
 
10947
  esac
 
10948
  # Ok, now we have the path, separated by spaces, we can step through it
 
10949
  # and add multilib dir if necessary.
 
10950
  lt_tmp_lt_search_path_spec=
 
10951
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10952
  for lt_sys_path in $lt_search_path_spec; do
 
10953
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10954
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10955
    else
 
10956
      test -d "$lt_sys_path" && \
 
10957
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10958
    fi
 
10959
  done
 
10960
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10961
BEGIN {RS=" "; FS="/|\n";} {
 
10962
  lt_foo="";
 
10963
  lt_count=0;
 
10964
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10965
    if ($lt_i != "" && $lt_i != ".") {
 
10966
      if ($lt_i == "..") {
 
10967
        lt_count++;
 
10968
      } else {
 
10969
        if (lt_count == 0) {
 
10970
          lt_foo="/" $lt_i lt_foo;
 
10971
        } else {
 
10972
          lt_count--;
 
10973
        }
 
10974
      }
 
10975
    }
 
10976
  }
 
10977
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10978
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10979
}'`
 
10980
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10981
  # for these hosts.
 
10982
  case $host_os in
 
10983
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10984
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10985
  esac
 
10986
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10987
else
 
10988
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10989
fi
 
10990
library_names_spec=
 
10991
libname_spec='lib$name'
 
10992
soname_spec=
 
10993
shrext_cmds=".so"
 
10994
postinstall_cmds=
 
10995
postuninstall_cmds=
 
10996
finish_cmds=
 
10997
finish_eval=
 
10998
shlibpath_var=
 
10999
shlibpath_overrides_runpath=unknown
 
11000
version_type=none
 
11001
dynamic_linker="$host_os ld.so"
 
11002
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11003
need_lib_prefix=unknown
 
11004
hardcode_into_libs=no
 
11005
 
 
11006
# when you set need_version to no, make sure it does not cause -set_version
 
11007
# flags to be left without arguments
 
11008
need_version=unknown
 
11009
 
 
11010
case $host_os in
 
11011
aix3*)
 
11012
  version_type=linux # correct to gnu/linux during the next big refactor
 
11013
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11014
  shlibpath_var=LIBPATH
 
11015
 
 
11016
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11017
  soname_spec='${libname}${release}${shared_ext}$major'
 
11018
  ;;
 
11019
 
 
11020
aix[4-9]*)
 
11021
  version_type=linux # correct to gnu/linux during the next big refactor
 
11022
  need_lib_prefix=no
 
11023
  need_version=no
 
11024
  hardcode_into_libs=yes
 
11025
  if test "$host_cpu" = ia64; then
 
11026
    # AIX 5 supports IA64
 
11027
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11028
    shlibpath_var=LD_LIBRARY_PATH
 
11029
  else
 
11030
    # With GCC up to 2.95.x, collect2 would create an import file
 
11031
    # for dependence libraries.  The import file would start with
 
11032
    # the line `#! .'.  This would cause the generated library to
 
11033
    # depend on `.', always an invalid library.  This was fixed in
 
11034
    # development snapshots of GCC prior to 3.0.
 
11035
    case $host_os in
 
11036
      aix4 | aix4.[01] | aix4.[01].*)
 
11037
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11038
           echo ' yes '
 
11039
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11040
        :
 
11041
      else
 
11042
        can_build_shared=no
 
11043
      fi
 
11044
      ;;
 
11045
    esac
 
11046
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11047
    # soname into executable. Probably we can add versioning support to
 
11048
    # collect2, so additional links can be useful in future.
 
11049
    if test "$aix_use_runtimelinking" = yes; then
 
11050
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11051
      # instead of lib<name>.a to let people know that these are not
 
11052
      # typical AIX shared libraries.
 
11053
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11054
    else
 
11055
      # We preserve .a as extension for shared libraries through AIX4.2
 
11056
      # and later when we are not doing run time linking.
 
11057
      library_names_spec='${libname}${release}.a $libname.a'
 
11058
      soname_spec='${libname}${release}${shared_ext}$major'
 
11059
    fi
 
11060
    shlibpath_var=LIBPATH
 
11061
  fi
 
11062
  ;;
 
11063
 
 
11064
amigaos*)
 
11065
  case $host_cpu in
 
11066
  powerpc)
 
11067
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11068
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11069
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11070
    ;;
 
11071
  m68k)
 
11072
    library_names_spec='$libname.ixlibrary $libname.a'
 
11073
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11074
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
11075
    ;;
 
11076
  esac
 
11077
  ;;
 
11078
 
 
11079
beos*)
 
11080
  library_names_spec='${libname}${shared_ext}'
 
11081
  dynamic_linker="$host_os ld.so"
 
11082
  shlibpath_var=LIBRARY_PATH
 
11083
  ;;
 
11084
 
 
11085
bsdi[45]*)
 
11086
  version_type=linux # correct to gnu/linux during the next big refactor
 
11087
  need_version=no
 
11088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11089
  soname_spec='${libname}${release}${shared_ext}$major'
 
11090
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11091
  shlibpath_var=LD_LIBRARY_PATH
 
11092
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11093
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11094
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11095
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11096
  # libtool to hard-code these into programs
 
11097
  ;;
 
11098
 
 
11099
cygwin* | mingw* | pw32* | cegcc*)
 
11100
  version_type=windows
 
11101
  shrext_cmds=".dll"
 
11102
  need_version=no
 
11103
  need_lib_prefix=no
 
11104
 
 
11105
  case $GCC,$cc_basename in
 
11106
  yes,*)
 
11107
    # gcc
 
11108
    library_names_spec='$libname.dll.a'
 
11109
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11110
    postinstall_cmds='base_file=`basename \${file}`~
 
11111
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11112
      dldir=$destdir/`dirname \$dlpath`~
 
11113
      test -d \$dldir || mkdir -p \$dldir~
 
11114
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11115
      chmod a+x \$dldir/$dlname~
 
11116
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11117
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11118
      fi'
 
11119
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11120
      dlpath=$dir/\$dldll~
 
11121
       $RM \$dlpath'
 
11122
    shlibpath_overrides_runpath=yes
 
11123
 
 
11124
    case $host_os in
 
11125
    cygwin*)
 
11126
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11127
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11128
 
 
11129
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
11130
      ;;
 
11131
    mingw* | cegcc*)
 
11132
      # MinGW DLLs use traditional 'lib' prefix
 
11133
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11134
      ;;
 
11135
    pw32*)
 
11136
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11137
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11138
      ;;
 
11139
    esac
 
11140
    dynamic_linker='Win32 ld.exe'
 
11141
    ;;
 
11142
 
 
11143
  *,cl*)
 
11144
    # Native MSVC
 
11145
    libname_spec='$name'
 
11146
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11147
    library_names_spec='${libname}.dll.lib'
 
11148
 
 
11149
    case $build_os in
 
11150
    mingw*)
 
11151
      sys_lib_search_path_spec=
 
11152
      lt_save_ifs=$IFS
 
11153
      IFS=';'
 
11154
      for lt_path in $LIB
 
11155
      do
 
11156
        IFS=$lt_save_ifs
 
11157
        # Let DOS variable expansion print the short 8.3 style file name.
 
11158
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
11159
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
11160
      done
 
11161
      IFS=$lt_save_ifs
 
11162
      # Convert to MSYS style.
 
11163
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
11164
      ;;
 
11165
    cygwin*)
 
11166
      # Convert to unix form, then to dos form, then back to unix form
 
11167
      # but this time dos style (no spaces!) so that the unix form looks
 
11168
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
11169
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
11170
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
11171
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11172
      ;;
 
11173
    *)
 
11174
      sys_lib_search_path_spec="$LIB"
 
11175
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11176
        # It is most probably a Windows format PATH.
 
11177
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11178
      else
 
11179
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
11180
      fi
 
11181
      # FIXME: find the short name or the path components, as spaces are
 
11182
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
11183
      ;;
 
11184
    esac
 
11185
 
 
11186
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11187
    postinstall_cmds='base_file=`basename \${file}`~
 
11188
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11189
      dldir=$destdir/`dirname \$dlpath`~
 
11190
      test -d \$dldir || mkdir -p \$dldir~
 
11191
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11192
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11193
      dlpath=$dir/\$dldll~
 
11194
       $RM \$dlpath'
 
11195
    shlibpath_overrides_runpath=yes
 
11196
    dynamic_linker='Win32 link.exe'
 
11197
    ;;
 
11198
 
 
11199
  *)
 
11200
    # Assume MSVC wrapper
 
11201
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11202
    dynamic_linker='Win32 ld.exe'
 
11203
    ;;
 
11204
  esac
 
11205
  # FIXME: first we should search . and the directory the executable is in
 
11206
  shlibpath_var=PATH
 
11207
  ;;
 
11208
 
 
11209
darwin* | rhapsody*)
 
11210
  dynamic_linker="$host_os dyld"
 
11211
  version_type=darwin
 
11212
  need_lib_prefix=no
 
11213
  need_version=no
 
11214
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11215
  soname_spec='${libname}${release}${major}$shared_ext'
 
11216
  shlibpath_overrides_runpath=yes
 
11217
  shlibpath_var=DYLD_LIBRARY_PATH
 
11218
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11219
 
 
11220
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11221
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11222
  ;;
 
11223
 
 
11224
dgux*)
 
11225
  version_type=linux # correct to gnu/linux during the next big refactor
 
11226
  need_lib_prefix=no
 
11227
  need_version=no
 
11228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11229
  soname_spec='${libname}${release}${shared_ext}$major'
 
11230
  shlibpath_var=LD_LIBRARY_PATH
 
11231
  ;;
 
11232
 
 
11233
freebsd* | dragonfly*)
 
11234
  # DragonFly does not have aout.  When/if they implement a new
 
11235
  # versioning mechanism, adjust this.
 
11236
  if test -x /usr/bin/objformat; then
 
11237
    objformat=`/usr/bin/objformat`
 
11238
  else
 
11239
    case $host_os in
 
11240
    freebsd[23].*) objformat=aout ;;
 
11241
    *) objformat=elf ;;
 
11242
    esac
 
11243
  fi
 
11244
  version_type=freebsd-$objformat
 
11245
  case $version_type in
 
11246
    freebsd-elf*)
 
11247
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11248
      need_version=no
 
11249
      need_lib_prefix=no
 
11250
      ;;
 
11251
    freebsd-*)
 
11252
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11253
      need_version=yes
 
11254
      ;;
 
11255
  esac
 
11256
  shlibpath_var=LD_LIBRARY_PATH
 
11257
  case $host_os in
 
11258
  freebsd2.*)
 
11259
    shlibpath_overrides_runpath=yes
 
11260
    ;;
 
11261
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11262
    shlibpath_overrides_runpath=yes
 
11263
    hardcode_into_libs=yes
 
11264
    ;;
 
11265
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11266
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11267
    shlibpath_overrides_runpath=no
 
11268
    hardcode_into_libs=yes
 
11269
    ;;
 
11270
  *) # from 4.6 on, and DragonFly
 
11271
    shlibpath_overrides_runpath=yes
 
11272
    hardcode_into_libs=yes
 
11273
    ;;
 
11274
  esac
 
11275
  ;;
 
11276
 
 
11277
haiku*)
 
11278
  version_type=linux # correct to gnu/linux during the next big refactor
 
11279
  need_lib_prefix=no
 
11280
  need_version=no
 
11281
  dynamic_linker="$host_os runtime_loader"
 
11282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11283
  soname_spec='${libname}${release}${shared_ext}$major'
 
11284
  shlibpath_var=LIBRARY_PATH
 
11285
  shlibpath_overrides_runpath=yes
 
11286
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
11287
  hardcode_into_libs=yes
 
11288
  ;;
 
11289
 
 
11290
hpux9* | hpux10* | hpux11*)
 
11291
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11292
  # link against other versions.
 
11293
  version_type=sunos
 
11294
  need_lib_prefix=no
 
11295
  need_version=no
 
11296
  case $host_cpu in
 
11297
  ia64*)
 
11298
    shrext_cmds='.so'
 
11299
    hardcode_into_libs=yes
 
11300
    dynamic_linker="$host_os dld.so"
 
11301
    shlibpath_var=LD_LIBRARY_PATH
 
11302
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11303
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11304
    soname_spec='${libname}${release}${shared_ext}$major'
 
11305
    if test "X$HPUX_IA64_MODE" = X32; then
 
11306
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11307
    else
 
11308
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11309
    fi
 
11310
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11311
    ;;
 
11312
  hppa*64*)
 
11313
    shrext_cmds='.sl'
 
11314
    hardcode_into_libs=yes
 
11315
    dynamic_linker="$host_os dld.sl"
 
11316
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11317
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11318
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11319
    soname_spec='${libname}${release}${shared_ext}$major'
 
11320
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11321
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11322
    ;;
 
11323
  *)
 
11324
    shrext_cmds='.sl'
 
11325
    dynamic_linker="$host_os dld.sl"
 
11326
    shlibpath_var=SHLIB_PATH
 
11327
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11328
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11329
    soname_spec='${libname}${release}${shared_ext}$major'
 
11330
    ;;
 
11331
  esac
 
11332
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
11333
  postinstall_cmds='chmod 555 $lib'
 
11334
  # or fails outright, so override atomically:
 
11335
  install_override_mode=555
 
11336
  ;;
 
11337
 
 
11338
interix[3-9]*)
 
11339
  version_type=linux # correct to gnu/linux during the next big refactor
 
11340
  need_lib_prefix=no
 
11341
  need_version=no
 
11342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11343
  soname_spec='${libname}${release}${shared_ext}$major'
 
11344
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11345
  shlibpath_var=LD_LIBRARY_PATH
 
11346
  shlibpath_overrides_runpath=no
 
11347
  hardcode_into_libs=yes
 
11348
  ;;
 
11349
 
 
11350
irix5* | irix6* | nonstopux*)
 
11351
  case $host_os in
 
11352
    nonstopux*) version_type=nonstopux ;;
 
11353
    *)
 
11354
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11355
                version_type=linux # correct to gnu/linux during the next big refactor
 
11356
        else
 
11357
                version_type=irix
 
11358
        fi ;;
 
11359
  esac
 
11360
  need_lib_prefix=no
 
11361
  need_version=no
 
11362
  soname_spec='${libname}${release}${shared_ext}$major'
 
11363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11364
  case $host_os in
 
11365
  irix5* | nonstopux*)
 
11366
    libsuff= shlibsuff=
 
11367
    ;;
 
11368
  *)
 
11369
    case $LD in # libtool.m4 will add one of these switches to LD
 
11370
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11371
      libsuff= shlibsuff= libmagic=32-bit;;
 
11372
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11373
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11374
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11375
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11376
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11377
    esac
 
11378
    ;;
 
11379
  esac
 
11380
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11381
  shlibpath_overrides_runpath=no
 
11382
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11383
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11384
  hardcode_into_libs=yes
 
11385
  ;;
 
11386
 
 
11387
# No shared lib support for Linux oldld, aout, or coff.
 
11388
linux*oldld* | linux*aout* | linux*coff*)
 
11389
  dynamic_linker=no
 
11390
  ;;
 
11391
 
 
11392
# This must be glibc/ELF.
 
11393
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 
11394
  version_type=linux # correct to gnu/linux during the next big refactor
 
11395
  need_lib_prefix=no
 
11396
  need_version=no
 
11397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11398
  soname_spec='${libname}${release}${shared_ext}$major'
 
11399
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11400
  shlibpath_var=LD_LIBRARY_PATH
 
11401
  shlibpath_overrides_runpath=no
 
11402
 
 
11403
  # Some binutils ld are patched to set DT_RUNPATH
 
11404
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
11405
  $as_echo_n "(cached) " >&6
 
11406
else
 
11407
  lt_cv_shlibpath_overrides_runpath=no
 
11408
    save_LDFLAGS=$LDFLAGS
 
11409
    save_libdir=$libdir
 
11410
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11411
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11412
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11413
/* end confdefs.h.  */
 
11414
 
 
11415
int
 
11416
main ()
 
11417
{
 
11418
 
 
11419
  ;
 
11420
  return 0;
 
11421
}
 
11422
_ACEOF
 
11423
if ac_fn_c_try_link "$LINENO"; then :
 
11424
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11425
  lt_cv_shlibpath_overrides_runpath=yes
 
11426
fi
 
11427
fi
 
11428
rm -f core conftest.err conftest.$ac_objext \
 
11429
    conftest$ac_exeext conftest.$ac_ext
 
11430
    LDFLAGS=$save_LDFLAGS
 
11431
    libdir=$save_libdir
 
11432
 
 
11433
fi
 
11434
 
 
11435
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
11436
 
 
11437
  # This implies no fast_install, which is unacceptable.
 
11438
  # Some rework will be needed to allow for fast_install
 
11439
  # before this can be enabled.
 
11440
  hardcode_into_libs=yes
 
11441
 
 
11442
  # Append ld.so.conf contents to the search path
 
11443
  if test -f /etc/ld.so.conf; then
 
11444
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
11445
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11446
  fi
 
11447
 
 
11448
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11449
  # powerpc, because MkLinux only supported shared libraries with the
 
11450
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11451
  # most powerpc-linux boxes support dynamic linking these days and
 
11452
  # people can always --disable-shared, the test was removed, and we
 
11453
  # assume the GNU/Linux dynamic linker is in use.
 
11454
  dynamic_linker='GNU/Linux ld.so'
 
11455
  ;;
 
11456
 
 
11457
netbsdelf*-gnu)
 
11458
  version_type=linux
 
11459
  need_lib_prefix=no
 
11460
  need_version=no
 
11461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11462
  soname_spec='${libname}${release}${shared_ext}$major'
 
11463
  shlibpath_var=LD_LIBRARY_PATH
 
11464
  shlibpath_overrides_runpath=no
 
11465
  hardcode_into_libs=yes
 
11466
  dynamic_linker='NetBSD ld.elf_so'
 
11467
  ;;
 
11468
 
 
11469
netbsd*)
 
11470
  version_type=sunos
 
11471
  need_lib_prefix=no
 
11472
  need_version=no
 
11473
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11474
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11475
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11476
    dynamic_linker='NetBSD (a.out) ld.so'
 
11477
  else
 
11478
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11479
    soname_spec='${libname}${release}${shared_ext}$major'
 
11480
    dynamic_linker='NetBSD ld.elf_so'
 
11481
  fi
 
11482
  shlibpath_var=LD_LIBRARY_PATH
 
11483
  shlibpath_overrides_runpath=yes
 
11484
  hardcode_into_libs=yes
 
11485
  ;;
 
11486
 
 
11487
newsos6)
 
11488
  version_type=linux # correct to gnu/linux during the next big refactor
 
11489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11490
  shlibpath_var=LD_LIBRARY_PATH
 
11491
  shlibpath_overrides_runpath=yes
 
11492
  ;;
 
11493
 
 
11494
*nto* | *qnx*)
 
11495
  version_type=qnx
 
11496
  need_lib_prefix=no
 
11497
  need_version=no
 
11498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11499
  soname_spec='${libname}${release}${shared_ext}$major'
 
11500
  shlibpath_var=LD_LIBRARY_PATH
 
11501
  shlibpath_overrides_runpath=no
 
11502
  hardcode_into_libs=yes
 
11503
  dynamic_linker='ldqnx.so'
 
11504
  ;;
 
11505
 
 
11506
openbsd*)
 
11507
  version_type=sunos
 
11508
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11509
  need_lib_prefix=no
 
11510
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11511
  case $host_os in
 
11512
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11513
    *)                          need_version=no  ;;
 
11514
  esac
 
11515
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11516
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11517
  shlibpath_var=LD_LIBRARY_PATH
 
11518
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11519
    case $host_os in
 
11520
      openbsd2.[89] | openbsd2.[89].*)
 
11521
        shlibpath_overrides_runpath=no
 
11522
        ;;
 
11523
      *)
 
11524
        shlibpath_overrides_runpath=yes
 
11525
        ;;
 
11526
      esac
 
11527
  else
 
11528
    shlibpath_overrides_runpath=yes
 
11529
  fi
 
11530
  ;;
 
11531
 
 
11532
os2*)
 
11533
  libname_spec='$name'
 
11534
  shrext_cmds=".dll"
 
11535
  need_lib_prefix=no
 
11536
  library_names_spec='$libname${shared_ext} $libname.a'
 
11537
  dynamic_linker='OS/2 ld.exe'
 
11538
  shlibpath_var=LIBPATH
 
11539
  ;;
 
11540
 
 
11541
osf3* | osf4* | osf5*)
 
11542
  version_type=osf
 
11543
  need_lib_prefix=no
 
11544
  need_version=no
 
11545
  soname_spec='${libname}${release}${shared_ext}$major'
 
11546
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11547
  shlibpath_var=LD_LIBRARY_PATH
 
11548
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11549
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11550
  ;;
 
11551
 
 
11552
rdos*)
 
11553
  dynamic_linker=no
 
11554
  ;;
 
11555
 
 
11556
solaris*)
 
11557
  version_type=linux # correct to gnu/linux during the next big refactor
 
11558
  need_lib_prefix=no
 
11559
  need_version=no
 
11560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11561
  soname_spec='${libname}${release}${shared_ext}$major'
 
11562
  shlibpath_var=LD_LIBRARY_PATH
 
11563
  shlibpath_overrides_runpath=yes
 
11564
  hardcode_into_libs=yes
 
11565
  # ldd complains unless libraries are executable
 
11566
  postinstall_cmds='chmod +x $lib'
 
11567
  ;;
 
11568
 
 
11569
sunos4*)
 
11570
  version_type=sunos
 
11571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11572
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11573
  shlibpath_var=LD_LIBRARY_PATH
 
11574
  shlibpath_overrides_runpath=yes
 
11575
  if test "$with_gnu_ld" = yes; then
 
11576
    need_lib_prefix=no
 
11577
  fi
 
11578
  need_version=yes
 
11579
  ;;
 
11580
 
 
11581
sysv4 | sysv4.3*)
 
11582
  version_type=linux # correct to gnu/linux during the next big refactor
 
11583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11584
  soname_spec='${libname}${release}${shared_ext}$major'
 
11585
  shlibpath_var=LD_LIBRARY_PATH
 
11586
  case $host_vendor in
 
11587
    sni)
 
11588
      shlibpath_overrides_runpath=no
 
11589
      need_lib_prefix=no
 
11590
      runpath_var=LD_RUN_PATH
 
11591
      ;;
 
11592
    siemens)
 
11593
      need_lib_prefix=no
 
11594
      ;;
 
11595
    motorola)
 
11596
      need_lib_prefix=no
 
11597
      need_version=no
 
11598
      shlibpath_overrides_runpath=no
 
11599
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11600
      ;;
 
11601
  esac
 
11602
  ;;
 
11603
 
 
11604
sysv4*MP*)
 
11605
  if test -d /usr/nec ;then
 
11606
    version_type=linux # correct to gnu/linux during the next big refactor
 
11607
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11608
    soname_spec='$libname${shared_ext}.$major'
 
11609
    shlibpath_var=LD_LIBRARY_PATH
 
11610
  fi
 
11611
  ;;
 
11612
 
 
11613
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11614
  version_type=freebsd-elf
 
11615
  need_lib_prefix=no
 
11616
  need_version=no
 
11617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11618
  soname_spec='${libname}${release}${shared_ext}$major'
 
11619
  shlibpath_var=LD_LIBRARY_PATH
 
11620
  shlibpath_overrides_runpath=yes
 
11621
  hardcode_into_libs=yes
 
11622
  if test "$with_gnu_ld" = yes; then
 
11623
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11624
  else
 
11625
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11626
    case $host_os in
 
11627
      sco3.2v5*)
 
11628
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11629
        ;;
 
11630
    esac
 
11631
  fi
 
11632
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11633
  ;;
 
11634
 
 
11635
tpf*)
 
11636
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11637
  version_type=linux # correct to gnu/linux during the next big refactor
 
11638
  need_lib_prefix=no
 
11639
  need_version=no
 
11640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11641
  shlibpath_var=LD_LIBRARY_PATH
 
11642
  shlibpath_overrides_runpath=no
 
11643
  hardcode_into_libs=yes
 
11644
  ;;
 
11645
 
 
11646
uts4*)
 
11647
  version_type=linux # correct to gnu/linux during the next big refactor
 
11648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11649
  soname_spec='${libname}${release}${shared_ext}$major'
 
11650
  shlibpath_var=LD_LIBRARY_PATH
 
11651
  ;;
 
11652
 
 
11653
*)
 
11654
  dynamic_linker=no
 
11655
  ;;
 
11656
esac
 
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11658
$as_echo "$dynamic_linker" >&6; }
 
11659
test "$dynamic_linker" = no && can_build_shared=no
 
11660
 
 
11661
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11662
if test "$GCC" = yes; then
 
11663
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11664
fi
 
11665
 
 
11666
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11667
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11668
fi
 
11669
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11670
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11671
fi
 
11672
 
 
11673
 
 
11674
 
 
11675
 
 
11676
 
 
11677
 
 
11678
 
 
11679
 
 
11680
 
 
11681
 
 
11682
 
 
11683
 
 
11684
 
 
11685
 
 
11686
 
 
11687
 
 
11688
 
 
11689
 
 
11690
 
 
11691
 
 
11692
 
 
11693
 
 
11694
 
 
11695
 
 
11696
 
 
11697
 
 
11698
 
 
11699
 
 
11700
 
 
11701
 
 
11702
 
 
11703
 
 
11704
 
 
11705
 
 
11706
 
 
11707
 
 
11708
 
 
11709
 
 
11710
 
 
11711
 
 
11712
 
 
11713
 
 
11714
 
 
11715
 
 
11716
 
 
11717
 
 
11718
 
 
11719
 
 
11720
 
 
11721
 
 
11722
 
 
11723
 
 
11724
 
 
11725
 
 
11726
 
 
11727
 
 
11728
 
 
11729
 
 
11730
 
 
11731
 
 
11732
 
 
11733
 
 
11734
 
 
11735
 
 
11736
 
 
11737
 
 
11738
 
 
11739
 
 
11740
 
 
11741
 
 
11742
 
 
11743
 
 
11744
 
 
11745
 
 
11746
 
 
11747
 
 
11748
 
 
11749
 
 
11750
 
 
11751
 
 
11752
 
 
11753
 
 
11754
 
 
11755
 
 
11756
 
 
11757
 
 
11758
 
 
11759
 
 
11760
 
 
11761
 
 
11762
 
 
11763
 
 
11764
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11765
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11766
hardcode_action=
 
11767
if test -n "$hardcode_libdir_flag_spec" ||
 
11768
   test -n "$runpath_var" ||
 
11769
   test "X$hardcode_automatic" = "Xyes" ; then
 
11770
 
 
11771
  # We can hardcode non-existent directories.
 
11772
  if test "$hardcode_direct" != no &&
 
11773
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11774
     # have to relink, otherwise we might link with an installed library
 
11775
     # when we should be linking with a yet-to-be-installed one
 
11776
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11777
     test "$hardcode_minus_L" != no; then
 
11778
    # Linking always hardcodes the temporary library directory.
 
11779
    hardcode_action=relink
 
11780
  else
 
11781
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11782
    hardcode_action=immediate
 
11783
  fi
 
11784
else
 
11785
  # We cannot hardcode anything, or else we can only hardcode existing
 
11786
  # directories.
 
11787
  hardcode_action=unsupported
 
11788
fi
 
11789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11790
$as_echo "$hardcode_action" >&6; }
 
11791
 
 
11792
if test "$hardcode_action" = relink ||
 
11793
   test "$inherit_rpath" = yes; then
 
11794
  # Fast installation is not supported
 
11795
  enable_fast_install=no
 
11796
elif test "$shlibpath_overrides_runpath" = yes ||
 
11797
     test "$enable_shared" = no; then
 
11798
  # Fast installation is not necessary
 
11799
  enable_fast_install=needless
 
11800
fi
 
11801
 
 
11802
 
 
11803
 
 
11804
 
 
11805
 
 
11806
 
 
11807
  if test "x$enable_dlopen" != xyes; then
 
11808
  enable_dlopen=unknown
 
11809
  enable_dlopen_self=unknown
 
11810
  enable_dlopen_self_static=unknown
 
11811
else
 
11812
  lt_cv_dlopen=no
 
11813
  lt_cv_dlopen_libs=
 
11814
 
 
11815
  case $host_os in
 
11816
  beos*)
 
11817
    lt_cv_dlopen="load_add_on"
 
11818
    lt_cv_dlopen_libs=
 
11819
    lt_cv_dlopen_self=yes
 
11820
    ;;
 
11821
 
 
11822
  mingw* | pw32* | cegcc*)
 
11823
    lt_cv_dlopen="LoadLibrary"
 
11824
    lt_cv_dlopen_libs=
 
11825
    ;;
 
11826
 
 
11827
  cygwin*)
 
11828
    lt_cv_dlopen="dlopen"
 
11829
    lt_cv_dlopen_libs=
 
11830
    ;;
 
11831
 
 
11832
  darwin*)
 
11833
  # if libdl is installed we need to link against it
 
11834
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11835
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11836
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11837
  $as_echo_n "(cached) " >&6
 
11838
else
 
11839
  ac_check_lib_save_LIBS=$LIBS
 
11840
LIBS="-ldl  $LIBS"
 
11841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11842
/* end confdefs.h.  */
 
11843
 
 
11844
/* Override any GCC internal prototype to avoid an error.
 
11845
   Use char because int might match the return type of a GCC
 
11846
   builtin and then its argument prototype would still apply.  */
 
11847
#ifdef __cplusplus
 
11848
extern "C"
 
11849
#endif
 
11850
char dlopen ();
 
11851
int
 
11852
main ()
 
11853
{
 
11854
return dlopen ();
 
11855
  ;
 
11856
  return 0;
 
11857
}
 
11858
_ACEOF
 
11859
if ac_fn_c_try_link "$LINENO"; then :
 
11860
  ac_cv_lib_dl_dlopen=yes
 
11861
else
 
11862
  ac_cv_lib_dl_dlopen=no
 
11863
fi
 
11864
rm -f core conftest.err conftest.$ac_objext \
 
11865
    conftest$ac_exeext conftest.$ac_ext
 
11866
LIBS=$ac_check_lib_save_LIBS
 
11867
fi
 
11868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11869
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11870
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11871
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11872
else
 
11873
 
 
11874
    lt_cv_dlopen="dyld"
 
11875
    lt_cv_dlopen_libs=
 
11876
    lt_cv_dlopen_self=yes
 
11877
 
 
11878
fi
 
11879
 
 
11880
    ;;
 
11881
 
 
11882
  *)
 
11883
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
11884
if test "x$ac_cv_func_shl_load" = xyes; then :
 
11885
  lt_cv_dlopen="shl_load"
 
11886
else
 
11887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
11888
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
11889
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
11890
  $as_echo_n "(cached) " >&6
 
11891
else
 
11892
  ac_check_lib_save_LIBS=$LIBS
 
11893
LIBS="-ldld  $LIBS"
 
11894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11895
/* end confdefs.h.  */
 
11896
 
 
11897
/* Override any GCC internal prototype to avoid an error.
 
11898
   Use char because int might match the return type of a GCC
 
11899
   builtin and then its argument prototype would still apply.  */
 
11900
#ifdef __cplusplus
 
11901
extern "C"
 
11902
#endif
 
11903
char shl_load ();
 
11904
int
 
11905
main ()
 
11906
{
 
11907
return shl_load ();
 
11908
  ;
 
11909
  return 0;
 
11910
}
 
11911
_ACEOF
 
11912
if ac_fn_c_try_link "$LINENO"; then :
 
11913
  ac_cv_lib_dld_shl_load=yes
 
11914
else
 
11915
  ac_cv_lib_dld_shl_load=no
 
11916
fi
 
11917
rm -f core conftest.err conftest.$ac_objext \
 
11918
    conftest$ac_exeext conftest.$ac_ext
 
11919
LIBS=$ac_check_lib_save_LIBS
 
11920
fi
 
11921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11922
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11923
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11924
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11925
else
 
11926
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11927
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11928
  lt_cv_dlopen="dlopen"
 
11929
else
 
11930
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11931
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11932
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11933
  $as_echo_n "(cached) " >&6
 
11934
else
 
11935
  ac_check_lib_save_LIBS=$LIBS
 
11936
LIBS="-ldl  $LIBS"
 
11937
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11938
/* end confdefs.h.  */
 
11939
 
 
11940
/* Override any GCC internal prototype to avoid an error.
 
11941
   Use char because int might match the return type of a GCC
 
11942
   builtin and then its argument prototype would still apply.  */
 
11943
#ifdef __cplusplus
 
11944
extern "C"
 
11945
#endif
 
11946
char dlopen ();
 
11947
int
 
11948
main ()
 
11949
{
 
11950
return dlopen ();
 
11951
  ;
 
11952
  return 0;
 
11953
}
 
11954
_ACEOF
 
11955
if ac_fn_c_try_link "$LINENO"; then :
 
11956
  ac_cv_lib_dl_dlopen=yes
 
11957
else
 
11958
  ac_cv_lib_dl_dlopen=no
 
11959
fi
 
11960
rm -f core conftest.err conftest.$ac_objext \
 
11961
    conftest$ac_exeext conftest.$ac_ext
 
11962
LIBS=$ac_check_lib_save_LIBS
 
11963
fi
 
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11965
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11966
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11967
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11968
else
 
11969
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11970
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11971
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11972
  $as_echo_n "(cached) " >&6
 
11973
else
 
11974
  ac_check_lib_save_LIBS=$LIBS
 
11975
LIBS="-lsvld  $LIBS"
 
11976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11977
/* end confdefs.h.  */
 
11978
 
 
11979
/* Override any GCC internal prototype to avoid an error.
 
11980
   Use char because int might match the return type of a GCC
 
11981
   builtin and then its argument prototype would still apply.  */
 
11982
#ifdef __cplusplus
 
11983
extern "C"
 
11984
#endif
 
11985
char dlopen ();
 
11986
int
 
11987
main ()
 
11988
{
 
11989
return dlopen ();
 
11990
  ;
 
11991
  return 0;
 
11992
}
 
11993
_ACEOF
 
11994
if ac_fn_c_try_link "$LINENO"; then :
 
11995
  ac_cv_lib_svld_dlopen=yes
 
11996
else
 
11997
  ac_cv_lib_svld_dlopen=no
 
11998
fi
 
11999
rm -f core conftest.err conftest.$ac_objext \
 
12000
    conftest$ac_exeext conftest.$ac_ext
 
12001
LIBS=$ac_check_lib_save_LIBS
 
12002
fi
 
12003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12004
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12005
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
12006
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12007
else
 
12008
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12009
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12010
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
12011
  $as_echo_n "(cached) " >&6
 
12012
else
 
12013
  ac_check_lib_save_LIBS=$LIBS
 
12014
LIBS="-ldld  $LIBS"
 
12015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12016
/* end confdefs.h.  */
 
12017
 
 
12018
/* Override any GCC internal prototype to avoid an error.
 
12019
   Use char because int might match the return type of a GCC
 
12020
   builtin and then its argument prototype would still apply.  */
 
12021
#ifdef __cplusplus
 
12022
extern "C"
 
12023
#endif
 
12024
char dld_link ();
 
12025
int
 
12026
main ()
 
12027
{
 
12028
return dld_link ();
 
12029
  ;
 
12030
  return 0;
 
12031
}
 
12032
_ACEOF
 
12033
if ac_fn_c_try_link "$LINENO"; then :
 
12034
  ac_cv_lib_dld_dld_link=yes
 
12035
else
 
12036
  ac_cv_lib_dld_dld_link=no
 
12037
fi
 
12038
rm -f core conftest.err conftest.$ac_objext \
 
12039
    conftest$ac_exeext conftest.$ac_ext
 
12040
LIBS=$ac_check_lib_save_LIBS
 
12041
fi
 
12042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12043
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12044
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
12045
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12046
fi
 
12047
 
 
12048
 
 
12049
fi
 
12050
 
 
12051
 
 
12052
fi
 
12053
 
 
12054
 
 
12055
fi
 
12056
 
 
12057
 
 
12058
fi
 
12059
 
 
12060
 
 
12061
fi
 
12062
 
 
12063
    ;;
 
12064
  esac
 
12065
 
 
12066
  if test "x$lt_cv_dlopen" != xno; then
 
12067
    enable_dlopen=yes
 
12068
  else
 
12069
    enable_dlopen=no
 
12070
  fi
 
12071
 
 
12072
  case $lt_cv_dlopen in
 
12073
  dlopen)
 
12074
    save_CPPFLAGS="$CPPFLAGS"
 
12075
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12076
 
 
12077
    save_LDFLAGS="$LDFLAGS"
 
12078
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12079
 
 
12080
    save_LIBS="$LIBS"
 
12081
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12082
 
 
12083
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12084
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12085
if ${lt_cv_dlopen_self+:} false; then :
 
12086
  $as_echo_n "(cached) " >&6
 
12087
else
 
12088
          if test "$cross_compiling" = yes; then :
 
12089
  lt_cv_dlopen_self=cross
 
12090
else
 
12091
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12092
  lt_status=$lt_dlunknown
 
12093
  cat > conftest.$ac_ext <<_LT_EOF
 
12094
#line $LINENO "configure"
 
12095
#include "confdefs.h"
 
12096
 
 
12097
#if HAVE_DLFCN_H
 
12098
#include <dlfcn.h>
 
12099
#endif
 
12100
 
 
12101
#include <stdio.h>
 
12102
 
 
12103
#ifdef RTLD_GLOBAL
 
12104
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12105
#else
 
12106
#  ifdef DL_GLOBAL
 
12107
#    define LT_DLGLOBAL         DL_GLOBAL
 
12108
#  else
 
12109
#    define LT_DLGLOBAL         0
 
12110
#  endif
 
12111
#endif
 
12112
 
 
12113
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12114
   find out it does not work in some platform. */
 
12115
#ifndef LT_DLLAZY_OR_NOW
 
12116
#  ifdef RTLD_LAZY
 
12117
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12118
#  else
 
12119
#    ifdef DL_LAZY
 
12120
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12121
#    else
 
12122
#      ifdef RTLD_NOW
 
12123
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12124
#      else
 
12125
#        ifdef DL_NOW
 
12126
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12127
#        else
 
12128
#          define LT_DLLAZY_OR_NOW      0
 
12129
#        endif
 
12130
#      endif
 
12131
#    endif
 
12132
#  endif
 
12133
#endif
 
12134
 
 
12135
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12136
   correspondingly for the symbols needed.  */
 
12137
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12138
int fnord () __attribute__((visibility("default")));
 
12139
#endif
 
12140
 
 
12141
int fnord () { return 42; }
 
12142
int main ()
 
12143
{
 
12144
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12145
  int status = $lt_dlunknown;
 
12146
 
 
12147
  if (self)
 
12148
    {
 
12149
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12150
      else
 
12151
        {
 
12152
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12153
          else puts (dlerror ());
 
12154
        }
 
12155
      /* dlclose (self); */
 
12156
    }
 
12157
  else
 
12158
    puts (dlerror ());
 
12159
 
 
12160
  return status;
 
12161
}
 
12162
_LT_EOF
 
12163
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12164
  (eval $ac_link) 2>&5
 
12165
  ac_status=$?
 
12166
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12167
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12168
    (./conftest; exit; ) >&5 2>/dev/null
 
12169
    lt_status=$?
 
12170
    case x$lt_status in
 
12171
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12172
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12173
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12174
    esac
 
12175
  else :
 
12176
    # compilation failed
 
12177
    lt_cv_dlopen_self=no
 
12178
  fi
 
12179
fi
 
12180
rm -fr conftest*
 
12181
 
 
12182
 
 
12183
fi
 
12184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12185
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12186
 
 
12187
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12188
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12189
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12190
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12191
if ${lt_cv_dlopen_self_static+:} false; then :
 
12192
  $as_echo_n "(cached) " >&6
 
12193
else
 
12194
          if test "$cross_compiling" = yes; then :
 
12195
  lt_cv_dlopen_self_static=cross
 
12196
else
 
12197
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12198
  lt_status=$lt_dlunknown
 
12199
  cat > conftest.$ac_ext <<_LT_EOF
 
12200
#line $LINENO "configure"
 
12201
#include "confdefs.h"
 
12202
 
 
12203
#if HAVE_DLFCN_H
 
12204
#include <dlfcn.h>
 
12205
#endif
 
12206
 
 
12207
#include <stdio.h>
 
12208
 
 
12209
#ifdef RTLD_GLOBAL
 
12210
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12211
#else
 
12212
#  ifdef DL_GLOBAL
 
12213
#    define LT_DLGLOBAL         DL_GLOBAL
 
12214
#  else
 
12215
#    define LT_DLGLOBAL         0
 
12216
#  endif
 
12217
#endif
 
12218
 
 
12219
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12220
   find out it does not work in some platform. */
 
12221
#ifndef LT_DLLAZY_OR_NOW
 
12222
#  ifdef RTLD_LAZY
 
12223
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12224
#  else
 
12225
#    ifdef DL_LAZY
 
12226
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12227
#    else
 
12228
#      ifdef RTLD_NOW
 
12229
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12230
#      else
 
12231
#        ifdef DL_NOW
 
12232
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12233
#        else
 
12234
#          define LT_DLLAZY_OR_NOW      0
 
12235
#        endif
 
12236
#      endif
 
12237
#    endif
 
12238
#  endif
 
12239
#endif
 
12240
 
 
12241
/* When -fvisbility=hidden is used, assume the code has been annotated
 
12242
   correspondingly for the symbols needed.  */
 
12243
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
12244
int fnord () __attribute__((visibility("default")));
 
12245
#endif
 
12246
 
 
12247
int fnord () { return 42; }
 
12248
int main ()
 
12249
{
 
12250
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12251
  int status = $lt_dlunknown;
 
12252
 
 
12253
  if (self)
 
12254
    {
 
12255
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12256
      else
 
12257
        {
 
12258
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
12259
          else puts (dlerror ());
 
12260
        }
 
12261
      /* dlclose (self); */
 
12262
    }
 
12263
  else
 
12264
    puts (dlerror ());
 
12265
 
 
12266
  return status;
 
12267
}
 
12268
_LT_EOF
 
12269
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12270
  (eval $ac_link) 2>&5
 
12271
  ac_status=$?
 
12272
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12273
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12274
    (./conftest; exit; ) >&5 2>/dev/null
 
12275
    lt_status=$?
 
12276
    case x$lt_status in
 
12277
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12278
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12279
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12280
    esac
 
12281
  else :
 
12282
    # compilation failed
 
12283
    lt_cv_dlopen_self_static=no
 
12284
  fi
 
12285
fi
 
12286
rm -fr conftest*
 
12287
 
 
12288
 
 
12289
fi
 
12290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12291
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12292
    fi
 
12293
 
 
12294
    CPPFLAGS="$save_CPPFLAGS"
 
12295
    LDFLAGS="$save_LDFLAGS"
 
12296
    LIBS="$save_LIBS"
 
12297
    ;;
 
12298
  esac
 
12299
 
 
12300
  case $lt_cv_dlopen_self in
 
12301
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12302
  *) enable_dlopen_self=unknown ;;
 
12303
  esac
 
12304
 
 
12305
  case $lt_cv_dlopen_self_static in
 
12306
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12307
  *) enable_dlopen_self_static=unknown ;;
 
12308
  esac
 
12309
fi
 
12310
 
 
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
 
12316
 
 
12317
 
 
12318
 
 
12319
 
 
12320
 
 
12321
 
 
12322
 
 
12323
 
 
12324
 
 
12325
 
 
12326
 
 
12327
striplib=
 
12328
old_striplib=
 
12329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12330
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12331
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12332
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12333
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12334
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12335
$as_echo "yes" >&6; }
 
12336
else
 
12337
# FIXME - insert some real tests, host_os isn't really good enough
 
12338
  case $host_os in
 
12339
  darwin*)
 
12340
    if test -n "$STRIP" ; then
 
12341
      striplib="$STRIP -x"
 
12342
      old_striplib="$STRIP -S"
 
12343
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12344
$as_echo "yes" >&6; }
 
12345
    else
 
12346
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12347
$as_echo "no" >&6; }
 
12348
    fi
 
12349
    ;;
 
12350
  *)
 
12351
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12352
$as_echo "no" >&6; }
 
12353
    ;;
 
12354
  esac
 
12355
fi
 
12356
 
 
12357
 
 
12358
 
 
12359
 
 
12360
 
 
12361
 
 
12362
 
 
12363
 
 
12364
 
 
12365
 
 
12366
 
 
12367
 
 
12368
  # Report which library types will actually be built
 
12369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12370
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12372
$as_echo "$can_build_shared" >&6; }
 
12373
 
 
12374
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12375
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12376
  test "$can_build_shared" = "no" && enable_shared=no
 
12377
 
 
12378
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12379
  # are all built from PIC.
 
12380
  case $host_os in
 
12381
  aix3*)
 
12382
    test "$enable_shared" = yes && enable_static=no
 
12383
    if test -n "$RANLIB"; then
 
12384
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12385
      postinstall_cmds='$RANLIB $lib'
 
12386
    fi
 
12387
    ;;
 
12388
 
 
12389
  aix[4-9]*)
 
12390
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12391
      test "$enable_shared" = yes && enable_static=no
 
12392
    fi
 
12393
    ;;
 
12394
  esac
 
12395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12396
$as_echo "$enable_shared" >&6; }
 
12397
 
 
12398
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12399
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12400
  # Make sure either enable_shared or enable_static is yes.
 
12401
  test "$enable_shared" = yes || enable_static=yes
 
12402
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12403
$as_echo "$enable_static" >&6; }
 
12404
 
 
12405
 
 
12406
 
 
12407
 
 
12408
fi
 
12409
ac_ext=c
 
12410
ac_cpp='$CPP $CPPFLAGS'
 
12411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12414
 
 
12415
CC="$lt_save_CC"
 
12416
 
 
12417
 
 
12418
 
 
12419
 
 
12420
 
 
12421
 
 
12422
 
 
12423
 
 
12424
 
 
12425
 
 
12426
 
 
12427
 
 
12428
 
 
12429
 
 
12430
 
 
12431
        ac_config_commands="$ac_config_commands libtool"
 
12432
 
 
12433
 
 
12434
 
 
12435
 
 
12436
# Only expand once:
 
12437
 
 
12438
 
 
12439
 
 
12440
# By default we simply use the C compiler to build assembly code.
 
12441
 
 
12442
test "${CCAS+set}" = set || CCAS=$CC
 
12443
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
12444
 
 
12445
 
 
12446
 
 
12447
depcc="$CCAS"   am_compiler_list=
 
12448
 
 
12449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
12450
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
12451
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
 
12452
  $as_echo_n "(cached) " >&6
 
12453
else
 
12454
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
12455
  # We make a subdir and do the tests there.  Otherwise we can end up
 
12456
  # making bogus files that we don't know about and never remove.  For
 
12457
  # instance it was reported that on HP-UX the gcc test will end up
 
12458
  # making a dummy file named `D' -- because `-MD' means `put the output
 
12459
  # in D'.
 
12460
  rm -rf conftest.dir
 
12461
  mkdir conftest.dir
 
12462
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
12463
  # using a relative directory.
 
12464
  cp "$am_depcomp" conftest.dir
 
12465
  cd conftest.dir
 
12466
  # We will build objects and dependencies in a subdirectory because
 
12467
  # it helps to detect inapplicable dependency modes.  For instance
 
12468
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
12469
  # side effect of compilation, but ICC will put the dependencies in
 
12470
  # the current directory while Tru64 will put them in the object
 
12471
  # directory.
 
12472
  mkdir sub
 
12473
 
 
12474
  am_cv_CCAS_dependencies_compiler_type=none
 
12475
  if test "$am_compiler_list" = ""; then
 
12476
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
12477
  fi
 
12478
  am__universal=false
 
12479
 
 
12480
 
 
12481
  for depmode in $am_compiler_list; do
 
12482
    # Setup a source with many dependencies, because some compilers
 
12483
    # like to wrap large dependency lists on column 80 (with \), and
 
12484
    # we should not choose a depcomp mode which is confused by this.
 
12485
    #
 
12486
    # We need to recreate these files for each test, as the compiler may
 
12487
    # overwrite some of them when testing with obscure command lines.
 
12488
    # This happens at least with the AIX C compiler.
 
12489
    : > sub/conftest.c
 
12490
    for i in 1 2 3 4 5 6; do
 
12491
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
12492
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
12493
      # Solaris 8's {/usr,}/bin/sh.
 
12494
      touch sub/conftst$i.h
 
12495
    done
 
12496
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12497
 
 
12498
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
12499
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12500
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
12501
    # versions had trouble with output in subdirs
 
12502
    am__obj=sub/conftest.${OBJEXT-o}
 
12503
    am__minus_obj="-o $am__obj"
 
12504
    case $depmode in
 
12505
    gcc)
 
12506
      # This depmode causes a compiler race in universal mode.
 
12507
      test "$am__universal" = false || continue
 
12508
      ;;
 
12509
    nosideeffect)
 
12510
      # after this tag, mechanisms are not by side-effect, so they'll
 
12511
      # only be used when explicitly requested
 
12512
      if test "x$enable_dependency_tracking" = xyes; then
 
12513
        continue
 
12514
      else
 
12515
        break
 
12516
      fi
 
12517
      ;;
 
12518
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
12519
      # This compiler won't grok `-c -o', but also, the minuso test has
 
12520
      # not run yet.  These depmodes are late enough in the game, and
 
12521
      # so weak that their functioning should not be impacted.
 
12522
      am__obj=conftest.${OBJEXT-o}
 
12523
      am__minus_obj=
 
12524
      ;;
 
12525
    none) break ;;
 
12526
    esac
 
12527
    if depmode=$depmode \
 
12528
       source=sub/conftest.c object=$am__obj \
 
12529
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12530
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12531
         >/dev/null 2>conftest.err &&
 
12532
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12533
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12534
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12535
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12536
      # icc doesn't choke on unknown options, it will just issue warnings
 
12537
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12538
      # that says an option was ignored or not supported.
 
12539
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12540
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12541
      # The diagnosis changed in icc 8.0:
 
12542
      #   icc: Command line remark: option '-MP' not supported
 
12543
      if (grep 'ignoring option' conftest.err ||
 
12544
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12545
        am_cv_CCAS_dependencies_compiler_type=$depmode
 
12546
        break
 
12547
      fi
 
12548
    fi
 
12549
  done
 
12550
 
 
12551
  cd ..
 
12552
  rm -rf conftest.dir
 
12553
else
 
12554
  am_cv_CCAS_dependencies_compiler_type=none
 
12555
fi
 
12556
 
 
12557
fi
 
12558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 
12559
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 
12560
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 
12561
 
 
12562
 if
 
12563
  test "x$enable_dependency_tracking" != xno \
 
12564
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 
12565
  am__fastdepCCAS_TRUE=
 
12566
  am__fastdepCCAS_FALSE='#'
 
12567
else
 
12568
  am__fastdepCCAS_TRUE='#'
 
12569
  am__fastdepCCAS_FALSE=
 
12570
fi
 
12571
 
 
12572
 
 
12573
 
 
12574
# Initialize maintainer mode
 
12575
 
 
12576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
12577
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
12578
    # Check whether --enable-maintainer-mode was given.
 
12579
if test "${enable_maintainer_mode+set}" = set; then :
 
12580
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
12581
else
 
12582
  USE_MAINTAINER_MODE=yes
 
12583
fi
 
12584
 
 
12585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
12586
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
12587
   if test $USE_MAINTAINER_MODE = yes; then
 
12588
  MAINTAINER_MODE_TRUE=
 
12589
  MAINTAINER_MODE_FALSE='#'
 
12590
else
 
12591
  MAINTAINER_MODE_TRUE='#'
 
12592
  MAINTAINER_MODE_FALSE=
 
12593
fi
 
12594
 
 
12595
  MAINT=$MAINTAINER_MODE_TRUE
 
12596
 
 
12597
 
 
12598
 
 
12599
# Check for pkg-config
 
12600
 
 
12601
 
 
12602
 
 
12603
 
 
12604
 
 
12605
 
 
12606
 
 
12607
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
12608
        if test -n "$ac_tool_prefix"; then
 
12609
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
12610
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
12611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12612
$as_echo_n "checking for $ac_word... " >&6; }
 
12613
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
12614
  $as_echo_n "(cached) " >&6
 
12615
else
 
12616
  case $PKG_CONFIG in
 
12617
  [\\/]* | ?:[\\/]*)
 
12618
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
12619
  ;;
 
12620
  *)
 
12621
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12622
for as_dir in $PATH
 
12623
do
 
12624
  IFS=$as_save_IFS
 
12625
  test -z "$as_dir" && as_dir=.
 
12626
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12627
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12628
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12629
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12630
    break 2
 
12631
  fi
 
12632
done
 
12633
  done
 
12634
IFS=$as_save_IFS
 
12635
 
 
12636
  ;;
 
12637
esac
 
12638
fi
 
12639
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
12640
if test -n "$PKG_CONFIG"; then
 
12641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
12642
$as_echo "$PKG_CONFIG" >&6; }
 
12643
else
 
12644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12645
$as_echo "no" >&6; }
 
12646
fi
 
12647
 
 
12648
 
 
12649
fi
 
12650
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
12651
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
12652
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
12653
set dummy pkg-config; ac_word=$2
 
12654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12655
$as_echo_n "checking for $ac_word... " >&6; }
 
12656
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
12657
  $as_echo_n "(cached) " >&6
 
12658
else
 
12659
  case $ac_pt_PKG_CONFIG in
 
12660
  [\\/]* | ?:[\\/]*)
 
12661
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
12662
  ;;
 
12663
  *)
 
12664
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12665
for as_dir in $PATH
 
12666
do
 
12667
  IFS=$as_save_IFS
 
12668
  test -z "$as_dir" && as_dir=.
 
12669
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12670
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12671
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12672
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12673
    break 2
 
12674
  fi
 
12675
done
 
12676
  done
 
12677
IFS=$as_save_IFS
 
12678
 
 
12679
  ;;
 
12680
esac
 
12681
fi
 
12682
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
12683
if test -n "$ac_pt_PKG_CONFIG"; then
 
12684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
12685
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
12686
else
 
12687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12688
$as_echo "no" >&6; }
 
12689
fi
 
12690
 
 
12691
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
12692
    PKG_CONFIG=""
 
12693
  else
 
12694
    case $cross_compiling:$ac_tool_warned in
 
12695
yes:)
 
12696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12698
ac_tool_warned=yes ;;
 
12699
esac
 
12700
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
12701
  fi
 
12702
else
 
12703
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
12704
fi
 
12705
 
 
12706
fi
 
12707
if test -n "$PKG_CONFIG"; then
 
12708
        _pkg_min_version=0.16
 
12709
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
12710
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
12711
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
12712
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12713
$as_echo "yes" >&6; }
 
12714
        else
 
12715
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12716
$as_echo "no" >&6; }
 
12717
                PKG_CONFIG=""
 
12718
        fi
 
12719
fi
 
12720
 
 
12721
 
 
12722
###########################
 
12723
# Check target architecture
 
12724
###########################
 
12725
 
 
12726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
 
12727
$as_echo_n "checking for target architecture... " >&6; }
 
12728
case x"$target" in
 
12729
  xNONE | x)
 
12730
    target_or_host="$host" ;;
 
12731
  *)
 
12732
    target_or_host="$target" ;;
 
12733
esac
 
12734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_or_host" >&5
 
12735
$as_echo "$target_or_host" >&6; }
 
12736
 
 
12737
case "$target_or_host" in
 
12738
  i*86-*-*)
 
12739
    have_x86=yes
 
12740
 
 
12741
$as_echo "#define ARCH_X86 1" >>confdefs.h
 
12742
 
 
12743
    ;;
 
12744
  x86_64-*-*)
 
12745
    have_x86=yes
 
12746
 
 
12747
$as_echo "#define ARCH_X86 1" >>confdefs.h
 
12748
 
 
12749
 
 
12750
$as_echo "#define ARCH_X86_64 1" >>confdefs.h
 
12751
 
 
12752
    ;;
 
12753
  ppc-*-* | powerpc-*)
 
12754
    have_ppc=yes
 
12755
 
 
12756
$as_echo "#define ARCH_PPC 1" >>confdefs.h
 
12757
 
 
12758
    ;;
 
12759
  ppc64-*-* | powerpc64-*)
 
12760
    have_ppc=yes
 
12761
 
 
12762
$as_echo "#define ARCH_PPC 1" >>confdefs.h
 
12763
 
 
12764
 
 
12765
$as_echo "#define ARCH_PPC64 1" >>confdefs.h
 
12766
 
 
12767
    ;;
 
12768
  *)
 
12769
    ;;
 
12770
esac
 
12771
 
 
12772
 
 
12773
#################
 
12774
# Check for Win32
 
12775
#################
 
12776
 
 
12777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
 
12778
$as_echo_n "checking for some Win32 platform... " >&6; }
 
12779
case "$target_or_host" in
 
12780
  *-*-mingw* | *-*-cygwin*)
 
12781
    platform_win32=yes
 
12782
    ;;
 
12783
  *)
 
12784
    platform_win32=no
 
12785
    ;;
 
12786
esac
 
12787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
 
12788
$as_echo "$platform_win32" >&6; }
 
12789
 if test "$platform_win32" = "yes"; then
 
12790
  PLATFORM_WIN32_TRUE=
 
12791
  PLATFORM_WIN32_FALSE='#'
 
12792
else
 
12793
  PLATFORM_WIN32_TRUE='#'
 
12794
  PLATFORM_WIN32_FALSE=
 
12795
fi
 
12796
 
 
12797
 
 
12798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
 
12799
$as_echo_n "checking for native Win32... " >&6; }
 
12800
case "$target_or_host" in
 
12801
  *-*-mingw*)
 
12802
    os_win32=yes
 
12803
    case "$host" in
 
12804
      x86_64-*-*)
 
12805
        ;;
 
12806
      *)
 
12807
        WIN32_LARGE_ADDRESS_AWARE='-Wl,--large-address-aware'
 
12808
        ;;
 
12809
    esac
 
12810
    PATHSEP=';'
 
12811
    ;;
 
12812
  *)
 
12813
    os_win32=no
 
12814
    PATHSEP=':'
 
12815
    ;;
 
12816
esac
 
12817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
 
12818
$as_echo "$os_win32" >&6; }
 
12819
 
 
12820
 
 
12821
 if test "$os_win32" = "yes"; then
 
12822
  OS_WIN32_TRUE=
 
12823
  OS_WIN32_FALSE='#'
 
12824
else
 
12825
  OS_WIN32_TRUE='#'
 
12826
  OS_WIN32_FALSE=
 
12827
fi
 
12828
 
 
12829
 if test "$os_win32" != "yes"; then
 
12830
  OS_UNIX_TRUE=
 
12831
  OS_UNIX_FALSE='#'
 
12832
else
 
12833
  OS_UNIX_TRUE='#'
 
12834
  OS_UNIX_FALSE=
 
12835
fi
 
12836
 
 
12837
 
 
12838
if test "$os_win32" = "yes"; then
 
12839
  # Extract the first word of "lib.exe", so it can be a program name with args.
 
12840
set dummy lib.exe; ac_word=$2
 
12841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12842
$as_echo_n "checking for $ac_word... " >&6; }
 
12843
if ${ac_cv_prog_ms_librarian+:} false; then :
 
12844
  $as_echo_n "(cached) " >&6
 
12845
else
 
12846
  if test -n "$ms_librarian"; then
 
12847
  ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
 
12848
else
 
12849
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12850
for as_dir in $PATH
 
12851
do
 
12852
  IFS=$as_save_IFS
 
12853
  test -z "$as_dir" && as_dir=.
 
12854
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12855
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12856
    ac_cv_prog_ms_librarian="yes"
 
12857
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12858
    break 2
 
12859
  fi
 
12860
done
 
12861
  done
 
12862
IFS=$as_save_IFS
 
12863
 
 
12864
  test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
 
12865
fi
 
12866
fi
 
12867
ms_librarian=$ac_cv_prog_ms_librarian
 
12868
if test -n "$ms_librarian"; then
 
12869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
 
12870
$as_echo "$ms_librarian" >&6; }
 
12871
else
 
12872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12873
$as_echo "no" >&6; }
 
12874
fi
 
12875
 
 
12876
 
 
12877
  if test -n "$ac_tool_prefix"; then
 
12878
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
12879
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
12880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12881
$as_echo_n "checking for $ac_word... " >&6; }
 
12882
if ${ac_cv_prog_WINDRES+:} false; then :
 
12883
  $as_echo_n "(cached) " >&6
 
12884
else
 
12885
  if test -n "$WINDRES"; then
 
12886
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
12887
else
 
12888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12889
for as_dir in $PATH
 
12890
do
 
12891
  IFS=$as_save_IFS
 
12892
  test -z "$as_dir" && as_dir=.
 
12893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12894
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12895
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
12896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12897
    break 2
 
12898
  fi
 
12899
done
 
12900
  done
 
12901
IFS=$as_save_IFS
 
12902
 
 
12903
fi
 
12904
fi
 
12905
WINDRES=$ac_cv_prog_WINDRES
 
12906
if test -n "$WINDRES"; then
 
12907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
 
12908
$as_echo "$WINDRES" >&6; }
 
12909
else
 
12910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12911
$as_echo "no" >&6; }
 
12912
fi
 
12913
 
 
12914
 
 
12915
fi
 
12916
if test -z "$ac_cv_prog_WINDRES"; then
 
12917
  ac_ct_WINDRES=$WINDRES
 
12918
  # Extract the first word of "windres", so it can be a program name with args.
 
12919
set dummy windres; ac_word=$2
 
12920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12921
$as_echo_n "checking for $ac_word... " >&6; }
 
12922
if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
 
12923
  $as_echo_n "(cached) " >&6
 
12924
else
 
12925
  if test -n "$ac_ct_WINDRES"; then
 
12926
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
12927
else
 
12928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12929
for as_dir in $PATH
 
12930
do
 
12931
  IFS=$as_save_IFS
 
12932
  test -z "$as_dir" && as_dir=.
 
12933
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12934
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12935
    ac_cv_prog_ac_ct_WINDRES="windres"
 
12936
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12937
    break 2
 
12938
  fi
 
12939
done
 
12940
  done
 
12941
IFS=$as_save_IFS
 
12942
 
 
12943
fi
 
12944
fi
 
12945
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
12946
if test -n "$ac_ct_WINDRES"; then
 
12947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
 
12948
$as_echo "$ac_ct_WINDRES" >&6; }
 
12949
else
 
12950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12951
$as_echo "no" >&6; }
 
12952
fi
 
12953
 
 
12954
  if test "x$ac_ct_WINDRES" = x; then
 
12955
    WINDRES=":"
 
12956
  else
 
12957
    case $cross_compiling:$ac_tool_warned in
 
12958
yes:)
 
12959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12961
ac_tool_warned=yes ;;
 
12962
esac
 
12963
    WINDRES=$ac_ct_WINDRES
 
12964
  fi
 
12965
else
 
12966
  WINDRES="$ac_cv_prog_WINDRES"
 
12967
fi
 
12968
 
 
12969
else
 
12970
  WINDRES=":"
 
12971
fi
 
12972
 
 
12973
 if test "x$ms_librarian" = xyes; then
 
12974
  MS_LIB_AVAILABLE_TRUE=
 
12975
  MS_LIB_AVAILABLE_FALSE='#'
 
12976
else
 
12977
  MS_LIB_AVAILABLE_TRUE='#'
 
12978
  MS_LIB_AVAILABLE_FALSE=
 
12979
fi
 
12980
 
 
12981
 if test "x$WINDRES" != "x:"; then
 
12982
  HAVE_WINDRES_TRUE=
 
12983
  HAVE_WINDRES_FALSE='#'
 
12984
else
 
12985
  HAVE_WINDRES_TRUE='#'
 
12986
  HAVE_WINDRES_FALSE=
 
12987
fi
 
12988
 
 
12989
 
 
12990
 
 
12991
 
 
12992
 
 
12993
###############
 
12994
# Generic stuff
 
12995
###############
 
12996
 
 
12997
# Checks for programs.
 
12998
 
 
12999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
13000
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
13001
set x ${MAKE-make}
 
13002
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
13003
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
13004
  $as_echo_n "(cached) " >&6
 
13005
else
 
13006
  cat >conftest.make <<\_ACEOF
 
13007
SHELL = /bin/sh
 
13008
all:
 
13009
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
13010
_ACEOF
 
13011
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
13012
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
13013
  *@@@%%%=?*=@@@%%%*)
 
13014
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
13015
  *)
 
13016
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
13017
esac
 
13018
rm -f conftest.make
 
13019
fi
 
13020
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
13021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13022
$as_echo "yes" >&6; }
 
13023
  SET_MAKE=
 
13024
else
 
13025
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13026
$as_echo "no" >&6; }
 
13027
  SET_MAKE="MAKE=${MAKE-make}"
 
13028
fi
 
13029
 
 
13030
 
 
13031
# Large file support for the swap file
 
13032
# Check whether --enable-largefile was given.
 
13033
if test "${enable_largefile+set}" = set; then :
 
13034
  enableval=$enable_largefile;
 
13035
fi
 
13036
 
 
13037
if test "$enable_largefile" != no; then
 
13038
 
 
13039
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
13040
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
13041
if ${ac_cv_sys_largefile_CC+:} false; then :
 
13042
  $as_echo_n "(cached) " >&6
 
13043
else
 
13044
  ac_cv_sys_largefile_CC=no
 
13045
     if test "$GCC" != yes; then
 
13046
       ac_save_CC=$CC
 
13047
       while :; do
 
13048
         # IRIX 6.2 and later do not support large files by default,
 
13049
         # so use the C compiler's -n32 option if that helps.
 
13050
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13051
/* end confdefs.h.  */
 
13052
#include <sys/types.h>
 
13053
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13054
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13055
    since some C++ compilers masquerading as C compilers
 
13056
    incorrectly reject 9223372036854775807.  */
 
13057
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13058
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13059
                       && LARGE_OFF_T % 2147483647 == 1)
 
13060
                      ? 1 : -1];
 
13061
int
 
13062
main ()
 
13063
{
 
13064
 
 
13065
  ;
 
13066
  return 0;
 
13067
}
 
13068
_ACEOF
 
13069
         if ac_fn_c_try_compile "$LINENO"; then :
 
13070
  break
 
13071
fi
 
13072
rm -f core conftest.err conftest.$ac_objext
 
13073
         CC="$CC -n32"
 
13074
         if ac_fn_c_try_compile "$LINENO"; then :
 
13075
  ac_cv_sys_largefile_CC=' -n32'; break
 
13076
fi
 
13077
rm -f core conftest.err conftest.$ac_objext
 
13078
         break
 
13079
       done
 
13080
       CC=$ac_save_CC
 
13081
       rm -f conftest.$ac_ext
 
13082
    fi
 
13083
fi
 
13084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
13085
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
 
13086
  if test "$ac_cv_sys_largefile_CC" != no; then
 
13087
    CC=$CC$ac_cv_sys_largefile_CC
 
13088
  fi
 
13089
 
 
13090
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
13091
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
13092
if ${ac_cv_sys_file_offset_bits+:} false; then :
 
13093
  $as_echo_n "(cached) " >&6
 
13094
else
 
13095
  while :; do
 
13096
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13097
/* end confdefs.h.  */
 
13098
#include <sys/types.h>
 
13099
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13100
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13101
    since some C++ compilers masquerading as C compilers
 
13102
    incorrectly reject 9223372036854775807.  */
 
13103
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13104
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13105
                       && LARGE_OFF_T % 2147483647 == 1)
 
13106
                      ? 1 : -1];
 
13107
int
 
13108
main ()
 
13109
{
 
13110
 
 
13111
  ;
 
13112
  return 0;
 
13113
}
 
13114
_ACEOF
 
13115
if ac_fn_c_try_compile "$LINENO"; then :
 
13116
  ac_cv_sys_file_offset_bits=no; break
 
13117
fi
 
13118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13119
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13120
/* end confdefs.h.  */
 
13121
#define _FILE_OFFSET_BITS 64
 
13122
#include <sys/types.h>
 
13123
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13124
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13125
    since some C++ compilers masquerading as C compilers
 
13126
    incorrectly reject 9223372036854775807.  */
 
13127
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13128
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13129
                       && LARGE_OFF_T % 2147483647 == 1)
 
13130
                      ? 1 : -1];
 
13131
int
 
13132
main ()
 
13133
{
 
13134
 
 
13135
  ;
 
13136
  return 0;
 
13137
}
 
13138
_ACEOF
 
13139
if ac_fn_c_try_compile "$LINENO"; then :
 
13140
  ac_cv_sys_file_offset_bits=64; break
 
13141
fi
 
13142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13143
  ac_cv_sys_file_offset_bits=unknown
 
13144
  break
 
13145
done
 
13146
fi
 
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
13148
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
13149
case $ac_cv_sys_file_offset_bits in #(
 
13150
  no | unknown) ;;
 
13151
  *)
 
13152
cat >>confdefs.h <<_ACEOF
 
13153
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
13154
_ACEOF
 
13155
;;
 
13156
esac
 
13157
rm -rf conftest*
 
13158
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
13159
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
13160
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
13161
if ${ac_cv_sys_large_files+:} false; then :
 
13162
  $as_echo_n "(cached) " >&6
 
13163
else
 
13164
  while :; do
 
13165
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13166
/* end confdefs.h.  */
 
13167
#include <sys/types.h>
 
13168
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13169
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13170
    since some C++ compilers masquerading as C compilers
 
13171
    incorrectly reject 9223372036854775807.  */
 
13172
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13173
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13174
                       && LARGE_OFF_T % 2147483647 == 1)
 
13175
                      ? 1 : -1];
 
13176
int
 
13177
main ()
 
13178
{
 
13179
 
 
13180
  ;
 
13181
  return 0;
 
13182
}
 
13183
_ACEOF
 
13184
if ac_fn_c_try_compile "$LINENO"; then :
 
13185
  ac_cv_sys_large_files=no; break
 
13186
fi
 
13187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13188
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13189
/* end confdefs.h.  */
 
13190
#define _LARGE_FILES 1
 
13191
#include <sys/types.h>
 
13192
 /* Check that off_t can represent 2**63 - 1 correctly.
 
13193
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
13194
    since some C++ compilers masquerading as C compilers
 
13195
    incorrectly reject 9223372036854775807.  */
 
13196
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
13197
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
13198
                       && LARGE_OFF_T % 2147483647 == 1)
 
13199
                      ? 1 : -1];
 
13200
int
 
13201
main ()
 
13202
{
 
13203
 
 
13204
  ;
 
13205
  return 0;
 
13206
}
 
13207
_ACEOF
 
13208
if ac_fn_c_try_compile "$LINENO"; then :
 
13209
  ac_cv_sys_large_files=1; break
 
13210
fi
 
13211
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13212
  ac_cv_sys_large_files=unknown
 
13213
  break
 
13214
done
 
13215
fi
 
13216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
13217
$as_echo "$ac_cv_sys_large_files" >&6; }
 
13218
case $ac_cv_sys_large_files in #(
 
13219
  no | unknown) ;;
 
13220
  *)
 
13221
cat >>confdefs.h <<_ACEOF
 
13222
#define _LARGE_FILES $ac_cv_sys_large_files
 
13223
_ACEOF
 
13224
;;
 
13225
esac
 
13226
rm -rf conftest*
 
13227
  fi
 
13228
 
 
13229
 
 
13230
fi
 
13231
 
 
13232
 
 
13233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on debugging" >&5
 
13234
$as_echo_n "checking whether to turn on debugging... " >&6; }
 
13235
# Check whether --enable-debug was given.
 
13236
if test "${enable_debug+set}" = set; then :
 
13237
  enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
 
13238
                DEBUGFLAG="-g"
 
13239
              fi
 
13240
fi
 
13241
 
 
13242
 
 
13243
if test -n "$DEBUGFLAG"; then
 
13244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13245
$as_echo "yes" >&6; }
 
13246
  CFLAGS="$DEBUGFLAG $CFLAGS"
 
13247
else
 
13248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13249
$as_echo "no" >&6; }
 
13250
fi
 
13251
 
 
13252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn on profiling" >&5
 
13253
$as_echo_n "checking whether to turn on profiling... " >&6; }
 
13254
# Check whether --enable-profile was given.
 
13255
if test "${enable_profile+set}" = set; then :
 
13256
  enableval=$enable_profile; if eval "test x$enable_profile = xyes"; then
 
13257
                PROFFLAG="-pg"
 
13258
              fi
 
13259
fi
 
13260
 
 
13261
 
 
13262
if test -n "$PROFFLAG"; then
 
13263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
13264
$as_echo "yes" >&6; }
 
13265
  CFLAGS="$PROFFLAG $CFLAGS"
 
13266
else
 
13267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
13268
$as_echo "no" >&6; }
 
13269
fi
 
13270
 
 
13271
# Check whether --enable-ansi was given.
 
13272
if test "${enable_ansi+set}" = set; then :
 
13273
  enableval=$enable_ansi;
 
13274
else
 
13275
  enable_ansi=no
 
13276
fi
 
13277
 
 
13278
 
 
13279
if eval "test x$GCC = xyes"; then
 
13280
  case " $CFLAGS " in
 
13281
  *[\ \ ]-Wall[\ \      ]*) ;;
 
13282
  *) CFLAGS="$CFLAGS -Wall" ;;
 
13283
  esac
 
13284
 
 
13285
  if test "x$enable_ansi" = "xyes"; then
 
13286
    case " $CFLAGS " in
 
13287
    *[\ \       ]-ansi[\ \      ]*) ;;
 
13288
    *) CFLAGS="$CFLAGS -ansi" ;;
 
13289
    esac
 
13290
 
 
13291
    case " $CFLAGS " in
 
13292
    *[\ \       ]-pedantic[\ \  ]*) ;;
 
13293
    *) CFLAGS="$CFLAGS -pedantic" ;;
 
13294
    esac
 
13295
  fi
 
13296
fi
 
13297
 
 
13298
 
 
13299
# If possible, warn if C99isms are used
 
13300
 
 
13301
  extra_warnings=
 
13302
  for flag in '-Wdeclaration-after-statement'; do
 
13303
    if test -z "$extra_warnings"; then
 
13304
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13305
      CFLAGS="$CFLAGS $flag"
 
13306
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13307
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13308
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13309
/* end confdefs.h.  */
 
13310
 
 
13311
int
 
13312
main ()
 
13313
{
 
13314
 
 
13315
  ;
 
13316
  return 0;
 
13317
}
 
13318
_ACEOF
 
13319
if ac_fn_c_try_compile "$LINENO"; then :
 
13320
  extra_warnings_works=yes
 
13321
else
 
13322
  extra_warnings_works=no
 
13323
fi
 
13324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13325
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13326
$as_echo "$extra_warnings_works" >&6; }
 
13327
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13328
      if test "x$extra_warnings_works" = "xyes"; then
 
13329
        extra_warnings="$flag"
 
13330
      fi
 
13331
    fi
 
13332
  done
 
13333
 
 
13334
CFLAGS="$CFLAGS $extra_warnings"
 
13335
 
 
13336
 
 
13337
  extra_warnings=
 
13338
  for flag in '-Wmissing-prototypes'; do
 
13339
    if test -z "$extra_warnings"; then
 
13340
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13341
      CFLAGS="$CFLAGS $flag"
 
13342
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13343
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13344
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13345
/* end confdefs.h.  */
 
13346
 
 
13347
int
 
13348
main ()
 
13349
{
 
13350
 
 
13351
  ;
 
13352
  return 0;
 
13353
}
 
13354
_ACEOF
 
13355
if ac_fn_c_try_compile "$LINENO"; then :
 
13356
  extra_warnings_works=yes
 
13357
else
 
13358
  extra_warnings_works=no
 
13359
fi
 
13360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13361
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13362
$as_echo "$extra_warnings_works" >&6; }
 
13363
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13364
      if test "x$extra_warnings_works" = "xyes"; then
 
13365
        extra_warnings="$flag"
 
13366
      fi
 
13367
    fi
 
13368
  done
 
13369
 
 
13370
CFLAGS="$CFLAGS $extra_warnings"
 
13371
 
 
13372
# We really don't want anyone using code with missing prototypes, which
 
13373
# can cause random behavior. If compile breaks due to the following,
 
13374
# come to us and we will point you to a newer version which works.
 
13375
 
 
13376
  extra_warnings=
 
13377
  for flag in '-Werror=missing-prototypes'; do
 
13378
    if test -z "$extra_warnings"; then
 
13379
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13380
      CFLAGS="$CFLAGS $flag"
 
13381
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13382
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13383
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13384
/* end confdefs.h.  */
 
13385
 
 
13386
int
 
13387
main ()
 
13388
{
 
13389
 
 
13390
  ;
 
13391
  return 0;
 
13392
}
 
13393
_ACEOF
 
13394
if ac_fn_c_try_compile "$LINENO"; then :
 
13395
  extra_warnings_works=yes
 
13396
else
 
13397
  extra_warnings_works=no
 
13398
fi
 
13399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13400
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13401
$as_echo "$extra_warnings_works" >&6; }
 
13402
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13403
      if test "x$extra_warnings_works" = "xyes"; then
 
13404
        extra_warnings="$flag"
 
13405
      fi
 
13406
    fi
 
13407
  done
 
13408
 
 
13409
CFLAGS="$CFLAGS $extra_warnings"
 
13410
 
 
13411
 
 
13412
  extra_warnings=
 
13413
  for flag in '-Wstrict-prototypes'; do
 
13414
    if test -z "$extra_warnings"; then
 
13415
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13416
      CFLAGS="$CFLAGS $flag"
 
13417
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13418
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13419
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13420
/* end confdefs.h.  */
 
13421
 
 
13422
int
 
13423
main ()
 
13424
{
 
13425
 
 
13426
  ;
 
13427
  return 0;
 
13428
}
 
13429
_ACEOF
 
13430
if ac_fn_c_try_compile "$LINENO"; then :
 
13431
  extra_warnings_works=yes
 
13432
else
 
13433
  extra_warnings_works=no
 
13434
fi
 
13435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13436
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13437
$as_echo "$extra_warnings_works" >&6; }
 
13438
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13439
      if test "x$extra_warnings_works" = "xyes"; then
 
13440
        extra_warnings="$flag"
 
13441
      fi
 
13442
    fi
 
13443
  done
 
13444
 
 
13445
CFLAGS="$CFLAGS $extra_warnings"
 
13446
 
 
13447
 
 
13448
  extra_warnings=
 
13449
  for flag in '-Wmissing-declarations'; do
 
13450
    if test -z "$extra_warnings"; then
 
13451
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13452
      CFLAGS="$CFLAGS $flag"
 
13453
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13454
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13455
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13456
/* end confdefs.h.  */
 
13457
 
 
13458
int
 
13459
main ()
 
13460
{
 
13461
 
 
13462
  ;
 
13463
  return 0;
 
13464
}
 
13465
_ACEOF
 
13466
if ac_fn_c_try_compile "$LINENO"; then :
 
13467
  extra_warnings_works=yes
 
13468
else
 
13469
  extra_warnings_works=no
 
13470
fi
 
13471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13472
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13473
$as_echo "$extra_warnings_works" >&6; }
 
13474
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13475
      if test "x$extra_warnings_works" = "xyes"; then
 
13476
        extra_warnings="$flag"
 
13477
      fi
 
13478
    fi
 
13479
  done
 
13480
 
 
13481
CFLAGS="$CFLAGS $extra_warnings"
 
13482
 
 
13483
 
 
13484
  extra_warnings=
 
13485
  for flag in '-Winit-self'; do
 
13486
    if test -z "$extra_warnings"; then
 
13487
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13488
      CFLAGS="$CFLAGS $flag"
 
13489
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13490
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13491
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13492
/* end confdefs.h.  */
 
13493
 
 
13494
int
 
13495
main ()
 
13496
{
 
13497
 
 
13498
  ;
 
13499
  return 0;
 
13500
}
 
13501
_ACEOF
 
13502
if ac_fn_c_try_compile "$LINENO"; then :
 
13503
  extra_warnings_works=yes
 
13504
else
 
13505
  extra_warnings_works=no
 
13506
fi
 
13507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13508
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13509
$as_echo "$extra_warnings_works" >&6; }
 
13510
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13511
      if test "x$extra_warnings_works" = "xyes"; then
 
13512
        extra_warnings="$flag"
 
13513
      fi
 
13514
    fi
 
13515
  done
 
13516
 
 
13517
CFLAGS="$CFLAGS $extra_warnings"
 
13518
 
 
13519
 
 
13520
  extra_warnings=
 
13521
  for flag in '-Wpointer-arith'; do
 
13522
    if test -z "$extra_warnings"; then
 
13523
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13524
      CFLAGS="$CFLAGS $flag"
 
13525
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13526
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13527
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13528
/* end confdefs.h.  */
 
13529
 
 
13530
int
 
13531
main ()
 
13532
{
 
13533
 
 
13534
  ;
 
13535
  return 0;
 
13536
}
 
13537
_ACEOF
 
13538
if ac_fn_c_try_compile "$LINENO"; then :
 
13539
  extra_warnings_works=yes
 
13540
else
 
13541
  extra_warnings_works=no
 
13542
fi
 
13543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13544
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13545
$as_echo "$extra_warnings_works" >&6; }
 
13546
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13547
      if test "x$extra_warnings_works" = "xyes"; then
 
13548
        extra_warnings="$flag"
 
13549
      fi
 
13550
    fi
 
13551
  done
 
13552
 
 
13553
CFLAGS="$CFLAGS $extra_warnings"
 
13554
 
 
13555
 
 
13556
  extra_warnings=
 
13557
  for flag in '-Wold-style-definition'; do
 
13558
    if test -z "$extra_warnings"; then
 
13559
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13560
      CFLAGS="$CFLAGS $flag"
 
13561
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13562
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13563
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13564
/* end confdefs.h.  */
 
13565
 
 
13566
int
 
13567
main ()
 
13568
{
 
13569
 
 
13570
  ;
 
13571
  return 0;
 
13572
}
 
13573
_ACEOF
 
13574
if ac_fn_c_try_compile "$LINENO"; then :
 
13575
  extra_warnings_works=yes
 
13576
else
 
13577
  extra_warnings_works=no
 
13578
fi
 
13579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13580
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13581
$as_echo "$extra_warnings_works" >&6; }
 
13582
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13583
      if test "x$extra_warnings_works" = "xyes"; then
 
13584
        extra_warnings="$flag"
 
13585
      fi
 
13586
    fi
 
13587
  done
 
13588
 
 
13589
CFLAGS="$CFLAGS $extra_warnings"
 
13590
 
 
13591
 
 
13592
  extra_warnings=
 
13593
  for flag in '-Wmissing-format-attribute'; do
 
13594
    if test -z "$extra_warnings"; then
 
13595
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13596
      CFLAGS="$CFLAGS $flag"
 
13597
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13598
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13599
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13600
/* end confdefs.h.  */
 
13601
 
 
13602
int
 
13603
main ()
 
13604
{
 
13605
 
 
13606
  ;
 
13607
  return 0;
 
13608
}
 
13609
_ACEOF
 
13610
if ac_fn_c_try_compile "$LINENO"; then :
 
13611
  extra_warnings_works=yes
 
13612
else
 
13613
  extra_warnings_works=no
 
13614
fi
 
13615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13616
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13617
$as_echo "$extra_warnings_works" >&6; }
 
13618
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13619
      if test "x$extra_warnings_works" = "xyes"; then
 
13620
        extra_warnings="$flag"
 
13621
      fi
 
13622
    fi
 
13623
  done
 
13624
 
 
13625
CFLAGS="$CFLAGS $extra_warnings"
 
13626
 
 
13627
 
 
13628
  extra_warnings=
 
13629
  for flag in '-Wformat-security'; do
 
13630
    if test -z "$extra_warnings"; then
 
13631
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13632
      CFLAGS="$CFLAGS $flag"
 
13633
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13634
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13635
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13636
/* end confdefs.h.  */
 
13637
 
 
13638
int
 
13639
main ()
 
13640
{
 
13641
 
 
13642
  ;
 
13643
  return 0;
 
13644
}
 
13645
_ACEOF
 
13646
if ac_fn_c_try_compile "$LINENO"; then :
 
13647
  extra_warnings_works=yes
 
13648
else
 
13649
  extra_warnings_works=no
 
13650
fi
 
13651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13652
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13653
$as_echo "$extra_warnings_works" >&6; }
 
13654
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13655
      if test "x$extra_warnings_works" = "xyes"; then
 
13656
        extra_warnings="$flag"
 
13657
      fi
 
13658
    fi
 
13659
  done
 
13660
 
 
13661
CFLAGS="$CFLAGS $extra_warnings"
 
13662
 
 
13663
 
 
13664
  extra_warnings=
 
13665
  for flag in '-Wformat-non-literal'; do
 
13666
    if test -z "$extra_warnings"; then
 
13667
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13668
      CFLAGS="$CFLAGS $flag"
 
13669
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13670
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13671
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13672
/* end confdefs.h.  */
 
13673
 
 
13674
int
 
13675
main ()
 
13676
{
 
13677
 
 
13678
  ;
 
13679
  return 0;
 
13680
}
 
13681
_ACEOF
 
13682
if ac_fn_c_try_compile "$LINENO"; then :
 
13683
  extra_warnings_works=yes
 
13684
else
 
13685
  extra_warnings_works=no
 
13686
fi
 
13687
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13688
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13689
$as_echo "$extra_warnings_works" >&6; }
 
13690
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13691
      if test "x$extra_warnings_works" = "xyes"; then
 
13692
        extra_warnings="$flag"
 
13693
      fi
 
13694
    fi
 
13695
  done
 
13696
 
 
13697
CFLAGS="$CFLAGS $extra_warnings"
 
13698
 
 
13699
 
 
13700
  extra_warnings=
 
13701
  for flag in '-fno-common'; do
 
13702
    if test -z "$extra_warnings"; then
 
13703
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13704
      CFLAGS="$CFLAGS $flag"
 
13705
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13706
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13707
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13708
/* end confdefs.h.  */
 
13709
 
 
13710
int
 
13711
main ()
 
13712
{
 
13713
 
 
13714
  ;
 
13715
  return 0;
 
13716
}
 
13717
_ACEOF
 
13718
if ac_fn_c_try_compile "$LINENO"; then :
 
13719
  extra_warnings_works=yes
 
13720
else
 
13721
  extra_warnings_works=no
 
13722
fi
 
13723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13724
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13725
$as_echo "$extra_warnings_works" >&6; }
 
13726
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13727
      if test "x$extra_warnings_works" = "xyes"; then
 
13728
        extra_warnings="$flag"
 
13729
      fi
 
13730
    fi
 
13731
  done
 
13732
 
 
13733
CFLAGS="$CFLAGS $extra_warnings"
 
13734
 
 
13735
 
 
13736
  extra_warnings=
 
13737
  for flag in '-fdiagnostics-show-option'; do
 
13738
    if test -z "$extra_warnings"; then
 
13739
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13740
      CFLAGS="$CFLAGS $flag"
 
13741
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13742
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13743
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13744
/* end confdefs.h.  */
 
13745
 
 
13746
int
 
13747
main ()
 
13748
{
 
13749
 
 
13750
  ;
 
13751
  return 0;
 
13752
}
 
13753
_ACEOF
 
13754
if ac_fn_c_try_compile "$LINENO"; then :
 
13755
  extra_warnings_works=yes
 
13756
else
 
13757
  extra_warnings_works=no
 
13758
fi
 
13759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13760
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13761
$as_echo "$extra_warnings_works" >&6; }
 
13762
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13763
      if test "x$extra_warnings_works" = "xyes"; then
 
13764
        extra_warnings="$flag"
 
13765
      fi
 
13766
    fi
 
13767
  done
 
13768
 
 
13769
CFLAGS="$CFLAGS $extra_warnings"
 
13770
 
 
13771
 
 
13772
# Extra optimization flags for super performance
 
13773
 
 
13774
  extra_warnings=
 
13775
  for flag in '--omg-optimized'; do
 
13776
    if test -z "$extra_warnings"; then
 
13777
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13778
      CFLAGS="$CFLAGS $flag"
 
13779
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13780
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13781
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13782
/* end confdefs.h.  */
 
13783
 
 
13784
int
 
13785
main ()
 
13786
{
 
13787
 
 
13788
  ;
 
13789
  return 0;
 
13790
}
 
13791
_ACEOF
 
13792
if ac_fn_c_try_compile "$LINENO"; then :
 
13793
  extra_warnings_works=yes
 
13794
else
 
13795
  extra_warnings_works=no
 
13796
fi
 
13797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13798
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13799
$as_echo "$extra_warnings_works" >&6; }
 
13800
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13801
      if test "x$extra_warnings_works" = "xyes"; then
 
13802
        extra_warnings="$flag"
 
13803
      fi
 
13804
    fi
 
13805
  done
 
13806
 
 
13807
CFLAGS="$CFLAGS $extra_warnings"
 
13808
 
 
13809
 
 
13810
  extra_warnings=
 
13811
  for flag in '--disable-instructions'; do
 
13812
    if test -z "$extra_warnings"; then
 
13813
      extra_warnings_save_CFLAGS="$CFLAGS"
 
13814
      CFLAGS="$CFLAGS $flag"
 
13815
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
13816
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
13817
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13818
/* end confdefs.h.  */
 
13819
 
 
13820
int
 
13821
main ()
 
13822
{
 
13823
 
 
13824
  ;
 
13825
  return 0;
 
13826
}
 
13827
_ACEOF
 
13828
if ac_fn_c_try_compile "$LINENO"; then :
 
13829
  extra_warnings_works=yes
 
13830
else
 
13831
  extra_warnings_works=no
 
13832
fi
 
13833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13834
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extra_warnings_works" >&5
 
13835
$as_echo "$extra_warnings_works" >&6; }
 
13836
      CFLAGS="$extra_warnings_save_CFLAGS"
 
13837
      if test "x$extra_warnings_works" = "xyes"; then
 
13838
        extra_warnings="$flag"
 
13839
      fi
 
13840
    fi
 
13841
  done
 
13842
 
 
13843
CFLAGS="$CFLAGS $extra_warnings"
 
13844
 
 
13845
 
 
13846
# Ensure MSVC-compatible struct packing convention is used when
 
13847
# compiling for Win32 with gcc.
 
13848
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
 
13849
# gcc2 uses "-fnative-struct".
 
13850
if test "x$os_win32" = xyes; then
 
13851
  if test "x$GCC" = xyes; then
 
13852
    msnative_struct=''
 
13853
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
 
13854
$as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
 
13855
    if test -z "$ac_cv_prog_CC"; then
 
13856
      our_gcc="$CC"
 
13857
    else
 
13858
      our_gcc="$ac_cv_prog_CC"
 
13859
    fi
 
13860
    case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
 
13861
      2.)
 
13862
        if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
 
13863
          msnative_struct='-fnative-struct'
 
13864
        fi
 
13865
        ;;
 
13866
      *)
 
13867
        if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
 
13868
          msnative_struct='-mms-bitfields'
 
13869
        fi
 
13870
        ;;
 
13871
    esac
 
13872
    if test "x$msnative_struct" = x ; then
 
13873
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
 
13874
$as_echo "no way" >&6; }
 
13875
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build will be incompatible with GTK+ DLLs" >&5
 
13876
$as_echo "$as_me: WARNING: build will be incompatible with GTK+ DLLs" >&2;}
 
13877
    else
 
13878
      CFLAGS="$CFLAGS $msnative_struct"
 
13879
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
 
13880
$as_echo "${msnative_struct}" >&6; }
 
13881
    fi
 
13882
  fi
 
13883
fi
 
13884
 
 
13885
 
 
13886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
13887
$as_echo_n "checking for ANSI C header files... " >&6; }
 
13888
if ${ac_cv_header_stdc+:} false; then :
 
13889
  $as_echo_n "(cached) " >&6
 
13890
else
 
13891
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13892
/* end confdefs.h.  */
 
13893
#include <stdlib.h>
 
13894
#include <stdarg.h>
 
13895
#include <string.h>
 
13896
#include <float.h>
 
13897
 
 
13898
int
 
13899
main ()
 
13900
{
 
13901
 
 
13902
  ;
 
13903
  return 0;
 
13904
}
 
13905
_ACEOF
 
13906
if ac_fn_c_try_compile "$LINENO"; then :
 
13907
  ac_cv_header_stdc=yes
 
13908
else
 
13909
  ac_cv_header_stdc=no
 
13910
fi
 
13911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13912
 
 
13913
if test $ac_cv_header_stdc = yes; then
 
13914
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
13915
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13916
/* end confdefs.h.  */
 
13917
#include <string.h>
 
13918
 
 
13919
_ACEOF
 
13920
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13921
  $EGREP "memchr" >/dev/null 2>&1; then :
 
13922
 
 
13923
else
 
13924
  ac_cv_header_stdc=no
 
13925
fi
 
13926
rm -f conftest*
 
13927
 
 
13928
fi
 
13929
 
 
13930
if test $ac_cv_header_stdc = yes; then
 
13931
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
13932
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13933
/* end confdefs.h.  */
 
13934
#include <stdlib.h>
 
13935
 
 
13936
_ACEOF
 
13937
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13938
  $EGREP "free" >/dev/null 2>&1; then :
 
13939
 
 
13940
else
 
13941
  ac_cv_header_stdc=no
 
13942
fi
 
13943
rm -f conftest*
 
13944
 
 
13945
fi
 
13946
 
 
13947
if test $ac_cv_header_stdc = yes; then
 
13948
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
13949
  if test "$cross_compiling" = yes; then :
 
13950
  :
 
13951
else
 
13952
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
13953
/* end confdefs.h.  */
 
13954
#include <ctype.h>
 
13955
#include <stdlib.h>
 
13956
#if ((' ' & 0x0FF) == 0x020)
 
13957
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
13958
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
13959
#else
 
13960
# define ISLOWER(c) \
 
13961
                   (('a' <= (c) && (c) <= 'i') \
 
13962
                     || ('j' <= (c) && (c) <= 'r') \
 
13963
                     || ('s' <= (c) && (c) <= 'z'))
 
13964
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
13965
#endif
 
13966
 
 
13967
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
13968
int
 
13969
main ()
 
13970
{
 
13971
  int i;
 
13972
  for (i = 0; i < 256; i++)
 
13973
    if (XOR (islower (i), ISLOWER (i))
 
13974
        || toupper (i) != TOUPPER (i))
 
13975
      return 2;
 
13976
  return 0;
 
13977
}
 
13978
_ACEOF
 
13979
if ac_fn_c_try_run "$LINENO"; then :
 
13980
 
 
13981
else
 
13982
  ac_cv_header_stdc=no
 
13983
fi
 
13984
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
13985
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
13986
fi
 
13987
 
 
13988
fi
 
13989
fi
 
13990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
13991
$as_echo "$ac_cv_header_stdc" >&6; }
 
13992
if test $ac_cv_header_stdc = yes; then
 
13993
 
 
13994
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
13995
 
 
13996
fi
 
13997
 
 
13998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
13999
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
14000
if ${ac_cv_header_sys_wait_h+:} false; then :
 
14001
  $as_echo_n "(cached) " >&6
 
14002
else
 
14003
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14004
/* end confdefs.h.  */
 
14005
#include <sys/types.h>
 
14006
#include <sys/wait.h>
 
14007
#ifndef WEXITSTATUS
 
14008
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
14009
#endif
 
14010
#ifndef WIFEXITED
 
14011
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
14012
#endif
 
14013
 
 
14014
int
 
14015
main ()
 
14016
{
 
14017
  int s;
 
14018
  wait (&s);
 
14019
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
14020
  ;
 
14021
  return 0;
 
14022
}
 
14023
_ACEOF
 
14024
if ac_fn_c_try_compile "$LINENO"; then :
 
14025
  ac_cv_header_sys_wait_h=yes
 
14026
else
 
14027
  ac_cv_header_sys_wait_h=no
 
14028
fi
 
14029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14030
fi
 
14031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
14032
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
 
14033
if test $ac_cv_header_sys_wait_h = yes; then
 
14034
 
 
14035
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
14036
 
 
14037
fi
 
14038
 
 
14039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
14040
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
14041
if ${ac_cv_header_time+:} false; then :
 
14042
  $as_echo_n "(cached) " >&6
 
14043
else
 
14044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14045
/* end confdefs.h.  */
 
14046
#include <sys/types.h>
 
14047
#include <sys/time.h>
 
14048
#include <time.h>
 
14049
 
 
14050
int
 
14051
main ()
 
14052
{
 
14053
if ((struct tm *) 0)
 
14054
return 0;
 
14055
  ;
 
14056
  return 0;
 
14057
}
 
14058
_ACEOF
 
14059
if ac_fn_c_try_compile "$LINENO"; then :
 
14060
  ac_cv_header_time=yes
 
14061
else
 
14062
  ac_cv_header_time=no
 
14063
fi
 
14064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14065
fi
 
14066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
14067
$as_echo "$ac_cv_header_time" >&6; }
 
14068
if test $ac_cv_header_time = yes; then
 
14069
 
 
14070
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
14071
 
 
14072
fi
 
14073
 
 
14074
 
 
14075
for ac_header in sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h
 
14076
do :
 
14077
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
14078
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
14079
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
14080
  cat >>confdefs.h <<_ACEOF
 
14081
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
14082
_ACEOF
 
14083
 
 
14084
fi
 
14085
 
 
14086
done
 
14087
 
 
14088
 
 
14089
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
14090
if test "x$ac_cv_type_pid_t" = xyes; then :
 
14091
 
 
14092
else
 
14093
 
 
14094
cat >>confdefs.h <<_ACEOF
 
14095
#define pid_t int
 
14096
_ACEOF
 
14097
 
 
14098
fi
 
14099
 
 
14100
for ac_func in vprintf
 
14101
do :
 
14102
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
 
14103
if test "x$ac_cv_func_vprintf" = xyes; then :
 
14104
  cat >>confdefs.h <<_ACEOF
 
14105
#define HAVE_VPRINTF 1
 
14106
_ACEOF
 
14107
 
 
14108
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
 
14109
if test "x$ac_cv_func__doprnt" = xyes; then :
 
14110
 
 
14111
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
 
14112
 
 
14113
fi
 
14114
 
 
14115
fi
 
14116
done
 
14117
 
 
14118
 
 
14119
 
 
14120
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
14121
if test "x$ac_cv_type_size_t" = xyes; then :
 
14122
 
 
14123
else
 
14124
 
 
14125
cat >>confdefs.h <<_ACEOF
 
14126
#define size_t unsigned int
 
14127
_ACEOF
 
14128
 
 
14129
fi
 
14130
 
 
14131
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
14132
# for constant arguments.  Useless!
 
14133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
14134
$as_echo_n "checking for working alloca.h... " >&6; }
 
14135
if ${ac_cv_working_alloca_h+:} false; then :
 
14136
  $as_echo_n "(cached) " >&6
 
14137
else
 
14138
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14139
/* end confdefs.h.  */
 
14140
#include <alloca.h>
 
14141
int
 
14142
main ()
 
14143
{
 
14144
char *p = (char *) alloca (2 * sizeof (int));
 
14145
                          if (p) return 0;
 
14146
  ;
 
14147
  return 0;
 
14148
}
 
14149
_ACEOF
 
14150
if ac_fn_c_try_link "$LINENO"; then :
 
14151
  ac_cv_working_alloca_h=yes
 
14152
else
 
14153
  ac_cv_working_alloca_h=no
 
14154
fi
 
14155
rm -f core conftest.err conftest.$ac_objext \
 
14156
    conftest$ac_exeext conftest.$ac_ext
 
14157
fi
 
14158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
14159
$as_echo "$ac_cv_working_alloca_h" >&6; }
 
14160
if test $ac_cv_working_alloca_h = yes; then
 
14161
 
 
14162
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
 
14163
 
 
14164
fi
 
14165
 
 
14166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
14167
$as_echo_n "checking for alloca... " >&6; }
 
14168
if ${ac_cv_func_alloca_works+:} false; then :
 
14169
  $as_echo_n "(cached) " >&6
 
14170
else
 
14171
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14172
/* end confdefs.h.  */
 
14173
#ifdef __GNUC__
 
14174
# define alloca __builtin_alloca
 
14175
#else
 
14176
# ifdef _MSC_VER
 
14177
#  include <malloc.h>
 
14178
#  define alloca _alloca
 
14179
# else
 
14180
#  ifdef HAVE_ALLOCA_H
 
14181
#   include <alloca.h>
 
14182
#  else
 
14183
#   ifdef _AIX
 
14184
 #pragma alloca
 
14185
#   else
 
14186
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
14187
void *alloca (size_t);
 
14188
#    endif
 
14189
#   endif
 
14190
#  endif
 
14191
# endif
 
14192
#endif
 
14193
 
 
14194
int
 
14195
main ()
 
14196
{
 
14197
char *p = (char *) alloca (1);
 
14198
                                    if (p) return 0;
 
14199
  ;
 
14200
  return 0;
 
14201
}
 
14202
_ACEOF
 
14203
if ac_fn_c_try_link "$LINENO"; then :
 
14204
  ac_cv_func_alloca_works=yes
 
14205
else
 
14206
  ac_cv_func_alloca_works=no
 
14207
fi
 
14208
rm -f core conftest.err conftest.$ac_objext \
 
14209
    conftest$ac_exeext conftest.$ac_ext
 
14210
fi
 
14211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
14212
$as_echo "$ac_cv_func_alloca_works" >&6; }
 
14213
 
 
14214
if test $ac_cv_func_alloca_works = yes; then
 
14215
 
 
14216
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
 
14217
 
 
14218
else
 
14219
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
14220
# that cause trouble.  Some versions do not even contain alloca or
 
14221
# contain a buggy version.  If you still want to use their alloca,
 
14222
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
14223
 
 
14224
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
14225
 
 
14226
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
14227
 
 
14228
 
 
14229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
14230
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
14231
if ${ac_cv_os_cray+:} false; then :
 
14232
  $as_echo_n "(cached) " >&6
 
14233
else
 
14234
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14235
/* end confdefs.h.  */
 
14236
#if defined CRAY && ! defined CRAY2
 
14237
webecray
 
14238
#else
 
14239
wenotbecray
 
14240
#endif
 
14241
 
 
14242
_ACEOF
 
14243
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14244
  $EGREP "webecray" >/dev/null 2>&1; then :
 
14245
  ac_cv_os_cray=yes
 
14246
else
 
14247
  ac_cv_os_cray=no
 
14248
fi
 
14249
rm -f conftest*
 
14250
 
 
14251
fi
 
14252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
14253
$as_echo "$ac_cv_os_cray" >&6; }
 
14254
if test $ac_cv_os_cray = yes; then
 
14255
  for ac_func in _getb67 GETB67 getb67; do
 
14256
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14257
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14258
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14259
 
 
14260
cat >>confdefs.h <<_ACEOF
 
14261
#define CRAY_STACKSEG_END $ac_func
 
14262
_ACEOF
 
14263
 
 
14264
    break
 
14265
fi
 
14266
 
 
14267
  done
 
14268
fi
 
14269
 
 
14270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
14271
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
14272
if ${ac_cv_c_stack_direction+:} false; then :
 
14273
  $as_echo_n "(cached) " >&6
 
14274
else
 
14275
  if test "$cross_compiling" = yes; then :
 
14276
  ac_cv_c_stack_direction=0
 
14277
else
 
14278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14279
/* end confdefs.h.  */
 
14280
$ac_includes_default
 
14281
int
 
14282
find_stack_direction (int *addr, int depth)
 
14283
{
 
14284
  int dir, dummy = 0;
 
14285
  if (! addr)
 
14286
    addr = &dummy;
 
14287
  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
 
14288
  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
 
14289
  return dir + dummy;
 
14290
}
 
14291
 
 
14292
int
 
14293
main (int argc, char **argv)
 
14294
{
 
14295
  return find_stack_direction (0, argc + !argv + 20) < 0;
 
14296
}
 
14297
_ACEOF
 
14298
if ac_fn_c_try_run "$LINENO"; then :
 
14299
  ac_cv_c_stack_direction=1
 
14300
else
 
14301
  ac_cv_c_stack_direction=-1
 
14302
fi
 
14303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
14304
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
14305
fi
 
14306
 
 
14307
fi
 
14308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
14309
$as_echo "$ac_cv_c_stack_direction" >&6; }
 
14310
cat >>confdefs.h <<_ACEOF
 
14311
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
14312
_ACEOF
 
14313
 
 
14314
 
 
14315
fi
 
14316
 
 
14317
 
 
14318
# check some more funcs
 
14319
for ac_func in fsync
 
14320
do :
 
14321
  ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
 
14322
if test "x$ac_cv_func_fsync" = xyes; then :
 
14323
  cat >>confdefs.h <<_ACEOF
 
14324
#define HAVE_FSYNC 1
 
14325
_ACEOF
 
14326
 
 
14327
fi
 
14328
done
 
14329
 
 
14330
for ac_func in difftime mmap
 
14331
do :
 
14332
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
14333
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
14334
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
14335
  cat >>confdefs.h <<_ACEOF
 
14336
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14337
_ACEOF
 
14338
 
 
14339
fi
 
14340
done
 
14341
 
 
14342
 
 
14343
 
 
14344
 
 
14345
        # Check whether --enable-binreloc was given.
 
14346
if test "${enable_binreloc+set}" = set; then :
 
14347
  enableval=$enable_binreloc; enable_binreloc=$enableval
 
14348
else
 
14349
  enable_binreloc=no
 
14350
fi
 
14351
 
 
14352
 
 
14353
        # Check whether --enable-binreloc-threads was given.
 
14354
if test "${enable_binreloc_threads+set}" = set; then :
 
14355
  enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
 
14356
else
 
14357
  enable_binreloc_threads=yes
 
14358
fi
 
14359
 
 
14360
 
 
14361
        BINRELOC_CFLAGS=
 
14362
        BINRELOC_LIBS=
 
14363
        if test "x$enable_binreloc" = "xauto"; then
 
14364
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
 
14365
$as_echo_n "checking for /proc/self/maps... " >&6; }
 
14366
if ${ac_cv_file__proc_self_maps+:} false; then :
 
14367
  $as_echo_n "(cached) " >&6
 
14368
else
 
14369
  test "$cross_compiling" = yes &&
 
14370
  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
 
14371
if test -r "/proc/self/maps"; then
 
14372
  ac_cv_file__proc_self_maps=yes
 
14373
else
 
14374
  ac_cv_file__proc_self_maps=no
 
14375
fi
 
14376
fi
 
14377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
 
14378
$as_echo "$ac_cv_file__proc_self_maps" >&6; }
 
14379
if test "x$ac_cv_file__proc_self_maps" = xyes; then :
 
14380
 
 
14381
fi
 
14382
 
 
14383
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether everything is installed to the same prefix" >&5
 
14384
$as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
 
14385
if ${br_cv_valid_prefixes+:} false; then :
 
14386
  $as_echo_n "(cached) " >&6
 
14387
else
 
14388
 
 
14389
                                if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
 
14390
                                        "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
 
14391
                                        "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
 
14392
                                then
 
14393
                                        br_cv_valid_prefixes=yes
 
14394
                                else
 
14395
                                        br_cv_valid_prefixes=no
 
14396
                                fi
 
14397
 
 
14398
fi
 
14399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_valid_prefixes" >&5
 
14400
$as_echo "$br_cv_valid_prefixes" >&6; }
 
14401
        fi
 
14402
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation support should be enabled" >&5
 
14403
$as_echo_n "checking whether binary relocation support should be enabled... " >&6; }
 
14404
if ${br_cv_binreloc+:} false; then :
 
14405
  $as_echo_n "(cached) " >&6
 
14406
else
 
14407
  if test "x$enable_binreloc" = "xyes"; then
 
14408
                               br_cv_binreloc=yes
 
14409
                       elif test "x$enable_binreloc" = "xauto"; then
 
14410
                               if test "x$br_cv_valid_prefixes" = "xyes" -a \
 
14411
                                       "x$ac_cv_file__proc_self_maps" = "xyes"; then
 
14412
                                       br_cv_binreloc=yes
 
14413
                               else
 
14414
                                       br_cv_binreloc=no
 
14415
                               fi
 
14416
                       else
 
14417
                               br_cv_binreloc=no
 
14418
                       fi
 
14419
fi
 
14420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc" >&5
 
14421
$as_echo "$br_cv_binreloc" >&6; }
 
14422
 
 
14423
        if test "x$br_cv_binreloc" = "xyes"; then
 
14424
                BINRELOC_CFLAGS="-DENABLE_BINRELOC"
 
14425
                if test "x$enable_binreloc_threads" = "xyes"; then
 
14426
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_getspecific in -lpthread" >&5
 
14427
$as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; }
 
14428
if ${ac_cv_lib_pthread_pthread_getspecific+:} false; then :
 
14429
  $as_echo_n "(cached) " >&6
 
14430
else
 
14431
  ac_check_lib_save_LIBS=$LIBS
 
14432
LIBS="-lpthread  $LIBS"
 
14433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14434
/* end confdefs.h.  */
 
14435
 
 
14436
/* Override any GCC internal prototype to avoid an error.
 
14437
   Use char because int might match the return type of a GCC
 
14438
   builtin and then its argument prototype would still apply.  */
 
14439
#ifdef __cplusplus
 
14440
extern "C"
 
14441
#endif
 
14442
char pthread_getspecific ();
 
14443
int
 
14444
main ()
 
14445
{
 
14446
return pthread_getspecific ();
 
14447
  ;
 
14448
  return 0;
 
14449
}
 
14450
_ACEOF
 
14451
if ac_fn_c_try_link "$LINENO"; then :
 
14452
  ac_cv_lib_pthread_pthread_getspecific=yes
 
14453
else
 
14454
  ac_cv_lib_pthread_pthread_getspecific=no
 
14455
fi
 
14456
rm -f core conftest.err conftest.$ac_objext \
 
14457
    conftest$ac_exeext conftest.$ac_ext
 
14458
LIBS=$ac_check_lib_save_LIBS
 
14459
fi
 
14460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
 
14461
$as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; }
 
14462
if test "x$ac_cv_lib_pthread_pthread_getspecific" = xyes; then :
 
14463
  cat >>confdefs.h <<_ACEOF
 
14464
#define HAVE_LIBPTHREAD 1
 
14465
_ACEOF
 
14466
 
 
14467
  LIBS="-lpthread $LIBS"
 
14468
 
 
14469
fi
 
14470
 
 
14471
                fi
 
14472
 
 
14473
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation should use threads" >&5
 
14474
$as_echo_n "checking whether binary relocation should use threads... " >&6; }
 
14475
if ${br_cv_binreloc_threads+:} false; then :
 
14476
  $as_echo_n "(cached) " >&6
 
14477
else
 
14478
  if test "x$enable_binreloc_threads" = "xyes"; then
 
14479
                                        if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
 
14480
                                                br_cv_binreloc_threads=yes
 
14481
                                        else
 
14482
                                                br_cv_binreloc_threads=no
 
14483
                                        fi
 
14484
                                else
 
14485
                                        br_cv_binreloc_threads=no
 
14486
                                fi
 
14487
fi
 
14488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc_threads" >&5
 
14489
$as_echo "$br_cv_binreloc_threads" >&6; }
 
14490
 
 
14491
                if test "x$br_cv_binreloc_threads" = "xyes"; then
 
14492
                        BINRELOC_LIBS="-lpthread"
 
14493
                else
 
14494
                        BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
 
14495
                fi
 
14496
        fi
 
14497
 
 
14498
 
 
14499
         if test x$br_cv_binreloc = xyes; then
 
14500
  USE_BINRELOC_TRUE=
 
14501
  USE_BINRELOC_FALSE='#'
 
14502
else
 
14503
  USE_BINRELOC_TRUE='#'
 
14504
  USE_BINRELOC_FALSE=
 
14505
fi
 
14506
 
 
14507
 
 
14508
 
 
14509
 
 
14510
# _NL_MEASUREMENT_MEASUREMENT is an enum and not a define
 
14511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _NL_MEASUREMENT_MEASUREMENT" >&5
 
14512
$as_echo_n "checking for _NL_MEASUREMENT_MEASUREMENT... " >&6; }
 
14513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14514
/* end confdefs.h.  */
 
14515
#include <langinfo.h>
 
14516
int
 
14517
main ()
 
14518
{
 
14519
char c = *((unsigned char *)  nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));
 
14520
  ;
 
14521
  return 0;
 
14522
}
 
14523
_ACEOF
 
14524
if ac_fn_c_try_link "$LINENO"; then :
 
14525
  nl_ok=yes
 
14526
else
 
14527
  nl_ok=no
 
14528
fi
 
14529
rm -f core conftest.err conftest.$ac_objext \
 
14530
    conftest$ac_exeext conftest.$ac_ext
 
14531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nl_ok" >&5
 
14532
$as_echo "$nl_ok" >&6; }
 
14533
if test "$nl_ok" = "yes"; then
 
14534
 
 
14535
$as_echo "#define HAVE__NL_MEASUREMENT_MEASUREMENT 1" >>confdefs.h
 
14536
 
 
14537
fi
 
14538
 
 
14539
 
 
14540
######################
 
14541
# Internationalisation
 
14542
######################
 
14543
 
 
14544
 
 
14545
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
14546
$as_echo_n "checking whether NLS is requested... " >&6; }
 
14547
    # Check whether --enable-nls was given.
 
14548
if test "${enable_nls+set}" = set; then :
 
14549
  enableval=$enable_nls; USE_NLS=$enableval
 
14550
else
 
14551
  USE_NLS=yes
 
14552
fi
 
14553
 
 
14554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
14555
$as_echo "$USE_NLS" >&6; }
 
14556
 
 
14557
 
 
14558
 
 
14559
 
 
14560
case "$am__api_version" in
 
14561
    1.01234)
 
14562
        as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
 
14563
    ;;
 
14564
    *)
 
14565
    ;;
 
14566
esac
 
14567
 
 
14568
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.40.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
14569
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
14570
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
14571
if test -n "0.40.1"; then
 
14572
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.40.1" >&5
 
14573
$as_echo_n "checking for intltool >= 0.40.1... " >&6; }
 
14574
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
14575
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
 
14576
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
14577
        as_fn_error $? "Your intltool is too old.  You need intltool 0.40.1 or later." "$LINENO" 5
 
14578
fi
 
14579
 
 
14580
# Extract the first word of "intltool-update", so it can be a program name with args.
 
14581
set dummy intltool-update; ac_word=$2
 
14582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14583
$as_echo_n "checking for $ac_word... " >&6; }
 
14584
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
 
14585
  $as_echo_n "(cached) " >&6
 
14586
else
 
14587
  case $INTLTOOL_UPDATE in
 
14588
  [\\/]* | ?:[\\/]*)
 
14589
  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
 
14590
  ;;
 
14591
  *)
 
14592
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14593
for as_dir in $PATH
 
14594
do
 
14595
  IFS=$as_save_IFS
 
14596
  test -z "$as_dir" && as_dir=.
 
14597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14598
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14599
    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
 
14600
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14601
    break 2
 
14602
  fi
 
14603
done
 
14604
  done
 
14605
IFS=$as_save_IFS
 
14606
 
 
14607
  ;;
 
14608
esac
 
14609
fi
 
14610
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
 
14611
if test -n "$INTLTOOL_UPDATE"; then
 
14612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
 
14613
$as_echo "$INTLTOOL_UPDATE" >&6; }
 
14614
else
 
14615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14616
$as_echo "no" >&6; }
 
14617
fi
 
14618
 
 
14619
 
 
14620
# Extract the first word of "intltool-merge", so it can be a program name with args.
 
14621
set dummy intltool-merge; ac_word=$2
 
14622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14623
$as_echo_n "checking for $ac_word... " >&6; }
 
14624
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
 
14625
  $as_echo_n "(cached) " >&6
 
14626
else
 
14627
  case $INTLTOOL_MERGE in
 
14628
  [\\/]* | ?:[\\/]*)
 
14629
  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
 
14630
  ;;
 
14631
  *)
 
14632
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14633
for as_dir in $PATH
 
14634
do
 
14635
  IFS=$as_save_IFS
 
14636
  test -z "$as_dir" && as_dir=.
 
14637
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14638
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14639
    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
 
14640
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14641
    break 2
 
14642
  fi
 
14643
done
 
14644
  done
 
14645
IFS=$as_save_IFS
 
14646
 
 
14647
  ;;
 
14648
esac
 
14649
fi
 
14650
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
 
14651
if test -n "$INTLTOOL_MERGE"; then
 
14652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
 
14653
$as_echo "$INTLTOOL_MERGE" >&6; }
 
14654
else
 
14655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14656
$as_echo "no" >&6; }
 
14657
fi
 
14658
 
 
14659
 
 
14660
# Extract the first word of "intltool-extract", so it can be a program name with args.
 
14661
set dummy intltool-extract; ac_word=$2
 
14662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14663
$as_echo_n "checking for $ac_word... " >&6; }
 
14664
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
 
14665
  $as_echo_n "(cached) " >&6
 
14666
else
 
14667
  case $INTLTOOL_EXTRACT in
 
14668
  [\\/]* | ?:[\\/]*)
 
14669
  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
 
14670
  ;;
 
14671
  *)
 
14672
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14673
for as_dir in $PATH
 
14674
do
 
14675
  IFS=$as_save_IFS
 
14676
  test -z "$as_dir" && as_dir=.
 
14677
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14678
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14679
    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
 
14680
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14681
    break 2
 
14682
  fi
 
14683
done
 
14684
  done
 
14685
IFS=$as_save_IFS
 
14686
 
 
14687
  ;;
 
14688
esac
 
14689
fi
 
14690
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
 
14691
if test -n "$INTLTOOL_EXTRACT"; then
 
14692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
 
14693
$as_echo "$INTLTOOL_EXTRACT" >&6; }
 
14694
else
 
14695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14696
$as_echo "no" >&6; }
 
14697
fi
 
14698
 
 
14699
 
 
14700
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
14701
    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
 
14702
fi
 
14703
 
 
14704
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
14705
  AM_DEFAULT_VERBOSITY=1
 
14706
fi
 
14707
 
 
14708
 
 
14709
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
14710
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
14711
INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
 
14712
 
 
14713
 
 
14714
 
 
14715
 
 
14716
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
14717
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
14718
intltool__v_merge_options_0='-q'
 
14719
 
 
14720
 
 
14721
 
 
14722
 
 
14723
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14724
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14725
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14726
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14727
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
 
14728
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14729
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14730
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14731
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14732
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14733
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14734
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
14735
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
 
14736
else
 
14737
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
 
14738
fi
 
14739
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14740
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14741
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14742
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14743
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14744
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14745
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
14746
 
 
14747
 
 
14748
 
 
14749
 
 
14750
 
 
14751
 
 
14752
 
 
14753
 
 
14754
 
 
14755
 
 
14756
 
 
14757
 
 
14758
 
 
14759
 
 
14760
 
 
14761
 
 
14762
 
 
14763
 
 
14764
 
 
14765
 
 
14766
 
 
14767
 
 
14768
 
 
14769
 
 
14770
 
 
14771
 
 
14772
 
 
14773
 
 
14774
 
 
14775
 
 
14776
 
 
14777
 
 
14778
 
 
14779
 
 
14780
 
 
14781
 
 
14782
 
 
14783
 
 
14784
 
 
14785
 
 
14786
 
 
14787
 
 
14788
 
 
14789
 
 
14790
 
 
14791
 
 
14792
 
 
14793
 
 
14794
 
 
14795
 
 
14796
 
 
14797
 
 
14798
 
 
14799
 
 
14800
 
 
14801
 
 
14802
 
 
14803
 
 
14804
 
 
14805
 
 
14806
 
 
14807
 
 
14808
 
 
14809
 
 
14810
 
 
14811
 
 
14812
 
 
14813
 
 
14814
 
 
14815
 
 
14816
 
 
14817
 
 
14818
 
 
14819
 
 
14820
 
 
14821
 
 
14822
 
 
14823
 
 
14824
 
 
14825
 
 
14826
 
 
14827
 
 
14828
 
 
14829
 
 
14830
 
 
14831
 
 
14832
 
 
14833
 
 
14834
 
 
14835
 
 
14836
 
 
14837
 
 
14838
 
 
14839
 
 
14840
 
 
14841
 
 
14842
 
 
14843
# Check the gettext tools to make sure they are GNU
 
14844
# Extract the first word of "xgettext", so it can be a program name with args.
 
14845
set dummy xgettext; ac_word=$2
 
14846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14847
$as_echo_n "checking for $ac_word... " >&6; }
 
14848
if ${ac_cv_path_XGETTEXT+:} false; then :
 
14849
  $as_echo_n "(cached) " >&6
 
14850
else
 
14851
  case $XGETTEXT in
 
14852
  [\\/]* | ?:[\\/]*)
 
14853
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
14854
  ;;
 
14855
  *)
 
14856
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14857
for as_dir in $PATH
 
14858
do
 
14859
  IFS=$as_save_IFS
 
14860
  test -z "$as_dir" && as_dir=.
 
14861
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14862
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14863
    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
14864
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14865
    break 2
 
14866
  fi
 
14867
done
 
14868
  done
 
14869
IFS=$as_save_IFS
 
14870
 
 
14871
  ;;
 
14872
esac
 
14873
fi
 
14874
XGETTEXT=$ac_cv_path_XGETTEXT
 
14875
if test -n "$XGETTEXT"; then
 
14876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
14877
$as_echo "$XGETTEXT" >&6; }
 
14878
else
 
14879
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14880
$as_echo "no" >&6; }
 
14881
fi
 
14882
 
 
14883
 
 
14884
# Extract the first word of "msgmerge", so it can be a program name with args.
 
14885
set dummy msgmerge; ac_word=$2
 
14886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14887
$as_echo_n "checking for $ac_word... " >&6; }
 
14888
if ${ac_cv_path_MSGMERGE+:} false; then :
 
14889
  $as_echo_n "(cached) " >&6
 
14890
else
 
14891
  case $MSGMERGE in
 
14892
  [\\/]* | ?:[\\/]*)
 
14893
  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
14894
  ;;
 
14895
  *)
 
14896
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14897
for as_dir in $PATH
 
14898
do
 
14899
  IFS=$as_save_IFS
 
14900
  test -z "$as_dir" && as_dir=.
 
14901
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14902
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14903
    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
14904
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14905
    break 2
 
14906
  fi
 
14907
done
 
14908
  done
 
14909
IFS=$as_save_IFS
 
14910
 
 
14911
  ;;
 
14912
esac
 
14913
fi
 
14914
MSGMERGE=$ac_cv_path_MSGMERGE
 
14915
if test -n "$MSGMERGE"; then
 
14916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
14917
$as_echo "$MSGMERGE" >&6; }
 
14918
else
 
14919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14920
$as_echo "no" >&6; }
 
14921
fi
 
14922
 
 
14923
 
 
14924
# Extract the first word of "msgfmt", so it can be a program name with args.
 
14925
set dummy msgfmt; ac_word=$2
 
14926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14927
$as_echo_n "checking for $ac_word... " >&6; }
 
14928
if ${ac_cv_path_MSGFMT+:} false; then :
 
14929
  $as_echo_n "(cached) " >&6
 
14930
else
 
14931
  case $MSGFMT in
 
14932
  [\\/]* | ?:[\\/]*)
 
14933
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
14934
  ;;
 
14935
  *)
 
14936
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14937
for as_dir in $PATH
 
14938
do
 
14939
  IFS=$as_save_IFS
 
14940
  test -z "$as_dir" && as_dir=.
 
14941
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14942
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14943
    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
14944
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14945
    break 2
 
14946
  fi
 
14947
done
 
14948
  done
 
14949
IFS=$as_save_IFS
 
14950
 
 
14951
  ;;
 
14952
esac
 
14953
fi
 
14954
MSGFMT=$ac_cv_path_MSGFMT
 
14955
if test -n "$MSGFMT"; then
 
14956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
14957
$as_echo "$MSGFMT" >&6; }
 
14958
else
 
14959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
14960
$as_echo "no" >&6; }
 
14961
fi
 
14962
 
 
14963
 
 
14964
# Extract the first word of "gmsgfmt", so it can be a program name with args.
 
14965
set dummy gmsgfmt; ac_word=$2
 
14966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
14967
$as_echo_n "checking for $ac_word... " >&6; }
 
14968
if ${ac_cv_path_GMSGFMT+:} false; then :
 
14969
  $as_echo_n "(cached) " >&6
 
14970
else
 
14971
  case $GMSGFMT in
 
14972
  [\\/]* | ?:[\\/]*)
 
14973
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
14974
  ;;
 
14975
  *)
 
14976
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14977
for as_dir in $PATH
 
14978
do
 
14979
  IFS=$as_save_IFS
 
14980
  test -z "$as_dir" && as_dir=.
 
14981
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14982
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14983
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
14984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14985
    break 2
 
14986
  fi
 
14987
done
 
14988
  done
 
14989
IFS=$as_save_IFS
 
14990
 
 
14991
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
14992
  ;;
 
14993
esac
 
14994
fi
 
14995
GMSGFMT=$ac_cv_path_GMSGFMT
 
14996
if test -n "$GMSGFMT"; then
 
14997
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
14998
$as_echo "$GMSGFMT" >&6; }
 
14999
else
 
15000
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15001
$as_echo "no" >&6; }
 
15002
fi
 
15003
 
 
15004
 
 
15005
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
15006
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
15007
fi
 
15008
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
15009
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
15010
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
15011
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
15012
    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
 
15013
fi
 
15014
 
 
15015
# Extract the first word of "perl", so it can be a program name with args.
 
15016
set dummy perl; ac_word=$2
 
15017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15018
$as_echo_n "checking for $ac_word... " >&6; }
 
15019
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
 
15020
  $as_echo_n "(cached) " >&6
 
15021
else
 
15022
  case $INTLTOOL_PERL in
 
15023
  [\\/]* | ?:[\\/]*)
 
15024
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
15025
  ;;
 
15026
  *)
 
15027
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15028
for as_dir in $PATH
 
15029
do
 
15030
  IFS=$as_save_IFS
 
15031
  test -z "$as_dir" && as_dir=.
 
15032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15033
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15034
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
15035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15036
    break 2
 
15037
  fi
 
15038
done
 
15039
  done
 
15040
IFS=$as_save_IFS
 
15041
 
 
15042
  ;;
 
15043
esac
 
15044
fi
 
15045
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
15046
if test -n "$INTLTOOL_PERL"; then
 
15047
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
 
15048
$as_echo "$INTLTOOL_PERL" >&6; }
 
15049
else
 
15050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15051
$as_echo "no" >&6; }
 
15052
fi
 
15053
 
 
15054
 
 
15055
if test -z "$INTLTOOL_PERL"; then
 
15056
   as_fn_error $? "perl not found" "$LINENO" 5
 
15057
fi
 
15058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
 
15059
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
 
15060
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
15061
if test $? -ne 0; then
 
15062
   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
 
15063
else
 
15064
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
 
15065
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
 
15066
$as_echo "$IT_PERL_VERSION" >&6; }
 
15067
fi
 
15068
if test "x" != "xno-xml"; then
 
15069
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
 
15070
$as_echo_n "checking for XML::Parser... " >&6; }
 
15071
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
15072
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
15073
$as_echo "ok" >&6; }
 
15074
   else
 
15075
       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
 
15076
   fi
 
15077
fi
 
15078
 
 
15079
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
15080
 
 
15081
 
 
15082
# Set DATADIRNAME correctly if it is not set yet
 
15083
# (copied from glib-gettext.m4)
 
15084
if test -z "$DATADIRNAME"; then
 
15085
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15086
/* end confdefs.h.  */
 
15087
 
 
15088
int
 
15089
main ()
 
15090
{
 
15091
extern int _nl_msg_cat_cntr;
 
15092
                       return _nl_msg_cat_cntr
 
15093
  ;
 
15094
  return 0;
 
15095
}
 
15096
_ACEOF
 
15097
if ac_fn_c_try_link "$LINENO"; then :
 
15098
  DATADIRNAME=share
 
15099
else
 
15100
  case $host in
 
15101
    *-*-solaris*)
 
15102
                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
15103
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
15104
  DATADIRNAME=share
 
15105
else
 
15106
  DATADIRNAME=lib
 
15107
fi
 
15108
 
 
15109
    ;;
 
15110
    *)
 
15111
    DATADIRNAME=lib
 
15112
    ;;
 
15113
    esac
 
15114
fi
 
15115
rm -f core conftest.err conftest.$ac_objext \
 
15116
    conftest$ac_exeext conftest.$ac_ext
 
15117
fi
 
15118
 
 
15119
 
 
15120
 
 
15121
 
 
15122
 
 
15123
 
 
15124
   for ac_header in locale.h
 
15125
do :
 
15126
  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
15127
if test "x$ac_cv_header_locale_h" = xyes; then :
 
15128
  cat >>confdefs.h <<_ACEOF
 
15129
#define HAVE_LOCALE_H 1
 
15130
_ACEOF
 
15131
 
 
15132
fi
 
15133
 
 
15134
done
 
15135
 
 
15136
    if test $ac_cv_header_locale_h = yes; then
 
15137
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
 
15138
$as_echo_n "checking for LC_MESSAGES... " >&6; }
 
15139
if ${am_cv_val_LC_MESSAGES+:} false; then :
 
15140
  $as_echo_n "(cached) " >&6
 
15141
else
 
15142
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15143
/* end confdefs.h.  */
 
15144
#include <locale.h>
 
15145
int
 
15146
main ()
 
15147
{
 
15148
return LC_MESSAGES
 
15149
  ;
 
15150
  return 0;
 
15151
}
 
15152
_ACEOF
 
15153
if ac_fn_c_try_link "$LINENO"; then :
 
15154
  am_cv_val_LC_MESSAGES=yes
 
15155
else
 
15156
  am_cv_val_LC_MESSAGES=no
 
15157
fi
 
15158
rm -f core conftest.err conftest.$ac_objext \
 
15159
    conftest$ac_exeext conftest.$ac_ext
 
15160
fi
 
15161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
 
15162
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
 
15163
    if test $am_cv_val_LC_MESSAGES = yes; then
 
15164
 
 
15165
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
 
15166
 
 
15167
    fi
 
15168
  fi
 
15169
     USE_NLS=yes
 
15170
 
 
15171
 
 
15172
    gt_cv_have_gettext=no
 
15173
 
 
15174
    CATOBJEXT=NONE
 
15175
    XGETTEXT=:
 
15176
    INTLLIBS=
 
15177
 
 
15178
    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
 
15179
if test "x$ac_cv_header_libintl_h" = xyes; then :
 
15180
  gt_cv_func_dgettext_libintl="no"
 
15181
      libintl_extra_libs=""
 
15182
 
 
15183
      #
 
15184
      # First check in libc
 
15185
      #
 
15186
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
 
15187
$as_echo_n "checking for ngettext in libc... " >&6; }
 
15188
if ${gt_cv_func_ngettext_libc+:} false; then :
 
15189
  $as_echo_n "(cached) " >&6
 
15190
else
 
15191
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15192
/* end confdefs.h.  */
 
15193
 
 
15194
#include <libintl.h>
 
15195
 
 
15196
int
 
15197
main ()
 
15198
{
 
15199
return !ngettext ("","", 1)
 
15200
  ;
 
15201
  return 0;
 
15202
}
 
15203
_ACEOF
 
15204
if ac_fn_c_try_link "$LINENO"; then :
 
15205
  gt_cv_func_ngettext_libc=yes
 
15206
else
 
15207
  gt_cv_func_ngettext_libc=no
 
15208
fi
 
15209
rm -f core conftest.err conftest.$ac_objext \
 
15210
    conftest$ac_exeext conftest.$ac_ext
 
15211
 
 
15212
fi
 
15213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
 
15214
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
 
15215
 
 
15216
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
15217
              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
 
15218
$as_echo_n "checking for dgettext in libc... " >&6; }
 
15219
if ${gt_cv_func_dgettext_libc+:} false; then :
 
15220
  $as_echo_n "(cached) " >&6
 
15221
else
 
15222
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15223
/* end confdefs.h.  */
 
15224
 
 
15225
#include <libintl.h>
 
15226
 
 
15227
int
 
15228
main ()
 
15229
{
 
15230
return !dgettext ("","")
 
15231
  ;
 
15232
  return 0;
 
15233
}
 
15234
_ACEOF
 
15235
if ac_fn_c_try_link "$LINENO"; then :
 
15236
  gt_cv_func_dgettext_libc=yes
 
15237
else
 
15238
  gt_cv_func_dgettext_libc=no
 
15239
fi
 
15240
rm -f core conftest.err conftest.$ac_objext \
 
15241
    conftest$ac_exeext conftest.$ac_ext
 
15242
 
 
15243
fi
 
15244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
 
15245
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
 
15246
      fi
 
15247
 
 
15248
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
15249
        for ac_func in bind_textdomain_codeset
 
15250
do :
 
15251
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
15252
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
15253
  cat >>confdefs.h <<_ACEOF
 
15254
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
15255
_ACEOF
 
15256
 
 
15257
fi
 
15258
done
 
15259
 
 
15260
      fi
 
15261
 
 
15262
      #
 
15263
      # If we don't have everything we want, check in libintl
 
15264
      #
 
15265
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
15266
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
15267
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
15268
 
 
15269
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
 
15270
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
 
15271
if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
 
15272
  $as_echo_n "(cached) " >&6
 
15273
else
 
15274
  ac_check_lib_save_LIBS=$LIBS
 
15275
LIBS="-lintl  $LIBS"
 
15276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15277
/* end confdefs.h.  */
 
15278
 
 
15279
/* Override any GCC internal prototype to avoid an error.
 
15280
   Use char because int might match the return type of a GCC
 
15281
   builtin and then its argument prototype would still apply.  */
 
15282
#ifdef __cplusplus
 
15283
extern "C"
 
15284
#endif
 
15285
char bindtextdomain ();
 
15286
int
 
15287
main ()
 
15288
{
 
15289
return bindtextdomain ();
 
15290
  ;
 
15291
  return 0;
 
15292
}
 
15293
_ACEOF
 
15294
if ac_fn_c_try_link "$LINENO"; then :
 
15295
  ac_cv_lib_intl_bindtextdomain=yes
 
15296
else
 
15297
  ac_cv_lib_intl_bindtextdomain=no
 
15298
fi
 
15299
rm -f core conftest.err conftest.$ac_objext \
 
15300
    conftest$ac_exeext conftest.$ac_ext
 
15301
LIBS=$ac_check_lib_save_LIBS
 
15302
fi
 
15303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
15304
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
 
15305
if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
 
15306
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
15307
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
15308
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
15309
  $as_echo_n "(cached) " >&6
 
15310
else
 
15311
  ac_check_lib_save_LIBS=$LIBS
 
15312
LIBS="-lintl  $LIBS"
 
15313
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15314
/* end confdefs.h.  */
 
15315
 
 
15316
/* Override any GCC internal prototype to avoid an error.
 
15317
   Use char because int might match the return type of a GCC
 
15318
   builtin and then its argument prototype would still apply.  */
 
15319
#ifdef __cplusplus
 
15320
extern "C"
 
15321
#endif
 
15322
char ngettext ();
 
15323
int
 
15324
main ()
 
15325
{
 
15326
return ngettext ();
 
15327
  ;
 
15328
  return 0;
 
15329
}
 
15330
_ACEOF
 
15331
if ac_fn_c_try_link "$LINENO"; then :
 
15332
  ac_cv_lib_intl_ngettext=yes
 
15333
else
 
15334
  ac_cv_lib_intl_ngettext=no
 
15335
fi
 
15336
rm -f core conftest.err conftest.$ac_objext \
 
15337
    conftest$ac_exeext conftest.$ac_ext
 
15338
LIBS=$ac_check_lib_save_LIBS
 
15339
fi
 
15340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
15341
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
15342
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
15343
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
 
15344
$as_echo_n "checking for dgettext in -lintl... " >&6; }
 
15345
if ${ac_cv_lib_intl_dgettext+:} false; then :
 
15346
  $as_echo_n "(cached) " >&6
 
15347
else
 
15348
  ac_check_lib_save_LIBS=$LIBS
 
15349
LIBS="-lintl  $LIBS"
 
15350
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15351
/* end confdefs.h.  */
 
15352
 
 
15353
/* Override any GCC internal prototype to avoid an error.
 
15354
   Use char because int might match the return type of a GCC
 
15355
   builtin and then its argument prototype would still apply.  */
 
15356
#ifdef __cplusplus
 
15357
extern "C"
 
15358
#endif
 
15359
char dgettext ();
 
15360
int
 
15361
main ()
 
15362
{
 
15363
return dgettext ();
 
15364
  ;
 
15365
  return 0;
 
15366
}
 
15367
_ACEOF
 
15368
if ac_fn_c_try_link "$LINENO"; then :
 
15369
  ac_cv_lib_intl_dgettext=yes
 
15370
else
 
15371
  ac_cv_lib_intl_dgettext=no
 
15372
fi
 
15373
rm -f core conftest.err conftest.$ac_objext \
 
15374
    conftest$ac_exeext conftest.$ac_ext
 
15375
LIBS=$ac_check_lib_save_LIBS
 
15376
fi
 
15377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
 
15378
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
 
15379
if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
 
15380
  gt_cv_func_dgettext_libintl=yes
 
15381
fi
 
15382
 
 
15383
fi
 
15384
 
 
15385
fi
 
15386
 
 
15387
 
 
15388
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
15389
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
 
15390
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
 
15391
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
15392
$as_echo "" >&6; }
 
15393
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
 
15394
$as_echo_n "checking for ngettext in -lintl... " >&6; }
 
15395
if ${ac_cv_lib_intl_ngettext+:} false; then :
 
15396
  $as_echo_n "(cached) " >&6
 
15397
else
 
15398
  ac_check_lib_save_LIBS=$LIBS
 
15399
LIBS="-lintl -liconv $LIBS"
 
15400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15401
/* end confdefs.h.  */
 
15402
 
 
15403
/* Override any GCC internal prototype to avoid an error.
 
15404
   Use char because int might match the return type of a GCC
 
15405
   builtin and then its argument prototype would still apply.  */
 
15406
#ifdef __cplusplus
 
15407
extern "C"
 
15408
#endif
 
15409
char ngettext ();
 
15410
int
 
15411
main ()
 
15412
{
 
15413
return ngettext ();
 
15414
  ;
 
15415
  return 0;
 
15416
}
 
15417
_ACEOF
 
15418
if ac_fn_c_try_link "$LINENO"; then :
 
15419
  ac_cv_lib_intl_ngettext=yes
 
15420
else
 
15421
  ac_cv_lib_intl_ngettext=no
 
15422
fi
 
15423
rm -f core conftest.err conftest.$ac_objext \
 
15424
    conftest$ac_exeext conftest.$ac_ext
 
15425
LIBS=$ac_check_lib_save_LIBS
 
15426
fi
 
15427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
 
15428
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
 
15429
if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
 
15430
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
 
15431
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
 
15432
if ${ac_cv_lib_intl_dcgettext+:} false; then :
 
15433
  $as_echo_n "(cached) " >&6
 
15434
else
 
15435
  ac_check_lib_save_LIBS=$LIBS
 
15436
LIBS="-lintl -liconv $LIBS"
 
15437
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15438
/* end confdefs.h.  */
 
15439
 
 
15440
/* Override any GCC internal prototype to avoid an error.
 
15441
   Use char because int might match the return type of a GCC
 
15442
   builtin and then its argument prototype would still apply.  */
 
15443
#ifdef __cplusplus
 
15444
extern "C"
 
15445
#endif
 
15446
char dcgettext ();
 
15447
int
 
15448
main ()
 
15449
{
 
15450
return dcgettext ();
 
15451
  ;
 
15452
  return 0;
 
15453
}
 
15454
_ACEOF
 
15455
if ac_fn_c_try_link "$LINENO"; then :
 
15456
  ac_cv_lib_intl_dcgettext=yes
 
15457
else
 
15458
  ac_cv_lib_intl_dcgettext=no
 
15459
fi
 
15460
rm -f core conftest.err conftest.$ac_objext \
 
15461
    conftest$ac_exeext conftest.$ac_ext
 
15462
LIBS=$ac_check_lib_save_LIBS
 
15463
fi
 
15464
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
 
15465
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
 
15466
if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
 
15467
  gt_cv_func_dgettext_libintl=yes
 
15468
                        libintl_extra_libs=-liconv
 
15469
else
 
15470
  :
 
15471
fi
 
15472
 
 
15473
else
 
15474
  :
 
15475
fi
 
15476
 
 
15477
        fi
 
15478
 
 
15479
        #
 
15480
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
15481
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
15482
        # and both have dgettext and ngettext
 
15483
        #
 
15484
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
15485
          glib_save_LIBS="$LIBS"
 
15486
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
15487
          unset ac_cv_func_bind_textdomain_codeset
 
15488
          for ac_func in bind_textdomain_codeset
 
15489
do :
 
15490
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
15491
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
15492
  cat >>confdefs.h <<_ACEOF
 
15493
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
15494
_ACEOF
 
15495
 
 
15496
fi
 
15497
done
 
15498
 
 
15499
          LIBS="$glib_save_LIBS"
 
15500
 
 
15501
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
15502
            gt_cv_func_dgettext_libc=no
 
15503
          else
 
15504
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
15505
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
15506
              gt_cv_func_dgettext_libintl=no
 
15507
            fi
 
15508
          fi
 
15509
        fi
 
15510
      fi
 
15511
 
 
15512
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
15513
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
15514
        gt_cv_have_gettext=yes
 
15515
      fi
 
15516
 
 
15517
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
15518
        INTLLIBS="-lintl $libintl_extra_libs"
 
15519
      fi
 
15520
 
 
15521
      if test "$gt_cv_have_gettext" = "yes"; then
 
15522
 
 
15523
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
15524
 
 
15525
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
15526
set dummy msgfmt; ac_word=$2
 
15527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15528
$as_echo_n "checking for $ac_word... " >&6; }
 
15529
if ${ac_cv_path_MSGFMT+:} false; then :
 
15530
  $as_echo_n "(cached) " >&6
 
15531
else
 
15532
  case "$MSGFMT" in
 
15533
  /*)
 
15534
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
15535
  ;;
 
15536
  *)
 
15537
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
15538
  for ac_dir in $PATH; do
 
15539
    test -z "$ac_dir" && ac_dir=.
 
15540
    if test -f $ac_dir/$ac_word; then
 
15541
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
15542
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
15543
        break
 
15544
      fi
 
15545
    fi
 
15546
  done
 
15547
  IFS="$ac_save_ifs"
 
15548
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
15549
  ;;
 
15550
esac
 
15551
fi
 
15552
MSGFMT="$ac_cv_path_MSGFMT"
 
15553
if test "$MSGFMT" != "no"; then
 
15554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
15555
$as_echo "$MSGFMT" >&6; }
 
15556
else
 
15557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15558
$as_echo "no" >&6; }
 
15559
fi
 
15560
        if test "$MSGFMT" != "no"; then
 
15561
          glib_save_LIBS="$LIBS"
 
15562
          LIBS="$LIBS $INTLLIBS"
 
15563
          for ac_func in dcgettext
 
15564
do :
 
15565
  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
 
15566
if test "x$ac_cv_func_dcgettext" = xyes; then :
 
15567
  cat >>confdefs.h <<_ACEOF
 
15568
#define HAVE_DCGETTEXT 1
 
15569
_ACEOF
 
15570
 
 
15571
fi
 
15572
done
 
15573
 
 
15574
          MSGFMT_OPTS=
 
15575
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
 
15576
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
 
15577
          cat >conftest.foo <<_ACEOF
 
15578
 
 
15579
msgid ""
 
15580
msgstr ""
 
15581
"Content-Type: text/plain; charset=UTF-8\n"
 
15582
"Project-Id-Version: test 1.0\n"
 
15583
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
15584
"Last-Translator: test <foo@bar.xx>\n"
 
15585
"Language-Team: C <LL@li.org>\n"
 
15586
"MIME-Version: 1.0\n"
 
15587
"Content-Transfer-Encoding: 8bit\n"
 
15588
 
 
15589
_ACEOF
 
15590
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
 
15591
  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
 
15592
  ac_status=$?
 
15593
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15594
  test $ac_status = 0; }; then
 
15595
  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15596
$as_echo "yes" >&6; }
 
15597
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15598
$as_echo "no" >&6; }
 
15599
echo "$as_me: failed input was:" >&5
 
15600
sed 's/^/| /' conftest.foo >&5
 
15601
fi
 
15602
 
 
15603
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
15604
set dummy gmsgfmt; ac_word=$2
 
15605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15606
$as_echo_n "checking for $ac_word... " >&6; }
 
15607
if ${ac_cv_path_GMSGFMT+:} false; then :
 
15608
  $as_echo_n "(cached) " >&6
 
15609
else
 
15610
  case $GMSGFMT in
 
15611
  [\\/]* | ?:[\\/]*)
 
15612
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
15613
  ;;
 
15614
  *)
 
15615
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15616
for as_dir in $PATH
 
15617
do
 
15618
  IFS=$as_save_IFS
 
15619
  test -z "$as_dir" && as_dir=.
 
15620
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15621
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15622
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
15623
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15624
    break 2
 
15625
  fi
 
15626
done
 
15627
  done
 
15628
IFS=$as_save_IFS
 
15629
 
 
15630
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
15631
  ;;
 
15632
esac
 
15633
fi
 
15634
GMSGFMT=$ac_cv_path_GMSGFMT
 
15635
if test -n "$GMSGFMT"; then
 
15636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
15637
$as_echo "$GMSGFMT" >&6; }
 
15638
else
 
15639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15640
$as_echo "no" >&6; }
 
15641
fi
 
15642
 
 
15643
 
 
15644
          # Extract the first word of "xgettext", so it can be a program name with args.
 
15645
set dummy xgettext; ac_word=$2
 
15646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15647
$as_echo_n "checking for $ac_word... " >&6; }
 
15648
if ${ac_cv_path_XGETTEXT+:} false; then :
 
15649
  $as_echo_n "(cached) " >&6
 
15650
else
 
15651
  case "$XGETTEXT" in
 
15652
  /*)
 
15653
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
15654
  ;;
 
15655
  *)
 
15656
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
15657
  for ac_dir in $PATH; do
 
15658
    test -z "$ac_dir" && ac_dir=.
 
15659
    if test -f $ac_dir/$ac_word; then
 
15660
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
15661
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
15662
        break
 
15663
      fi
 
15664
    fi
 
15665
  done
 
15666
  IFS="$ac_save_ifs"
 
15667
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
15668
  ;;
 
15669
esac
 
15670
fi
 
15671
XGETTEXT="$ac_cv_path_XGETTEXT"
 
15672
if test "$XGETTEXT" != ":"; then
 
15673
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
15674
$as_echo "$XGETTEXT" >&6; }
 
15675
else
 
15676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15677
$as_echo "no" >&6; }
 
15678
fi
 
15679
 
 
15680
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15681
/* end confdefs.h.  */
 
15682
 
 
15683
int
 
15684
main ()
 
15685
{
 
15686
extern int _nl_msg_cat_cntr;
 
15687
                         return _nl_msg_cat_cntr
 
15688
  ;
 
15689
  return 0;
 
15690
}
 
15691
_ACEOF
 
15692
if ac_fn_c_try_link "$LINENO"; then :
 
15693
  CATOBJEXT=.gmo
 
15694
             DATADIRNAME=share
 
15695
else
 
15696
  case $host in
 
15697
            *-*-solaris*)
 
15698
                                                                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
15699
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
15700
  CATOBJEXT=.gmo
 
15701
               DATADIRNAME=share
 
15702
else
 
15703
  CATOBJEXT=.mo
 
15704
               DATADIRNAME=lib
 
15705
fi
 
15706
 
 
15707
            ;;
 
15708
            *-*-openbsd*)
 
15709
            CATOBJEXT=.mo
 
15710
            DATADIRNAME=share
 
15711
            ;;
 
15712
            *)
 
15713
            CATOBJEXT=.mo
 
15714
            DATADIRNAME=lib
 
15715
            ;;
 
15716
            esac
 
15717
fi
 
15718
rm -f core conftest.err conftest.$ac_objext \
 
15719
    conftest$ac_exeext conftest.$ac_ext
 
15720
          LIBS="$glib_save_LIBS"
 
15721
          INSTOBJEXT=.mo
 
15722
        else
 
15723
          gt_cv_have_gettext=no
 
15724
        fi
 
15725
      fi
 
15726
 
 
15727
fi
 
15728
 
 
15729
 
 
15730
 
 
15731
    if test "$gt_cv_have_gettext" = "yes" ; then
 
15732
 
 
15733
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
15734
 
 
15735
    fi
 
15736
 
 
15737
        if test "$XGETTEXT" != ":"; then
 
15738
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
15739
        : ;
 
15740
      else
 
15741
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
15742
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
 
15743
        XGETTEXT=":"
 
15744
      fi
 
15745
    fi
 
15746
 
 
15747
    # We need to process the po/ directory.
 
15748
    POSUB=po
 
15749
 
 
15750
    ac_config_commands="$ac_config_commands default-1"
 
15751
 
 
15752
 
 
15753
                for lang in $ALL_LINGUAS; do
 
15754
      GMOFILES="$GMOFILES $lang.gmo"
 
15755
      POFILES="$POFILES $lang.po"
 
15756
    done
 
15757
 
 
15758
 
 
15759
 
 
15760
 
 
15761
 
 
15762
 
 
15763
 
 
15764
 
 
15765
 
 
15766
 
 
15767
 
 
15768
 
 
15769
 
 
15770
   if test "$gt_cv_have_gettext" = "yes"; then
 
15771
     if test "x$ALL_LINGUAS" = "x"; then
 
15772
       LINGUAS=
 
15773
     else
 
15774
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
 
15775
$as_echo_n "checking for catalogs to be installed... " >&6; }
 
15776
       NEW_LINGUAS=
 
15777
       for presentlang in $ALL_LINGUAS; do
 
15778
         useit=no
 
15779
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
15780
           desiredlanguages="$LINGUAS"
 
15781
         else
 
15782
           desiredlanguages="$ALL_LINGUAS"
 
15783
         fi
 
15784
         for desiredlang in $desiredlanguages; do
 
15785
           # Use the presentlang catalog if desiredlang is
 
15786
           #   a. equal to presentlang, or
 
15787
           #   b. a variant of presentlang (because in this case,
 
15788
           #      presentlang can be used as a fallback for messages
 
15789
           #      which are not translated in the desiredlang catalog).
 
15790
           case "$desiredlang" in
 
15791
             "$presentlang"*) useit=yes;;
 
15792
           esac
 
15793
         done
 
15794
         if test $useit = yes; then
 
15795
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
15796
         fi
 
15797
       done
 
15798
       LINGUAS=$NEW_LINGUAS
 
15799
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
 
15800
$as_echo "$LINGUAS" >&6; }
 
15801
     fi
 
15802
 
 
15803
          if test -n "$LINGUAS"; then
 
15804
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
15805
     fi
 
15806
   fi
 
15807
 
 
15808
            MKINSTALLDIRS=
 
15809
   if test -n "$ac_aux_dir"; then
 
15810
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
15811
   fi
 
15812
   if test -z "$MKINSTALLDIRS"; then
 
15813
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
15814
   fi
 
15815
 
 
15816
 
 
15817
         test -d po || mkdir po
 
15818
   if test "x$srcdir" != "x."; then
 
15819
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
15820
       posrcprefix="$srcdir/"
 
15821
     else
 
15822
       posrcprefix="../$srcdir/"
 
15823
     fi
 
15824
   else
 
15825
     posrcprefix="../"
 
15826
   fi
 
15827
   rm -f po/POTFILES
 
15828
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
15829
        < $srcdir/po/POTFILES.in > po/POTFILES
 
15830
 
 
15831
 
 
15832
 
 
15833
###########
 
15834
# iso-codes
 
15835
###########
 
15836
 
 
15837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iso-codes" >&5
 
15838
$as_echo_n "checking for iso-codes... " >&6; }
 
15839
if test -n "$PKG_CONFIG" && \
 
15840
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iso-codes\""; } >&5
 
15841
  ($PKG_CONFIG --exists --print-errors "iso-codes") 2>&5
 
15842
  ac_status=$?
 
15843
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15844
  test $ac_status = 0; }; then
 
15845
  have_iso_codes="yes"
 
15846
 
 
15847
$as_echo "#define HAVE_ISO_CODES 1" >>confdefs.h
 
15848
 
 
15849
  ISO_CODES_PREFIX=`$PKG_CONFIG --variable=prefix iso-codes`
 
15850
  ISO_CODES_LOCATION="$ISO_CODES_PREFIX/share/xml/iso-codes"
 
15851
  ISO_CODES_LOCALEDIR="$ISO_CODES_PREFIX/$DATADIRNAME/locale"
 
15852
else
 
15853
  have_iso_codes="no (iso-codes package not found)"
 
15854
fi
 
15855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_iso_codes" >&5
 
15856
$as_echo "$have_iso_codes" >&6; }
 
15857
 
 
15858
 
 
15859
 
 
15860
 
 
15861
 
 
15862
###############################
 
15863
# Checks for required libraries
 
15864
###############################
 
15865
 
 
15866
 
 
15867
pkg_failed=no
 
15868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BABL" >&5
 
15869
$as_echo_n "checking for BABL... " >&6; }
 
15870
 
 
15871
if test -n "$BABL_CFLAGS"; then
 
15872
    pkg_cv_BABL_CFLAGS="$BABL_CFLAGS"
 
15873
 elif test -n "$PKG_CONFIG"; then
 
15874
    if test -n "$PKG_CONFIG" && \
 
15875
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"babl >= 0.1.10\""; } >&5
 
15876
  ($PKG_CONFIG --exists --print-errors "babl >= 0.1.10") 2>&5
 
15877
  ac_status=$?
 
15878
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15879
  test $ac_status = 0; }; then
 
15880
  pkg_cv_BABL_CFLAGS=`$PKG_CONFIG --cflags "babl >= 0.1.10" 2>/dev/null`
 
15881
                      test "x$?" != "x0" && pkg_failed=yes
 
15882
else
 
15883
  pkg_failed=yes
 
15884
fi
 
15885
 else
 
15886
    pkg_failed=untried
 
15887
fi
 
15888
if test -n "$BABL_LIBS"; then
 
15889
    pkg_cv_BABL_LIBS="$BABL_LIBS"
 
15890
 elif test -n "$PKG_CONFIG"; then
 
15891
    if test -n "$PKG_CONFIG" && \
 
15892
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"babl >= 0.1.10\""; } >&5
 
15893
  ($PKG_CONFIG --exists --print-errors "babl >= 0.1.10") 2>&5
 
15894
  ac_status=$?
 
15895
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15896
  test $ac_status = 0; }; then
 
15897
  pkg_cv_BABL_LIBS=`$PKG_CONFIG --libs "babl >= 0.1.10" 2>/dev/null`
 
15898
                      test "x$?" != "x0" && pkg_failed=yes
 
15899
else
 
15900
  pkg_failed=yes
 
15901
fi
 
15902
 else
 
15903
    pkg_failed=untried
 
15904
fi
 
15905
 
 
15906
 
 
15907
 
 
15908
if test $pkg_failed = yes; then
 
15909
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15910
$as_echo "no" >&6; }
 
15911
 
 
15912
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
15913
        _pkg_short_errors_supported=yes
 
15914
else
 
15915
        _pkg_short_errors_supported=no
 
15916
fi
 
15917
        if test $_pkg_short_errors_supported = yes; then
 
15918
                BABL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "babl >= 0.1.10" 2>&1`
 
15919
        else
 
15920
                BABL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "babl >= 0.1.10" 2>&1`
 
15921
        fi
 
15922
        # Put the nasty error message in config.log where it belongs
 
15923
        echo "$BABL_PKG_ERRORS" >&5
 
15924
 
 
15925
        as_fn_error $? "Package requirements (babl >= 0.1.10) were not met:
 
15926
 
 
15927
$BABL_PKG_ERRORS
 
15928
 
 
15929
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
15930
installed software in a non-standard prefix.
 
15931
 
 
15932
Alternatively, you may set the environment variables BABL_CFLAGS
 
15933
and BABL_LIBS to avoid the need to call pkg-config.
 
15934
See the pkg-config man page for more details." "$LINENO" 5
 
15935
elif test $pkg_failed = untried; then
 
15936
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15937
$as_echo "no" >&6; }
 
15938
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15939
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15940
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
15941
is in your PATH or set the PKG_CONFIG environment variable to the full
 
15942
path to pkg-config.
 
15943
 
 
15944
Alternatively, you may set the environment variables BABL_CFLAGS
 
15945
and BABL_LIBS to avoid the need to call pkg-config.
 
15946
See the pkg-config man page for more details.
 
15947
 
 
15948
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
15949
See \`config.log' for more details" "$LINENO" 5; }
 
15950
else
 
15951
        BABL_CFLAGS=$pkg_cv_BABL_CFLAGS
 
15952
        BABL_LIBS=$pkg_cv_BABL_LIBS
 
15953
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15954
$as_echo "yes" >&6; }
 
15955
 
 
15956
fi
 
15957
 
 
15958
pkg_failed=no
 
15959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEGL" >&5
 
15960
$as_echo_n "checking for GEGL... " >&6; }
 
15961
 
 
15962
if test -n "$GEGL_CFLAGS"; then
 
15963
    pkg_cv_GEGL_CFLAGS="$GEGL_CFLAGS"
 
15964
 elif test -n "$PKG_CONFIG"; then
 
15965
    if test -n "$PKG_CONFIG" && \
 
15966
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gegl-0.2 >= 0.2.0\""; } >&5
 
15967
  ($PKG_CONFIG --exists --print-errors "gegl-0.2 >= 0.2.0") 2>&5
 
15968
  ac_status=$?
 
15969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15970
  test $ac_status = 0; }; then
 
15971
  pkg_cv_GEGL_CFLAGS=`$PKG_CONFIG --cflags "gegl-0.2 >= 0.2.0" 2>/dev/null`
 
15972
                      test "x$?" != "x0" && pkg_failed=yes
 
15973
else
 
15974
  pkg_failed=yes
 
15975
fi
 
15976
 else
 
15977
    pkg_failed=untried
 
15978
fi
 
15979
if test -n "$GEGL_LIBS"; then
 
15980
    pkg_cv_GEGL_LIBS="$GEGL_LIBS"
 
15981
 elif test -n "$PKG_CONFIG"; then
 
15982
    if test -n "$PKG_CONFIG" && \
 
15983
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gegl-0.2 >= 0.2.0\""; } >&5
 
15984
  ($PKG_CONFIG --exists --print-errors "gegl-0.2 >= 0.2.0") 2>&5
 
15985
  ac_status=$?
 
15986
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15987
  test $ac_status = 0; }; then
 
15988
  pkg_cv_GEGL_LIBS=`$PKG_CONFIG --libs "gegl-0.2 >= 0.2.0" 2>/dev/null`
 
15989
                      test "x$?" != "x0" && pkg_failed=yes
 
15990
else
 
15991
  pkg_failed=yes
 
15992
fi
 
15993
 else
 
15994
    pkg_failed=untried
 
15995
fi
 
15996
 
 
15997
 
 
15998
 
 
15999
if test $pkg_failed = yes; then
 
16000
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16001
$as_echo "no" >&6; }
 
16002
 
 
16003
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16004
        _pkg_short_errors_supported=yes
 
16005
else
 
16006
        _pkg_short_errors_supported=no
 
16007
fi
 
16008
        if test $_pkg_short_errors_supported = yes; then
 
16009
                GEGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gegl-0.2 >= 0.2.0" 2>&1`
 
16010
        else
 
16011
                GEGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gegl-0.2 >= 0.2.0" 2>&1`
 
16012
        fi
 
16013
        # Put the nasty error message in config.log where it belongs
 
16014
        echo "$GEGL_PKG_ERRORS" >&5
 
16015
 
 
16016
        as_fn_error $? "Package requirements (gegl-0.2 >= 0.2.0) were not met:
 
16017
 
 
16018
$GEGL_PKG_ERRORS
 
16019
 
 
16020
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16021
installed software in a non-standard prefix.
 
16022
 
 
16023
Alternatively, you may set the environment variables GEGL_CFLAGS
 
16024
and GEGL_LIBS to avoid the need to call pkg-config.
 
16025
See the pkg-config man page for more details." "$LINENO" 5
 
16026
elif test $pkg_failed = untried; then
 
16027
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16028
$as_echo "no" >&6; }
 
16029
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16030
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16031
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16032
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16033
path to pkg-config.
 
16034
 
 
16035
Alternatively, you may set the environment variables GEGL_CFLAGS
 
16036
and GEGL_LIBS to avoid the need to call pkg-config.
 
16037
See the pkg-config man page for more details.
 
16038
 
 
16039
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16040
See \`config.log' for more details" "$LINENO" 5; }
 
16041
else
 
16042
        GEGL_CFLAGS=$pkg_cv_GEGL_CFLAGS
 
16043
        GEGL_LIBS=$pkg_cv_GEGL_LIBS
 
16044
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16045
$as_echo "yes" >&6; }
 
16046
 
 
16047
fi
 
16048
 
 
16049
pkg_failed=no
 
16050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATK" >&5
 
16051
$as_echo_n "checking for ATK... " >&6; }
 
16052
 
 
16053
if test -n "$ATK_CFLAGS"; then
 
16054
    pkg_cv_ATK_CFLAGS="$ATK_CFLAGS"
 
16055
 elif test -n "$PKG_CONFIG"; then
 
16056
    if test -n "$PKG_CONFIG" && \
 
16057
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.2.0\""; } >&5
 
16058
  ($PKG_CONFIG --exists --print-errors "atk >= 2.2.0") 2>&5
 
16059
  ac_status=$?
 
16060
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16061
  test $ac_status = 0; }; then
 
16062
  pkg_cv_ATK_CFLAGS=`$PKG_CONFIG --cflags "atk >= 2.2.0" 2>/dev/null`
 
16063
                      test "x$?" != "x0" && pkg_failed=yes
 
16064
else
 
16065
  pkg_failed=yes
 
16066
fi
 
16067
 else
 
16068
    pkg_failed=untried
 
16069
fi
 
16070
if test -n "$ATK_LIBS"; then
 
16071
    pkg_cv_ATK_LIBS="$ATK_LIBS"
 
16072
 elif test -n "$PKG_CONFIG"; then
 
16073
    if test -n "$PKG_CONFIG" && \
 
16074
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.2.0\""; } >&5
 
16075
  ($PKG_CONFIG --exists --print-errors "atk >= 2.2.0") 2>&5
 
16076
  ac_status=$?
 
16077
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16078
  test $ac_status = 0; }; then
 
16079
  pkg_cv_ATK_LIBS=`$PKG_CONFIG --libs "atk >= 2.2.0" 2>/dev/null`
 
16080
                      test "x$?" != "x0" && pkg_failed=yes
 
16081
else
 
16082
  pkg_failed=yes
 
16083
fi
 
16084
 else
 
16085
    pkg_failed=untried
 
16086
fi
 
16087
 
 
16088
 
 
16089
 
 
16090
if test $pkg_failed = yes; then
 
16091
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16092
$as_echo "no" >&6; }
 
16093
 
 
16094
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16095
        _pkg_short_errors_supported=yes
 
16096
else
 
16097
        _pkg_short_errors_supported=no
 
16098
fi
 
16099
        if test $_pkg_short_errors_supported = yes; then
 
16100
                ATK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "atk >= 2.2.0" 2>&1`
 
16101
        else
 
16102
                ATK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "atk >= 2.2.0" 2>&1`
 
16103
        fi
 
16104
        # Put the nasty error message in config.log where it belongs
 
16105
        echo "$ATK_PKG_ERRORS" >&5
 
16106
 
 
16107
        as_fn_error $? "Package requirements (atk >= 2.2.0) were not met:
 
16108
 
 
16109
$ATK_PKG_ERRORS
 
16110
 
 
16111
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16112
installed software in a non-standard prefix.
 
16113
 
 
16114
Alternatively, you may set the environment variables ATK_CFLAGS
 
16115
and ATK_LIBS to avoid the need to call pkg-config.
 
16116
See the pkg-config man page for more details." "$LINENO" 5
 
16117
elif test $pkg_failed = untried; then
 
16118
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16119
$as_echo "no" >&6; }
 
16120
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16121
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16122
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16123
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16124
path to pkg-config.
 
16125
 
 
16126
Alternatively, you may set the environment variables ATK_CFLAGS
 
16127
and ATK_LIBS to avoid the need to call pkg-config.
 
16128
See the pkg-config man page for more details.
 
16129
 
 
16130
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16131
See \`config.log' for more details" "$LINENO" 5; }
 
16132
else
 
16133
        ATK_CFLAGS=$pkg_cv_ATK_CFLAGS
 
16134
        ATK_LIBS=$pkg_cv_ATK_LIBS
 
16135
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16136
$as_echo "yes" >&6; }
 
16137
 
 
16138
fi
 
16139
 
 
16140
# Check whether --enable-glibtest was given.
 
16141
if test "${enable_glibtest+set}" = set; then :
 
16142
  enableval=$enable_glibtest;
 
16143
else
 
16144
  enable_glibtest=yes
 
16145
fi
 
16146
 
 
16147
 
 
16148
  pkg_config_args=glib-2.0
 
16149
  for module in . gobject gthread
 
16150
  do
 
16151
      case "$module" in
 
16152
         gmodule)
 
16153
             pkg_config_args="$pkg_config_args gmodule-2.0"
 
16154
         ;;
 
16155
         gmodule-no-export)
 
16156
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
 
16157
         ;;
 
16158
         gobject)
 
16159
             pkg_config_args="$pkg_config_args gobject-2.0"
 
16160
         ;;
 
16161
         gthread)
 
16162
             pkg_config_args="$pkg_config_args gthread-2.0"
 
16163
         ;;
 
16164
         gio*)
 
16165
             pkg_config_args="$pkg_config_args $module-2.0"
 
16166
         ;;
 
16167
      esac
 
16168
  done
 
16169
 
 
16170
 
 
16171
 
 
16172
 
 
16173
 
 
16174
 
 
16175
 
 
16176
 
 
16177
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
16178
        if test -n "$ac_tool_prefix"; then
 
16179
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
16180
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
16181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16182
$as_echo_n "checking for $ac_word... " >&6; }
 
16183
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
16184
  $as_echo_n "(cached) " >&6
 
16185
else
 
16186
  case $PKG_CONFIG in
 
16187
  [\\/]* | ?:[\\/]*)
 
16188
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
16189
  ;;
 
16190
  *)
 
16191
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16192
for as_dir in $PATH
 
16193
do
 
16194
  IFS=$as_save_IFS
 
16195
  test -z "$as_dir" && as_dir=.
 
16196
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16197
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16198
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16199
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16200
    break 2
 
16201
  fi
 
16202
done
 
16203
  done
 
16204
IFS=$as_save_IFS
 
16205
 
 
16206
  ;;
 
16207
esac
 
16208
fi
 
16209
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
16210
if test -n "$PKG_CONFIG"; then
 
16211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
16212
$as_echo "$PKG_CONFIG" >&6; }
 
16213
else
 
16214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16215
$as_echo "no" >&6; }
 
16216
fi
 
16217
 
 
16218
 
 
16219
fi
 
16220
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
16221
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
16222
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
16223
set dummy pkg-config; ac_word=$2
 
16224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
16225
$as_echo_n "checking for $ac_word... " >&6; }
 
16226
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
 
16227
  $as_echo_n "(cached) " >&6
 
16228
else
 
16229
  case $ac_pt_PKG_CONFIG in
 
16230
  [\\/]* | ?:[\\/]*)
 
16231
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
16232
  ;;
 
16233
  *)
 
16234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16235
for as_dir in $PATH
 
16236
do
 
16237
  IFS=$as_save_IFS
 
16238
  test -z "$as_dir" && as_dir=.
 
16239
    for ac_exec_ext in '' $ac_executable_extensions; do
 
16240
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16241
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
16242
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16243
    break 2
 
16244
  fi
 
16245
done
 
16246
  done
 
16247
IFS=$as_save_IFS
 
16248
 
 
16249
  ;;
 
16250
esac
 
16251
fi
 
16252
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
16253
if test -n "$ac_pt_PKG_CONFIG"; then
 
16254
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
16255
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
16256
else
 
16257
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16258
$as_echo "no" >&6; }
 
16259
fi
 
16260
 
 
16261
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
16262
    PKG_CONFIG=""
 
16263
  else
 
16264
    case $cross_compiling:$ac_tool_warned in
 
16265
yes:)
 
16266
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
16267
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
16268
ac_tool_warned=yes ;;
 
16269
esac
 
16270
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
16271
  fi
 
16272
else
 
16273
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
16274
fi
 
16275
 
 
16276
fi
 
16277
if test -n "$PKG_CONFIG"; then
 
16278
        _pkg_min_version=0.16
 
16279
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
16280
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
16281
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
16282
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16283
$as_echo "yes" >&6; }
 
16284
        else
 
16285
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16286
$as_echo "no" >&6; }
 
16287
                PKG_CONFIG=""
 
16288
        fi
 
16289
fi
 
16290
 
 
16291
  no_glib=""
 
16292
 
 
16293
  if test "x$PKG_CONFIG" = x ; then
 
16294
    no_glib=yes
 
16295
    PKG_CONFIG=no
 
16296
  fi
 
16297
 
 
16298
  min_glib_version=2.30.2
 
16299
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
 
16300
$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
 
16301
 
 
16302
  if test x$PKG_CONFIG != xno ; then
 
16303
    ## don't try to run the test against uninstalled libtool libs
 
16304
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
16305
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
 
16306
          enable_glibtest=no
 
16307
    fi
 
16308
 
 
16309
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
 
16310
          :
 
16311
    else
 
16312
          no_glib=yes
 
16313
    fi
 
16314
  fi
 
16315
 
 
16316
  if test x"$no_glib" = x ; then
 
16317
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 
16318
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
 
16319
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
16320
    GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
 
16321
 
 
16322
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
 
16323
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
 
16324
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
16325
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
16326
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
16327
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
16328
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
16329
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
16330
    if test "x$enable_glibtest" = "xyes" ; then
 
16331
      ac_save_CFLAGS="$CFLAGS"
 
16332
      ac_save_LIBS="$LIBS"
 
16333
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
16334
      LIBS="$GLIB_LIBS $LIBS"
 
16335
      rm -f conf.glibtest
 
16336
      if test "$cross_compiling" = yes; then :
 
16337
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
16338
else
 
16339
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16340
/* end confdefs.h.  */
 
16341
 
 
16342
#include <glib.h>
 
16343
#include <stdio.h>
 
16344
#include <stdlib.h>
 
16345
 
 
16346
int
 
16347
main ()
 
16348
{
 
16349
  unsigned int major, minor, micro;
 
16350
  char *tmp_version;
 
16351
 
 
16352
  fclose (fopen ("conf.glibtest", "w"));
 
16353
 
 
16354
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
16355
  tmp_version = g_strdup("$min_glib_version");
 
16356
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
 
16357
     printf("%s, bad version string\n", "$min_glib_version");
 
16358
     exit(1);
 
16359
   }
 
16360
 
 
16361
  if ((glib_major_version != $glib_config_major_version) ||
 
16362
      (glib_minor_version != $glib_config_minor_version) ||
 
16363
      (glib_micro_version != $glib_config_micro_version))
 
16364
    {
 
16365
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
 
16366
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
 
16367
             glib_major_version, glib_minor_version, glib_micro_version);
 
16368
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
16369
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
 
16370
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
16371
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
16372
      printf("*** required on your system.\n");
 
16373
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
16374
      printf("*** to point to the correct configuration files\n");
 
16375
    }
 
16376
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
 
16377
           (glib_minor_version != GLIB_MINOR_VERSION) ||
 
16378
           (glib_micro_version != GLIB_MICRO_VERSION))
 
16379
    {
 
16380
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
 
16381
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
 
16382
      printf("*** library (version %d.%d.%d)\n",
 
16383
             glib_major_version, glib_minor_version, glib_micro_version);
 
16384
    }
 
16385
  else
 
16386
    {
 
16387
      if ((glib_major_version > major) ||
 
16388
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
 
16389
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
 
16390
      {
 
16391
        return 0;
 
16392
       }
 
16393
     else
 
16394
      {
 
16395
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
 
16396
               glib_major_version, glib_minor_version, glib_micro_version);
 
16397
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
 
16398
               major, minor, micro);
 
16399
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
 
16400
        printf("***\n");
 
16401
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
16402
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
16403
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
16404
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
 
16405
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
16406
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
16407
        printf("*** so that the correct libraries are found at run-time))\n");
 
16408
      }
 
16409
    }
 
16410
  return 1;
 
16411
}
 
16412
 
 
16413
_ACEOF
 
16414
if ac_fn_c_try_run "$LINENO"; then :
 
16415
 
 
16416
else
 
16417
  no_glib=yes
 
16418
fi
 
16419
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
16420
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
16421
fi
 
16422
 
 
16423
       CFLAGS="$ac_save_CFLAGS"
 
16424
       LIBS="$ac_save_LIBS"
 
16425
     fi
 
16426
  fi
 
16427
  if test "x$no_glib" = x ; then
 
16428
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
 
16429
$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
 
16430
     :
 
16431
  else
 
16432
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16433
$as_echo "no" >&6; }
 
16434
     if test "$PKG_CONFIG" = "no" ; then
 
16435
       echo "*** A new enough version of pkg-config was not found."
 
16436
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
 
16437
     else
 
16438
       if test -f conf.glibtest ; then
 
16439
        :
 
16440
       else
 
16441
          echo "*** Could not run GLIB test program, checking why..."
 
16442
          ac_save_CFLAGS="$CFLAGS"
 
16443
          ac_save_LIBS="$LIBS"
 
16444
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
16445
          LIBS="$LIBS $GLIB_LIBS"
 
16446
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16447
/* end confdefs.h.  */
 
16448
 
 
16449
#include <glib.h>
 
16450
#include <stdio.h>
 
16451
 
 
16452
int
 
16453
main ()
 
16454
{
 
16455
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
 
16456
  ;
 
16457
  return 0;
 
16458
}
 
16459
_ACEOF
 
16460
if ac_fn_c_try_link "$LINENO"; then :
 
16461
   echo "*** The test program compiled, but did not run. This usually means"
 
16462
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
 
16463
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
 
16464
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
16465
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
16466
          echo "*** is required on your system"
 
16467
          echo "***"
 
16468
          echo "*** If you have an old version installed, it is best to remove it, although"
 
16469
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
16470
else
 
16471
   echo "*** The test program failed to compile or link. See the file config.log for the"
 
16472
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
 
16473
fi
 
16474
rm -f core conftest.err conftest.$ac_objext \
 
16475
    conftest$ac_exeext conftest.$ac_ext
 
16476
          CFLAGS="$ac_save_CFLAGS"
 
16477
          LIBS="$ac_save_LIBS"
 
16478
       fi
 
16479
     fi
 
16480
     GLIB_CFLAGS=""
 
16481
     GLIB_LIBS=""
 
16482
     GLIB_GENMARSHAL=""
 
16483
     GOBJECT_QUERY=""
 
16484
     GLIB_MKENUMS=""
 
16485
     GLIB_COMPILE_RESOURCES=""
 
16486
     as_fn_error $? "Test for GLIB failed. See the file 'INSTALL' for help." "$LINENO" 5
 
16487
  fi
 
16488
 
 
16489
 
 
16490
 
 
16491
 
 
16492
 
 
16493
 
 
16494
  rm -f conf.glibtest
 
16495
 
 
16496
 
 
16497
 
 
16498
pkg_failed=no
 
16499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE_NO_EXPORT" >&5
 
16500
$as_echo_n "checking for GMODULE_NO_EXPORT... " >&6; }
 
16501
 
 
16502
if test -n "$GMODULE_NO_EXPORT_CFLAGS"; then
 
16503
    pkg_cv_GMODULE_NO_EXPORT_CFLAGS="$GMODULE_NO_EXPORT_CFLAGS"
 
16504
 elif test -n "$PKG_CONFIG"; then
 
16505
    if test -n "$PKG_CONFIG" && \
 
16506
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
 
16507
  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
 
16508
  ac_status=$?
 
16509
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16510
  test $ac_status = 0; }; then
 
16511
  pkg_cv_GMODULE_NO_EXPORT_CFLAGS=`$PKG_CONFIG --cflags "gmodule-no-export-2.0" 2>/dev/null`
 
16512
                      test "x$?" != "x0" && pkg_failed=yes
 
16513
else
 
16514
  pkg_failed=yes
 
16515
fi
 
16516
 else
 
16517
    pkg_failed=untried
 
16518
fi
 
16519
if test -n "$GMODULE_NO_EXPORT_LIBS"; then
 
16520
    pkg_cv_GMODULE_NO_EXPORT_LIBS="$GMODULE_NO_EXPORT_LIBS"
 
16521
 elif test -n "$PKG_CONFIG"; then
 
16522
    if test -n "$PKG_CONFIG" && \
 
16523
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
 
16524
  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
 
16525
  ac_status=$?
 
16526
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16527
  test $ac_status = 0; }; then
 
16528
  pkg_cv_GMODULE_NO_EXPORT_LIBS=`$PKG_CONFIG --libs "gmodule-no-export-2.0" 2>/dev/null`
 
16529
                      test "x$?" != "x0" && pkg_failed=yes
 
16530
else
 
16531
  pkg_failed=yes
 
16532
fi
 
16533
 else
 
16534
    pkg_failed=untried
 
16535
fi
 
16536
 
 
16537
 
 
16538
 
 
16539
if test $pkg_failed = yes; then
 
16540
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16541
$as_echo "no" >&6; }
 
16542
 
 
16543
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16544
        _pkg_short_errors_supported=yes
 
16545
else
 
16546
        _pkg_short_errors_supported=no
 
16547
fi
 
16548
        if test $_pkg_short_errors_supported = yes; then
 
16549
                GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-no-export-2.0" 2>&1`
 
16550
        else
 
16551
                GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-no-export-2.0" 2>&1`
 
16552
        fi
 
16553
        # Put the nasty error message in config.log where it belongs
 
16554
        echo "$GMODULE_NO_EXPORT_PKG_ERRORS" >&5
 
16555
 
 
16556
        as_fn_error $? "Package requirements (gmodule-no-export-2.0) were not met:
 
16557
 
 
16558
$GMODULE_NO_EXPORT_PKG_ERRORS
 
16559
 
 
16560
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16561
installed software in a non-standard prefix.
 
16562
 
 
16563
Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
 
16564
and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
 
16565
See the pkg-config man page for more details." "$LINENO" 5
 
16566
elif test $pkg_failed = untried; then
 
16567
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16568
$as_echo "no" >&6; }
 
16569
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16570
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16571
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16572
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16573
path to pkg-config.
 
16574
 
 
16575
Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
 
16576
and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
 
16577
See the pkg-config man page for more details.
 
16578
 
 
16579
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16580
See \`config.log' for more details" "$LINENO" 5; }
 
16581
else
 
16582
        GMODULE_NO_EXPORT_CFLAGS=$pkg_cv_GMODULE_NO_EXPORT_CFLAGS
 
16583
        GMODULE_NO_EXPORT_LIBS=$pkg_cv_GMODULE_NO_EXPORT_LIBS
 
16584
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16585
$as_echo "yes" >&6; }
 
16586
 
 
16587
fi
 
16588
 
 
16589
 
 
16590
pkg_failed=no
 
16591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
 
16592
$as_echo_n "checking for GIO... " >&6; }
 
16593
 
 
16594
if test -n "$GIO_CFLAGS"; then
 
16595
    pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
 
16596
 elif test -n "$PKG_CONFIG"; then
 
16597
    if test -n "$PKG_CONFIG" && \
 
16598
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
 
16599
  ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
 
16600
  ac_status=$?
 
16601
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16602
  test $ac_status = 0; }; then
 
16603
  pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
 
16604
                      test "x$?" != "x0" && pkg_failed=yes
 
16605
else
 
16606
  pkg_failed=yes
 
16607
fi
 
16608
 else
 
16609
    pkg_failed=untried
 
16610
fi
 
16611
if test -n "$GIO_LIBS"; then
 
16612
    pkg_cv_GIO_LIBS="$GIO_LIBS"
 
16613
 elif test -n "$PKG_CONFIG"; then
 
16614
    if test -n "$PKG_CONFIG" && \
 
16615
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
 
16616
  ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
 
16617
  ac_status=$?
 
16618
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16619
  test $ac_status = 0; }; then
 
16620
  pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
 
16621
                      test "x$?" != "x0" && pkg_failed=yes
 
16622
else
 
16623
  pkg_failed=yes
 
16624
fi
 
16625
 else
 
16626
    pkg_failed=untried
 
16627
fi
 
16628
 
 
16629
 
 
16630
 
 
16631
if test $pkg_failed = yes; then
 
16632
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16633
$as_echo "no" >&6; }
 
16634
 
 
16635
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
16636
        _pkg_short_errors_supported=yes
 
16637
else
 
16638
        _pkg_short_errors_supported=no
 
16639
fi
 
16640
        if test $_pkg_short_errors_supported = yes; then
 
16641
                GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
 
16642
        else
 
16643
                GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
 
16644
        fi
 
16645
        # Put the nasty error message in config.log where it belongs
 
16646
        echo "$GIO_PKG_ERRORS" >&5
 
16647
 
 
16648
        as_fn_error $? "Package requirements (gio-2.0) were not met:
 
16649
 
 
16650
$GIO_PKG_ERRORS
 
16651
 
 
16652
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
16653
installed software in a non-standard prefix.
 
16654
 
 
16655
Alternatively, you may set the environment variables GIO_CFLAGS
 
16656
and GIO_LIBS to avoid the need to call pkg-config.
 
16657
See the pkg-config man page for more details." "$LINENO" 5
 
16658
elif test $pkg_failed = untried; then
 
16659
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16660
$as_echo "no" >&6; }
 
16661
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
16662
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
16663
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
16664
is in your PATH or set the PKG_CONFIG environment variable to the full
 
16665
path to pkg-config.
 
16666
 
 
16667
Alternatively, you may set the environment variables GIO_CFLAGS
 
16668
and GIO_LIBS to avoid the need to call pkg-config.
 
16669
See the pkg-config man page for more details.
 
16670
 
 
16671
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
16672
See \`config.log' for more details" "$LINENO" 5; }
 
16673
else
 
16674
        GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
 
16675
        GIO_LIBS=$pkg_cv_GIO_LIBS
 
16676
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16677
$as_echo "yes" >&6; }
 
16678
 
 
16679
fi
 
16680
 
 
16681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GLib is version 2.31.0 or newer" >&5
 
16682
$as_echo_n "checking if GLib is version 2.31.0 or newer... " >&6; }
 
16683
if $PKG_CONFIG --atleast-version=2.31.0 glib-2.0; then
 
16684
  have_glib_2_31=yes
 
16685
else
 
16686
  have_glib_2_31=no
 
16687
fi
 
16688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glib_2_31" >&5
 
16689
$as_echo "$have_glib_2_31" >&6; }
 
16690
 
 
16691
 
 
16692
# Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
 
16693
gimp_save_LIBS=$LIBS
 
16694
LIBS="$LIBS $GLIB_LIBS"
 
16695
for ac_func in bind_textdomain_codeset
 
16696
do :
 
16697
  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
 
16698
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
 
16699
  cat >>confdefs.h <<_ACEOF
 
16700
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
 
16701
_ACEOF
 
16702
 
 
16703
else
 
16704
  as_fn_error $? "
 
16705
*** Check for bind_textdomain_codeset() failed!  This is required.
 
16706
" "$LINENO" 5
 
16707
fi
 
16708
done
 
16709
 
 
16710
LIBS=$gimp_save_LIBS
 
16711
 
 
16712
 
 
16713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
 
16714
$as_echo_n "checking for X... " >&6; }
 
16715
 
 
16716
 
 
16717
# Check whether --with-x was given.
 
16718
if test "${with_x+set}" = set; then :
 
16719
  withval=$with_x;
 
16720
fi
 
16721
 
 
16722
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
16723
if test "x$with_x" = xno; then
 
16724
  # The user explicitly disabled X.
 
16725
  have_x=disabled
 
16726
else
 
16727
  case $x_includes,$x_libraries in #(
 
16728
    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
 
16729
    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
 
16730
  $as_echo_n "(cached) " >&6
 
16731
else
 
16732
  # One or both of the vars are not set, and there is no cached value.
 
16733
ac_x_includes=no ac_x_libraries=no
 
16734
rm -f -r conftest.dir
 
16735
if mkdir conftest.dir; then
 
16736
  cd conftest.dir
 
16737
  cat >Imakefile <<'_ACEOF'
 
16738
incroot:
 
16739
        @echo incroot='${INCROOT}'
 
16740
usrlibdir:
 
16741
        @echo usrlibdir='${USRLIBDIR}'
 
16742
libdir:
 
16743
        @echo libdir='${LIBDIR}'
 
16744
_ACEOF
 
16745
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
 
16746
    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
16747
    for ac_var in incroot usrlibdir libdir; do
 
16748
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
16749
    done
 
16750
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
16751
    for ac_extension in a so sl dylib la dll; do
 
16752
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
16753
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
16754
        ac_im_usrlibdir=$ac_im_libdir; break
 
16755
      fi
 
16756
    done
 
16757
    # Screen out bogus values from the imake configuration.  They are
 
16758
    # bogus both because they are the default anyway, and because
 
16759
    # using them would break gcc on systems where it needs fixed includes.
 
16760
    case $ac_im_incroot in
 
16761
        /usr/include) ac_x_includes= ;;
 
16762
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
16763
    esac
 
16764
    case $ac_im_usrlibdir in
 
16765
        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
 
16766
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
16767
    esac
 
16768
  fi
 
16769
  cd ..
 
16770
  rm -f -r conftest.dir
 
16771
fi
 
16772
 
 
16773
# Standard set of common directories for X headers.
 
16774
# Check X11 before X11Rn because it is often a symlink to the current release.
 
16775
ac_x_header_dirs='
 
16776
/usr/X11/include
 
16777
/usr/X11R7/include
 
16778
/usr/X11R6/include
 
16779
/usr/X11R5/include
 
16780
/usr/X11R4/include
 
16781
 
 
16782
/usr/include/X11
 
16783
/usr/include/X11R7
 
16784
/usr/include/X11R6
 
16785
/usr/include/X11R5
 
16786
/usr/include/X11R4
 
16787
 
 
16788
/usr/local/X11/include
 
16789
/usr/local/X11R7/include
 
16790
/usr/local/X11R6/include
 
16791
/usr/local/X11R5/include
 
16792
/usr/local/X11R4/include
 
16793
 
 
16794
/usr/local/include/X11
 
16795
/usr/local/include/X11R7
 
16796
/usr/local/include/X11R6
 
16797
/usr/local/include/X11R5
 
16798
/usr/local/include/X11R4
 
16799
 
 
16800
/usr/X386/include
 
16801
/usr/x386/include
 
16802
/usr/XFree86/include/X11
 
16803
 
 
16804
/usr/include
 
16805
/usr/local/include
 
16806
/usr/unsupported/include
 
16807
/usr/athena/include
 
16808
/usr/local/x11r5/include
 
16809
/usr/lpp/Xamples/include
 
16810
 
 
16811
/usr/openwin/include
 
16812
/usr/openwin/share/include'
 
16813
 
 
16814
if test "$ac_x_includes" = no; then
 
16815
  # Guess where to find include files, by looking for Xlib.h.
 
16816
  # First, try using that file with no special directory specified.
 
16817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16818
/* end confdefs.h.  */
 
16819
#include <X11/Xlib.h>
 
16820
_ACEOF
 
16821
if ac_fn_c_try_cpp "$LINENO"; then :
 
16822
  # We can compile using X headers with no special include directory.
 
16823
ac_x_includes=
 
16824
else
 
16825
  for ac_dir in $ac_x_header_dirs; do
 
16826
  if test -r "$ac_dir/X11/Xlib.h"; then
 
16827
    ac_x_includes=$ac_dir
 
16828
    break
 
16829
  fi
 
16830
done
 
16831
fi
 
16832
rm -f conftest.err conftest.i conftest.$ac_ext
 
16833
fi # $ac_x_includes = no
 
16834
 
 
16835
if test "$ac_x_libraries" = no; then
 
16836
  # Check for the libraries.
 
16837
  # See if we find them without any special options.
 
16838
  # Don't add to $LIBS permanently.
 
16839
  ac_save_LIBS=$LIBS
 
16840
  LIBS="-lX11 $LIBS"
 
16841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16842
/* end confdefs.h.  */
 
16843
#include <X11/Xlib.h>
 
16844
int
 
16845
main ()
 
16846
{
 
16847
XrmInitialize ()
 
16848
  ;
 
16849
  return 0;
 
16850
}
 
16851
_ACEOF
 
16852
if ac_fn_c_try_link "$LINENO"; then :
 
16853
  LIBS=$ac_save_LIBS
 
16854
# We can link X programs with no special library path.
 
16855
ac_x_libraries=
 
16856
else
 
16857
  LIBS=$ac_save_LIBS
 
16858
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
16859
do
 
16860
  # Don't even attempt the hair of trying to link an X program!
 
16861
  for ac_extension in a so sl dylib la dll; do
 
16862
    if test -r "$ac_dir/libX11.$ac_extension"; then
 
16863
      ac_x_libraries=$ac_dir
 
16864
      break 2
 
16865
    fi
 
16866
  done
 
16867
done
 
16868
fi
 
16869
rm -f core conftest.err conftest.$ac_objext \
 
16870
    conftest$ac_exeext conftest.$ac_ext
 
16871
fi # $ac_x_libraries = no
 
16872
 
 
16873
case $ac_x_includes,$ac_x_libraries in #(
 
16874
  no,* | *,no | *\'*)
 
16875
    # Didn't find X, or a directory has "'" in its name.
 
16876
    ac_cv_have_x="have_x=no";; #(
 
16877
  *)
 
16878
    # Record where we found X for the cache.
 
16879
    ac_cv_have_x="have_x=yes\
 
16880
        ac_x_includes='$ac_x_includes'\
 
16881
        ac_x_libraries='$ac_x_libraries'"
 
16882
esac
 
16883
fi
 
16884
;; #(
 
16885
    *) have_x=yes;;
 
16886
  esac
 
16887
  eval "$ac_cv_have_x"
 
16888
fi # $with_x != no
 
16889
 
 
16890
if test "$have_x" != yes; then
 
16891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
 
16892
$as_echo "$have_x" >&6; }
 
16893
  no_x=yes
 
16894
else
 
16895
  # If each of the values was on the command line, it overrides each guess.
 
16896
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
16897
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
16898
  # Update the cache value to reflect the command line values.
 
16899
  ac_cv_have_x="have_x=yes\
 
16900
        ac_x_includes='$x_includes'\
 
16901
        ac_x_libraries='$x_libraries'"
 
16902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
 
16903
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
 
16904
fi
 
16905
 
 
16906
if test "$no_x" = yes; then
 
16907
  # Not all programs may use this symbol, but it does not hurt to define it.
 
16908
 
 
16909
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
 
16910
 
 
16911
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
16912
else
 
16913
  if test -n "$x_includes"; then
 
16914
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
16915
  fi
 
16916
 
 
16917
  # It would also be nice to do this for all -L options, not just this one.
 
16918
  if test -n "$x_libraries"; then
 
16919
    X_LIBS="$X_LIBS -L$x_libraries"
 
16920
    # For Solaris; some versions of Sun CC require a space after -R and
 
16921
    # others require no space.  Words are not sufficient . . . .
 
16922
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
 
16923
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
 
16924
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
16925
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
16926
    ac_c_werror_flag=yes
 
16927
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16928
/* end confdefs.h.  */
 
16929
 
 
16930
int
 
16931
main ()
 
16932
{
 
16933
 
 
16934
  ;
 
16935
  return 0;
 
16936
}
 
16937
_ACEOF
 
16938
if ac_fn_c_try_link "$LINENO"; then :
 
16939
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16940
$as_echo "no" >&6; }
 
16941
       X_LIBS="$X_LIBS -R$x_libraries"
 
16942
else
 
16943
  LIBS="$ac_xsave_LIBS -R $x_libraries"
 
16944
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16945
/* end confdefs.h.  */
 
16946
 
 
16947
int
 
16948
main ()
 
16949
{
 
16950
 
 
16951
  ;
 
16952
  return 0;
 
16953
}
 
16954
_ACEOF
 
16955
if ac_fn_c_try_link "$LINENO"; then :
 
16956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16957
$as_echo "yes" >&6; }
 
16958
          X_LIBS="$X_LIBS -R $x_libraries"
 
16959
else
 
16960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
 
16961
$as_echo "neither works" >&6; }
 
16962
fi
 
16963
rm -f core conftest.err conftest.$ac_objext \
 
16964
    conftest$ac_exeext conftest.$ac_ext
 
16965
fi
 
16966
rm -f core conftest.err conftest.$ac_objext \
 
16967
    conftest$ac_exeext conftest.$ac_ext
 
16968
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
16969
    LIBS=$ac_xsave_LIBS
 
16970
  fi
 
16971
 
 
16972
  # Check for system-dependent libraries X programs must link with.
 
16973
  # Do this before checking for the system-independent R6 libraries
 
16974
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
16975
 
 
16976
  if test "$ISC" = yes; then
 
16977
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
16978
  else
 
16979
    # Martyn Johnson says this is needed for Ultrix, if the X
 
16980
    # libraries were built with DECnet support.  And Karl Berry says
 
16981
    # the Alpha needs dnet_stub (dnet does not exist).
 
16982
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
16983
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16984
/* end confdefs.h.  */
 
16985
 
 
16986
/* Override any GCC internal prototype to avoid an error.
 
16987
   Use char because int might match the return type of a GCC
 
16988
   builtin and then its argument prototype would still apply.  */
 
16989
#ifdef __cplusplus
 
16990
extern "C"
 
16991
#endif
 
16992
char XOpenDisplay ();
 
16993
int
 
16994
main ()
 
16995
{
 
16996
return XOpenDisplay ();
 
16997
  ;
 
16998
  return 0;
 
16999
}
 
17000
_ACEOF
 
17001
if ac_fn_c_try_link "$LINENO"; then :
 
17002
 
 
17003
else
 
17004
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
 
17005
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
 
17006
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
 
17007
  $as_echo_n "(cached) " >&6
 
17008
else
 
17009
  ac_check_lib_save_LIBS=$LIBS
 
17010
LIBS="-ldnet  $LIBS"
 
17011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17012
/* end confdefs.h.  */
 
17013
 
 
17014
/* Override any GCC internal prototype to avoid an error.
 
17015
   Use char because int might match the return type of a GCC
 
17016
   builtin and then its argument prototype would still apply.  */
 
17017
#ifdef __cplusplus
 
17018
extern "C"
 
17019
#endif
 
17020
char dnet_ntoa ();
 
17021
int
 
17022
main ()
 
17023
{
 
17024
return dnet_ntoa ();
 
17025
  ;
 
17026
  return 0;
 
17027
}
 
17028
_ACEOF
 
17029
if ac_fn_c_try_link "$LINENO"; then :
 
17030
  ac_cv_lib_dnet_dnet_ntoa=yes
 
17031
else
 
17032
  ac_cv_lib_dnet_dnet_ntoa=no
 
17033
fi
 
17034
rm -f core conftest.err conftest.$ac_objext \
 
17035
    conftest$ac_exeext conftest.$ac_ext
 
17036
LIBS=$ac_check_lib_save_LIBS
 
17037
fi
 
17038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
17039
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
17040
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
 
17041
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
17042
fi
 
17043
 
 
17044
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
17045
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
 
17046
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
 
17047
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
 
17048
  $as_echo_n "(cached) " >&6
 
17049
else
 
17050
  ac_check_lib_save_LIBS=$LIBS
 
17051
LIBS="-ldnet_stub  $LIBS"
 
17052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17053
/* end confdefs.h.  */
 
17054
 
 
17055
/* Override any GCC internal prototype to avoid an error.
 
17056
   Use char because int might match the return type of a GCC
 
17057
   builtin and then its argument prototype would still apply.  */
 
17058
#ifdef __cplusplus
 
17059
extern "C"
 
17060
#endif
 
17061
char dnet_ntoa ();
 
17062
int
 
17063
main ()
 
17064
{
 
17065
return dnet_ntoa ();
 
17066
  ;
 
17067
  return 0;
 
17068
}
 
17069
_ACEOF
 
17070
if ac_fn_c_try_link "$LINENO"; then :
 
17071
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
17072
else
 
17073
  ac_cv_lib_dnet_stub_dnet_ntoa=no
 
17074
fi
 
17075
rm -f core conftest.err conftest.$ac_objext \
 
17076
    conftest$ac_exeext conftest.$ac_ext
 
17077
LIBS=$ac_check_lib_save_LIBS
 
17078
fi
 
17079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
17080
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
17081
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
 
17082
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
17083
fi
 
17084
 
 
17085
    fi
 
17086
fi
 
17087
rm -f core conftest.err conftest.$ac_objext \
 
17088
    conftest$ac_exeext conftest.$ac_ext
 
17089
    LIBS="$ac_xsave_LIBS"
 
17090
 
 
17091
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
17092
    # to get the SysV transport functions.
 
17093
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
17094
    # needs -lnsl.
 
17095
    # The nsl library prevents programs from opening the X display
 
17096
    # on Irix 5.2, according to T.E. Dickey.
 
17097
    # The functions gethostbyname, getservbyname, and inet_addr are
 
17098
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
17099
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 
17100
if test "x$ac_cv_func_gethostbyname" = xyes; then :
 
17101
 
 
17102
fi
 
17103
 
 
17104
    if test $ac_cv_func_gethostbyname = no; then
 
17105
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 
17106
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 
17107
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
 
17108
  $as_echo_n "(cached) " >&6
 
17109
else
 
17110
  ac_check_lib_save_LIBS=$LIBS
 
17111
LIBS="-lnsl  $LIBS"
 
17112
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17113
/* end confdefs.h.  */
 
17114
 
 
17115
/* Override any GCC internal prototype to avoid an error.
 
17116
   Use char because int might match the return type of a GCC
 
17117
   builtin and then its argument prototype would still apply.  */
 
17118
#ifdef __cplusplus
 
17119
extern "C"
 
17120
#endif
 
17121
char gethostbyname ();
 
17122
int
 
17123
main ()
 
17124
{
 
17125
return gethostbyname ();
 
17126
  ;
 
17127
  return 0;
 
17128
}
 
17129
_ACEOF
 
17130
if ac_fn_c_try_link "$LINENO"; then :
 
17131
  ac_cv_lib_nsl_gethostbyname=yes
 
17132
else
 
17133
  ac_cv_lib_nsl_gethostbyname=no
 
17134
fi
 
17135
rm -f core conftest.err conftest.$ac_objext \
 
17136
    conftest$ac_exeext conftest.$ac_ext
 
17137
LIBS=$ac_check_lib_save_LIBS
 
17138
fi
 
17139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
17140
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
17141
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
 
17142
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
17143
fi
 
17144
 
 
17145
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
17146
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
 
17147
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
 
17148
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
 
17149
  $as_echo_n "(cached) " >&6
 
17150
else
 
17151
  ac_check_lib_save_LIBS=$LIBS
 
17152
LIBS="-lbsd  $LIBS"
 
17153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17154
/* end confdefs.h.  */
 
17155
 
 
17156
/* Override any GCC internal prototype to avoid an error.
 
17157
   Use char because int might match the return type of a GCC
 
17158
   builtin and then its argument prototype would still apply.  */
 
17159
#ifdef __cplusplus
 
17160
extern "C"
 
17161
#endif
 
17162
char gethostbyname ();
 
17163
int
 
17164
main ()
 
17165
{
 
17166
return gethostbyname ();
 
17167
  ;
 
17168
  return 0;
 
17169
}
 
17170
_ACEOF
 
17171
if ac_fn_c_try_link "$LINENO"; then :
 
17172
  ac_cv_lib_bsd_gethostbyname=yes
 
17173
else
 
17174
  ac_cv_lib_bsd_gethostbyname=no
 
17175
fi
 
17176
rm -f core conftest.err conftest.$ac_objext \
 
17177
    conftest$ac_exeext conftest.$ac_ext
 
17178
LIBS=$ac_check_lib_save_LIBS
 
17179
fi
 
17180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
17181
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
 
17182
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
 
17183
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
17184
fi
 
17185
 
 
17186
      fi
 
17187
    fi
 
17188
 
 
17189
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
17190
    # socket/setsockopt and other routines are undefined under SCO ODT
 
17191
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
17192
    # on later versions), says Simon Leinen: it contains gethostby*
 
17193
    # variants that don't use the name server (or something).  -lsocket
 
17194
    # must be given before -lnsl if both are needed.  We assume that
 
17195
    # if connect needs -lnsl, so does gethostbyname.
 
17196
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
 
17197
if test "x$ac_cv_func_connect" = xyes; then :
 
17198
 
 
17199
fi
 
17200
 
 
17201
    if test $ac_cv_func_connect = no; then
 
17202
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
 
17203
$as_echo_n "checking for connect in -lsocket... " >&6; }
 
17204
if ${ac_cv_lib_socket_connect+:} false; then :
 
17205
  $as_echo_n "(cached) " >&6
 
17206
else
 
17207
  ac_check_lib_save_LIBS=$LIBS
 
17208
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
17209
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17210
/* end confdefs.h.  */
 
17211
 
 
17212
/* Override any GCC internal prototype to avoid an error.
 
17213
   Use char because int might match the return type of a GCC
 
17214
   builtin and then its argument prototype would still apply.  */
 
17215
#ifdef __cplusplus
 
17216
extern "C"
 
17217
#endif
 
17218
char connect ();
 
17219
int
 
17220
main ()
 
17221
{
 
17222
return connect ();
 
17223
  ;
 
17224
  return 0;
 
17225
}
 
17226
_ACEOF
 
17227
if ac_fn_c_try_link "$LINENO"; then :
 
17228
  ac_cv_lib_socket_connect=yes
 
17229
else
 
17230
  ac_cv_lib_socket_connect=no
 
17231
fi
 
17232
rm -f core conftest.err conftest.$ac_objext \
 
17233
    conftest$ac_exeext conftest.$ac_ext
 
17234
LIBS=$ac_check_lib_save_LIBS
 
17235
fi
 
17236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
 
17237
$as_echo "$ac_cv_lib_socket_connect" >&6; }
 
17238
if test "x$ac_cv_lib_socket_connect" = xyes; then :
 
17239
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
17240
fi
 
17241
 
 
17242
    fi
 
17243
 
 
17244
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
17245
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
 
17246
if test "x$ac_cv_func_remove" = xyes; then :
 
17247
 
 
17248
fi
 
17249
 
 
17250
    if test $ac_cv_func_remove = no; then
 
17251
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
 
17252
$as_echo_n "checking for remove in -lposix... " >&6; }
 
17253
if ${ac_cv_lib_posix_remove+:} false; then :
 
17254
  $as_echo_n "(cached) " >&6
 
17255
else
 
17256
  ac_check_lib_save_LIBS=$LIBS
 
17257
LIBS="-lposix  $LIBS"
 
17258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17259
/* end confdefs.h.  */
 
17260
 
 
17261
/* Override any GCC internal prototype to avoid an error.
 
17262
   Use char because int might match the return type of a GCC
 
17263
   builtin and then its argument prototype would still apply.  */
 
17264
#ifdef __cplusplus
 
17265
extern "C"
 
17266
#endif
 
17267
char remove ();
 
17268
int
 
17269
main ()
 
17270
{
 
17271
return remove ();
 
17272
  ;
 
17273
  return 0;
 
17274
}
 
17275
_ACEOF
 
17276
if ac_fn_c_try_link "$LINENO"; then :
 
17277
  ac_cv_lib_posix_remove=yes
 
17278
else
 
17279
  ac_cv_lib_posix_remove=no
 
17280
fi
 
17281
rm -f core conftest.err conftest.$ac_objext \
 
17282
    conftest$ac_exeext conftest.$ac_ext
 
17283
LIBS=$ac_check_lib_save_LIBS
 
17284
fi
 
17285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
 
17286
$as_echo "$ac_cv_lib_posix_remove" >&6; }
 
17287
if test "x$ac_cv_lib_posix_remove" = xyes; then :
 
17288
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
17289
fi
 
17290
 
 
17291
    fi
 
17292
 
 
17293
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
17294
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
 
17295
if test "x$ac_cv_func_shmat" = xyes; then :
 
17296
 
 
17297
fi
 
17298
 
 
17299
    if test $ac_cv_func_shmat = no; then
 
17300
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
 
17301
$as_echo_n "checking for shmat in -lipc... " >&6; }
 
17302
if ${ac_cv_lib_ipc_shmat+:} false; then :
 
17303
  $as_echo_n "(cached) " >&6
 
17304
else
 
17305
  ac_check_lib_save_LIBS=$LIBS
 
17306
LIBS="-lipc  $LIBS"
 
17307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17308
/* end confdefs.h.  */
 
17309
 
 
17310
/* Override any GCC internal prototype to avoid an error.
 
17311
   Use char because int might match the return type of a GCC
 
17312
   builtin and then its argument prototype would still apply.  */
 
17313
#ifdef __cplusplus
 
17314
extern "C"
 
17315
#endif
 
17316
char shmat ();
 
17317
int
 
17318
main ()
 
17319
{
 
17320
return shmat ();
 
17321
  ;
 
17322
  return 0;
 
17323
}
 
17324
_ACEOF
 
17325
if ac_fn_c_try_link "$LINENO"; then :
 
17326
  ac_cv_lib_ipc_shmat=yes
 
17327
else
 
17328
  ac_cv_lib_ipc_shmat=no
 
17329
fi
 
17330
rm -f core conftest.err conftest.$ac_objext \
 
17331
    conftest$ac_exeext conftest.$ac_ext
 
17332
LIBS=$ac_check_lib_save_LIBS
 
17333
fi
 
17334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
 
17335
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
 
17336
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
 
17337
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
17338
fi
 
17339
 
 
17340
    fi
 
17341
  fi
 
17342
 
 
17343
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
17344
  ac_save_LDFLAGS=$LDFLAGS
 
17345
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
17346
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
17347
  # check for ICE first), but we must link in the order -lSM -lICE or
 
17348
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
17349
  # These have to be linked with before -lX11, unlike the other
 
17350
  # libraries we check for below, so use a different variable.
 
17351
  # John Interrante, Karl Berry
 
17352
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
 
17353
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
 
17354
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
 
17355
  $as_echo_n "(cached) " >&6
 
17356
else
 
17357
  ac_check_lib_save_LIBS=$LIBS
 
17358
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
17359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17360
/* end confdefs.h.  */
 
17361
 
 
17362
/* Override any GCC internal prototype to avoid an error.
 
17363
   Use char because int might match the return type of a GCC
 
17364
   builtin and then its argument prototype would still apply.  */
 
17365
#ifdef __cplusplus
 
17366
extern "C"
 
17367
#endif
 
17368
char IceConnectionNumber ();
 
17369
int
 
17370
main ()
 
17371
{
 
17372
return IceConnectionNumber ();
 
17373
  ;
 
17374
  return 0;
 
17375
}
 
17376
_ACEOF
 
17377
if ac_fn_c_try_link "$LINENO"; then :
 
17378
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
17379
else
 
17380
  ac_cv_lib_ICE_IceConnectionNumber=no
 
17381
fi
 
17382
rm -f core conftest.err conftest.$ac_objext \
 
17383
    conftest$ac_exeext conftest.$ac_ext
 
17384
LIBS=$ac_check_lib_save_LIBS
 
17385
fi
 
17386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
17387
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
17388
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
 
17389
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
17390
fi
 
17391
 
 
17392
  LDFLAGS=$ac_save_LDFLAGS
 
17393
 
 
17394
fi
 
17395
 
 
17396
 
 
17397
# Check whether --enable-gtktest was given.
 
17398
if test "${enable_gtktest+set}" = set; then :
 
17399
  enableval=$enable_gtktest;
 
17400
else
 
17401
  enable_gtktest=yes
 
17402
fi
 
17403
 
 
17404
 
 
17405
  pkg_config_args=gtk+-2.0
 
17406
  for module in . gthread
 
17407
  do
 
17408
      case "$module" in
 
17409
         gthread)
 
17410
             pkg_config_args="$pkg_config_args gthread-2.0"
 
17411
         ;;
 
17412
      esac
 
17413
  done
 
17414
 
 
17415
  no_gtk=""
 
17416
 
 
17417
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
17418
set dummy pkg-config; ac_word=$2
 
17419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17420
$as_echo_n "checking for $ac_word... " >&6; }
 
17421
if ${ac_cv_path_PKG_CONFIG+:} false; then :
 
17422
  $as_echo_n "(cached) " >&6
 
17423
else
 
17424
  case $PKG_CONFIG in
 
17425
  [\\/]* | ?:[\\/]*)
 
17426
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
17427
  ;;
 
17428
  *)
 
17429
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17430
for as_dir in $PATH
 
17431
do
 
17432
  IFS=$as_save_IFS
 
17433
  test -z "$as_dir" && as_dir=.
 
17434
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17435
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17436
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
17437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17438
    break 2
 
17439
  fi
 
17440
done
 
17441
  done
 
17442
IFS=$as_save_IFS
 
17443
 
 
17444
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
17445
  ;;
 
17446
esac
 
17447
fi
 
17448
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
17449
if test -n "$PKG_CONFIG"; then
 
17450
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
17451
$as_echo "$PKG_CONFIG" >&6; }
 
17452
else
 
17453
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17454
$as_echo "no" >&6; }
 
17455
fi
 
17456
 
 
17457
 
 
17458
 
 
17459
  if test x$PKG_CONFIG != xno ; then
 
17460
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
 
17461
      :
 
17462
    else
 
17463
      echo "*** pkg-config too old; version 0.7 or better required."
 
17464
      no_gtk=yes
 
17465
      PKG_CONFIG=no
 
17466
    fi
 
17467
  else
 
17468
    no_gtk=yes
 
17469
  fi
 
17470
 
 
17471
  min_gtk_version=2.24.10
 
17472
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
 
17473
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
 
17474
 
 
17475
  if test x$PKG_CONFIG != xno ; then
 
17476
    ## don't try to run the test against uninstalled libtool libs
 
17477
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
17478
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
17479
          enable_gtktest=no
 
17480
    fi
 
17481
 
 
17482
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
17483
          :
 
17484
    else
 
17485
          no_gtk=yes
 
17486
    fi
 
17487
  fi
 
17488
 
 
17489
  if test x"$no_gtk" = x ; then
 
17490
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
17491
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
17492
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
17493
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
17494
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
17495
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
17496
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
17497
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
17498
    if test "x$enable_gtktest" = "xyes" ; then
 
17499
      ac_save_CFLAGS="$CFLAGS"
 
17500
      ac_save_LIBS="$LIBS"
 
17501
      CFLAGS="$CFLAGS $GTK_CFLAGS"
 
17502
      LIBS="$GTK_LIBS $LIBS"
 
17503
      rm -f conf.gtktest
 
17504
      if test "$cross_compiling" = yes; then :
 
17505
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
17506
else
 
17507
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17508
/* end confdefs.h.  */
 
17509
 
 
17510
#include <gtk/gtk.h>
 
17511
#include <stdio.h>
 
17512
#include <stdlib.h>
 
17513
 
 
17514
int
 
17515
main ()
 
17516
{
 
17517
  int major, minor, micro;
 
17518
  char *tmp_version;
 
17519
 
 
17520
  fclose (fopen ("conf.gtktest", "w"));
 
17521
 
 
17522
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
17523
  tmp_version = g_strdup("$min_gtk_version");
 
17524
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
17525
     printf("%s, bad version string\n", "$min_gtk_version");
 
17526
     exit(1);
 
17527
   }
 
17528
 
 
17529
  if ((gtk_major_version != $gtk_config_major_version) ||
 
17530
      (gtk_minor_version != $gtk_config_minor_version) ||
 
17531
      (gtk_micro_version != $gtk_config_micro_version))
 
17532
    {
 
17533
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
 
17534
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 
17535
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
17536
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
17537
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 
17538
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
17539
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
17540
      printf("*** required on your system.\n");
 
17541
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
17542
      printf("*** to point to the correct configuration files\n");
 
17543
    }
 
17544
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 
17545
           (gtk_minor_version != GTK_MINOR_VERSION) ||
 
17546
           (gtk_micro_version != GTK_MICRO_VERSION))
 
17547
    {
 
17548
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 
17549
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 
17550
      printf("*** library (version %d.%d.%d)\n",
 
17551
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
17552
    }
 
17553
  else
 
17554
    {
 
17555
      if ((gtk_major_version > major) ||
 
17556
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 
17557
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 
17558
      {
 
17559
        return 0;
 
17560
       }
 
17561
     else
 
17562
      {
 
17563
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 
17564
               gtk_major_version, gtk_minor_version, gtk_micro_version);
 
17565
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 
17566
               major, minor, micro);
 
17567
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 
17568
        printf("***\n");
 
17569
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
17570
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
17571
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
17572
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
17573
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
17574
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
17575
        printf("*** so that the correct libraries are found at run-time))\n");
 
17576
      }
 
17577
    }
 
17578
  return 1;
 
17579
}
 
17580
 
 
17581
_ACEOF
 
17582
if ac_fn_c_try_run "$LINENO"; then :
 
17583
 
 
17584
else
 
17585
  no_gtk=yes
 
17586
fi
 
17587
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
17588
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
17589
fi
 
17590
 
 
17591
       CFLAGS="$ac_save_CFLAGS"
 
17592
       LIBS="$ac_save_LIBS"
 
17593
     fi
 
17594
  fi
 
17595
  if test "x$no_gtk" = x ; then
 
17596
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
 
17597
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
 
17598
     :
 
17599
  else
 
17600
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17601
$as_echo "no" >&6; }
 
17602
     if test "$PKG_CONFIG" = "no" ; then
 
17603
       echo "*** A new enough version of pkg-config was not found."
 
17604
       echo "*** See http://pkgconfig.sourceforge.net"
 
17605
     else
 
17606
       if test -f conf.gtktest ; then
 
17607
        :
 
17608
       else
 
17609
          echo "*** Could not run GTK+ test program, checking why..."
 
17610
          ac_save_CFLAGS="$CFLAGS"
 
17611
          ac_save_LIBS="$LIBS"
 
17612
          CFLAGS="$CFLAGS $GTK_CFLAGS"
 
17613
          LIBS="$LIBS $GTK_LIBS"
 
17614
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17615
/* end confdefs.h.  */
 
17616
 
 
17617
#include <gtk/gtk.h>
 
17618
#include <stdio.h>
 
17619
 
 
17620
int
 
17621
main ()
 
17622
{
 
17623
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
17624
  ;
 
17625
  return 0;
 
17626
}
 
17627
_ACEOF
 
17628
if ac_fn_c_try_link "$LINENO"; then :
 
17629
   echo "*** The test program compiled, but did not run. This usually means"
 
17630
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
17631
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
 
17632
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
17633
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
17634
          echo "*** is required on your system"
 
17635
          echo "***"
 
17636
          echo "*** If you have an old version installed, it is best to remove it, although"
 
17637
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
17638
else
 
17639
   echo "*** The test program failed to compile or link. See the file config.log for the"
 
17640
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
 
17641
fi
 
17642
rm -f core conftest.err conftest.$ac_objext \
 
17643
    conftest$ac_exeext conftest.$ac_ext
 
17644
          CFLAGS="$ac_save_CFLAGS"
 
17645
          LIBS="$ac_save_LIBS"
 
17646
       fi
 
17647
     fi
 
17648
     GTK_CFLAGS=""
 
17649
     GTK_LIBS=""
 
17650
     as_fn_error $? "Test for GTK+ failed. See the file 'INSTALL' for help." "$LINENO" 5
 
17651
  fi
 
17652
 
 
17653
 
 
17654
  rm -f conf.gtktest
 
17655
 
 
17656
 
 
17657
# GTK+ 2.26.0 will never be released, we keep the check around anyway
 
17658
# because we will need it again after the switch to GTK+ 3.x
 
17659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GTK+ is version 2.26.0 or newer (bogus placeholder check)" >&5
 
17660
$as_echo_n "checking if GTK+ is version 2.26.0 or newer (bogus placeholder check)... " >&6; }
 
17661
if $PKG_CONFIG --atleast-version=2.26.0 gtk+-2.0; then
 
17662
  have_gtk_2_26=yes
 
17663
else
 
17664
  have_gtk_2_26=no
 
17665
fi
 
17666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_2_26" >&5
 
17667
$as_echo "$have_gtk_2_26" >&6; }
 
17668
 
 
17669
 
 
17670
pkg_failed=no
 
17671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF" >&5
 
17672
$as_echo_n "checking for GDK_PIXBUF... " >&6; }
 
17673
 
 
17674
if test -n "$GDK_PIXBUF_CFLAGS"; then
 
17675
    pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
 
17676
 elif test -n "$PKG_CONFIG"; then
 
17677
    if test -n "$PKG_CONFIG" && \
 
17678
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 2.24.1\""; } >&5
 
17679
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 2.24.1") 2>&5
 
17680
  ac_status=$?
 
17681
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17682
  test $ac_status = 0; }; then
 
17683
  pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0 >= 2.24.1" 2>/dev/null`
 
17684
                      test "x$?" != "x0" && pkg_failed=yes
 
17685
else
 
17686
  pkg_failed=yes
 
17687
fi
 
17688
 else
 
17689
    pkg_failed=untried
 
17690
fi
 
17691
if test -n "$GDK_PIXBUF_LIBS"; then
 
17692
    pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
 
17693
 elif test -n "$PKG_CONFIG"; then
 
17694
    if test -n "$PKG_CONFIG" && \
 
17695
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0 >= 2.24.1\""; } >&5
 
17696
  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0 >= 2.24.1") 2>&5
 
17697
  ac_status=$?
 
17698
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17699
  test $ac_status = 0; }; then
 
17700
  pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0 >= 2.24.1" 2>/dev/null`
 
17701
                      test "x$?" != "x0" && pkg_failed=yes
 
17702
else
 
17703
  pkg_failed=yes
 
17704
fi
 
17705
 else
 
17706
    pkg_failed=untried
 
17707
fi
 
17708
 
 
17709
 
 
17710
 
 
17711
if test $pkg_failed = yes; then
 
17712
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17713
$as_echo "no" >&6; }
 
17714
 
 
17715
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17716
        _pkg_short_errors_supported=yes
 
17717
else
 
17718
        _pkg_short_errors_supported=no
 
17719
fi
 
17720
        if test $_pkg_short_errors_supported = yes; then
 
17721
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 2.24.1" 2>&1`
 
17722
        else
 
17723
                GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-pixbuf-2.0 >= 2.24.1" 2>&1`
 
17724
        fi
 
17725
        # Put the nasty error message in config.log where it belongs
 
17726
        echo "$GDK_PIXBUF_PKG_ERRORS" >&5
 
17727
 
 
17728
        as_fn_error $? "Package requirements (gdk-pixbuf-2.0 >= 2.24.1) were not met:
 
17729
 
 
17730
$GDK_PIXBUF_PKG_ERRORS
 
17731
 
 
17732
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17733
installed software in a non-standard prefix.
 
17734
 
 
17735
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
17736
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
17737
See the pkg-config man page for more details." "$LINENO" 5
 
17738
elif test $pkg_failed = untried; then
 
17739
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17740
$as_echo "no" >&6; }
 
17741
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17742
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17743
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17744
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17745
path to pkg-config.
 
17746
 
 
17747
Alternatively, you may set the environment variables GDK_PIXBUF_CFLAGS
 
17748
and GDK_PIXBUF_LIBS to avoid the need to call pkg-config.
 
17749
See the pkg-config man page for more details.
 
17750
 
 
17751
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17752
See \`config.log' for more details" "$LINENO" 5; }
 
17753
else
 
17754
        GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
 
17755
        GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
 
17756
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17757
$as_echo "yes" >&6; }
 
17758
 
 
17759
fi
 
17760
 
 
17761
# Extract the first word of "gdk-pixbuf-csource", so it can be a program name with args.
 
17762
set dummy gdk-pixbuf-csource; ac_word=$2
 
17763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
17764
$as_echo_n "checking for $ac_word... " >&6; }
 
17765
if ${ac_cv_path_GDK_PIXBUF_CSOURCE+:} false; then :
 
17766
  $as_echo_n "(cached) " >&6
 
17767
else
 
17768
  case $GDK_PIXBUF_CSOURCE in
 
17769
  [\\/]* | ?:[\\/]*)
 
17770
  ac_cv_path_GDK_PIXBUF_CSOURCE="$GDK_PIXBUF_CSOURCE" # Let the user override the test with a path.
 
17771
  ;;
 
17772
  *)
 
17773
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17774
for as_dir in $PATH
 
17775
do
 
17776
  IFS=$as_save_IFS
 
17777
  test -z "$as_dir" && as_dir=.
 
17778
    for ac_exec_ext in '' $ac_executable_extensions; do
 
17779
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17780
    ac_cv_path_GDK_PIXBUF_CSOURCE="$as_dir/$ac_word$ac_exec_ext"
 
17781
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17782
    break 2
 
17783
  fi
 
17784
done
 
17785
  done
 
17786
IFS=$as_save_IFS
 
17787
 
 
17788
  test -z "$ac_cv_path_GDK_PIXBUF_CSOURCE" && ac_cv_path_GDK_PIXBUF_CSOURCE="no"
 
17789
  ;;
 
17790
esac
 
17791
fi
 
17792
GDK_PIXBUF_CSOURCE=$ac_cv_path_GDK_PIXBUF_CSOURCE
 
17793
if test -n "$GDK_PIXBUF_CSOURCE"; then
 
17794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_PIXBUF_CSOURCE" >&5
 
17795
$as_echo "$GDK_PIXBUF_CSOURCE" >&6; }
 
17796
else
 
17797
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17798
$as_echo "no" >&6; }
 
17799
fi
 
17800
 
 
17801
 
 
17802
if test "x$GDK_PIXBUF_CSOURCE" = xno; then
 
17803
  as_fn_error $? "Could not find gdk-pixbuf-csource in your PATH" "$LINENO" 5
 
17804
fi
 
17805
 
 
17806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GdkPixbuf is version 2.26.0 or newer" >&5
 
17807
$as_echo_n "checking if GdkPixbuf is version 2.26.0 or newer... " >&6; }
 
17808
if $PKG_CONFIG --atleast-version=2.26.0 gdk-pixbuf-2.0; then
 
17809
  have_gdk_pixbuf_2_26=yes
 
17810
else
 
17811
  have_gdk_pixbuf_2_26=no
 
17812
fi
 
17813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gdk_pixbuf_2_26" >&5
 
17814
$as_echo "$have_gdk_pixbuf_2_26" >&6; }
 
17815
 
 
17816
 
 
17817
pkg_failed=no
 
17818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
 
17819
$as_echo_n "checking for CAIRO... " >&6; }
 
17820
 
 
17821
if test -n "$CAIRO_CFLAGS"; then
 
17822
    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
 
17823
 elif test -n "$PKG_CONFIG"; then
 
17824
    if test -n "$PKG_CONFIG" && \
 
17825
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.2\""; } >&5
 
17826
  ($PKG_CONFIG --exists --print-errors "cairo >= 1.10.2") 2>&5
 
17827
  ac_status=$?
 
17828
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17829
  test $ac_status = 0; }; then
 
17830
  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.10.2" 2>/dev/null`
 
17831
                      test "x$?" != "x0" && pkg_failed=yes
 
17832
else
 
17833
  pkg_failed=yes
 
17834
fi
 
17835
 else
 
17836
    pkg_failed=untried
 
17837
fi
 
17838
if test -n "$CAIRO_LIBS"; then
 
17839
    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
 
17840
 elif test -n "$PKG_CONFIG"; then
 
17841
    if test -n "$PKG_CONFIG" && \
 
17842
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.2\""; } >&5
 
17843
  ($PKG_CONFIG --exists --print-errors "cairo >= 1.10.2") 2>&5
 
17844
  ac_status=$?
 
17845
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17846
  test $ac_status = 0; }; then
 
17847
  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.10.2" 2>/dev/null`
 
17848
                      test "x$?" != "x0" && pkg_failed=yes
 
17849
else
 
17850
  pkg_failed=yes
 
17851
fi
 
17852
 else
 
17853
    pkg_failed=untried
 
17854
fi
 
17855
 
 
17856
 
 
17857
 
 
17858
if test $pkg_failed = yes; then
 
17859
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17860
$as_echo "no" >&6; }
 
17861
 
 
17862
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17863
        _pkg_short_errors_supported=yes
 
17864
else
 
17865
        _pkg_short_errors_supported=no
 
17866
fi
 
17867
        if test $_pkg_short_errors_supported = yes; then
 
17868
                CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.10.2" 2>&1`
 
17869
        else
 
17870
                CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.10.2" 2>&1`
 
17871
        fi
 
17872
        # Put the nasty error message in config.log where it belongs
 
17873
        echo "$CAIRO_PKG_ERRORS" >&5
 
17874
 
 
17875
        as_fn_error $? "Package requirements (cairo >= 1.10.2) were not met:
 
17876
 
 
17877
$CAIRO_PKG_ERRORS
 
17878
 
 
17879
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
17880
installed software in a non-standard prefix.
 
17881
 
 
17882
Alternatively, you may set the environment variables CAIRO_CFLAGS
 
17883
and CAIRO_LIBS to avoid the need to call pkg-config.
 
17884
See the pkg-config man page for more details." "$LINENO" 5
 
17885
elif test $pkg_failed = untried; then
 
17886
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17887
$as_echo "no" >&6; }
 
17888
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
17889
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
17890
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
17891
is in your PATH or set the PKG_CONFIG environment variable to the full
 
17892
path to pkg-config.
 
17893
 
 
17894
Alternatively, you may set the environment variables CAIRO_CFLAGS
 
17895
and CAIRO_LIBS to avoid the need to call pkg-config.
 
17896
See the pkg-config man page for more details.
 
17897
 
 
17898
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
17899
See \`config.log' for more details" "$LINENO" 5; }
 
17900
else
 
17901
        CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
 
17902
        CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
 
17903
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17904
$as_echo "yes" >&6; }
 
17905
 
 
17906
fi
 
17907
 
 
17908
 
 
17909
pkg_failed=no
 
17910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOCAIRO" >&5
 
17911
$as_echo_n "checking for PANGOCAIRO... " >&6; }
 
17912
 
 
17913
if test -n "$PANGOCAIRO_CFLAGS"; then
 
17914
    pkg_cv_PANGOCAIRO_CFLAGS="$PANGOCAIRO_CFLAGS"
 
17915
 elif test -n "$PKG_CONFIG"; then
 
17916
    if test -n "$PKG_CONFIG" && \
 
17917
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.29.4 pangoft2\""; } >&5
 
17918
  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.29.4 pangoft2") 2>&5
 
17919
  ac_status=$?
 
17920
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17921
  test $ac_status = 0; }; then
 
17922
  pkg_cv_PANGOCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.29.4 pangoft2" 2>/dev/null`
 
17923
                      test "x$?" != "x0" && pkg_failed=yes
 
17924
else
 
17925
  pkg_failed=yes
 
17926
fi
 
17927
 else
 
17928
    pkg_failed=untried
 
17929
fi
 
17930
if test -n "$PANGOCAIRO_LIBS"; then
 
17931
    pkg_cv_PANGOCAIRO_LIBS="$PANGOCAIRO_LIBS"
 
17932
 elif test -n "$PKG_CONFIG"; then
 
17933
    if test -n "$PKG_CONFIG" && \
 
17934
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.29.4 pangoft2\""; } >&5
 
17935
  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.29.4 pangoft2") 2>&5
 
17936
  ac_status=$?
 
17937
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17938
  test $ac_status = 0; }; then
 
17939
  pkg_cv_PANGOCAIRO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.29.4 pangoft2" 2>/dev/null`
 
17940
                      test "x$?" != "x0" && pkg_failed=yes
 
17941
else
 
17942
  pkg_failed=yes
 
17943
fi
 
17944
 else
 
17945
    pkg_failed=untried
 
17946
fi
 
17947
 
 
17948
 
 
17949
 
 
17950
if test $pkg_failed = yes; then
 
17951
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17952
$as_echo "no" >&6; }
 
17953
 
 
17954
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
17955
        _pkg_short_errors_supported=yes
 
17956
else
 
17957
        _pkg_short_errors_supported=no
 
17958
fi
 
17959
        if test $_pkg_short_errors_supported = yes; then
 
17960
                PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.29.4 pangoft2" 2>&1`
 
17961
        else
 
17962
                PANGOCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.29.4 pangoft2" 2>&1`
 
17963
        fi
 
17964
        # Put the nasty error message in config.log where it belongs
 
17965
        echo "$PANGOCAIRO_PKG_ERRORS" >&5
 
17966
 
 
17967
        as_fn_error $? "Test for PangoCairo failed.
 
17968
*** We require Pango with the optional support for Cairo compiled in.
 
17969
*** See the file 'INSTALL' for more help." "$LINENO" 5
 
17970
elif test $pkg_failed = untried; then
 
17971
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17972
$as_echo "no" >&6; }
 
17973
        as_fn_error $? "Test for PangoCairo failed.
 
17974
*** We require Pango with the optional support for Cairo compiled in.
 
17975
*** See the file 'INSTALL' for more help." "$LINENO" 5
 
17976
else
 
17977
        PANGOCAIRO_CFLAGS=$pkg_cv_PANGOCAIRO_CFLAGS
 
17978
        PANGOCAIRO_LIBS=$pkg_cv_PANGOCAIRO_LIBS
 
17979
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17980
$as_echo "yes" >&6; }
 
17981
        :
 
17982
fi
 
17983
 
 
17984
gimp_save_CFLAGS=$CFLAGS
 
17985
CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
 
17986
 
 
17987
 
 
17988
pkg_failed=no
 
17989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
 
17990
$as_echo_n "checking for FONTCONFIG... " >&6; }
 
17991
 
 
17992
if test -n "$FONTCONFIG_CFLAGS"; then
 
17993
    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
 
17994
 elif test -n "$PKG_CONFIG"; then
 
17995
    if test -n "$PKG_CONFIG" && \
 
17996
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\""; } >&5
 
17997
  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
 
17998
  ac_status=$?
 
17999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18000
  test $ac_status = 0; }; then
 
18001
  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>/dev/null`
 
18002
                      test "x$?" != "x0" && pkg_failed=yes
 
18003
else
 
18004
  pkg_failed=yes
 
18005
fi
 
18006
 else
 
18007
    pkg_failed=untried
 
18008
fi
 
18009
if test -n "$FONTCONFIG_LIBS"; then
 
18010
    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
 
18011
 elif test -n "$PKG_CONFIG"; then
 
18012
    if test -n "$PKG_CONFIG" && \
 
18013
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\""; } >&5
 
18014
  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
 
18015
  ac_status=$?
 
18016
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18017
  test $ac_status = 0; }; then
 
18018
  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>/dev/null`
 
18019
                      test "x$?" != "x0" && pkg_failed=yes
 
18020
else
 
18021
  pkg_failed=yes
 
18022
fi
 
18023
 else
 
18024
    pkg_failed=untried
 
18025
fi
 
18026
 
 
18027
 
 
18028
 
 
18029
if test $pkg_failed = yes; then
 
18030
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18031
$as_echo "no" >&6; }
 
18032
 
 
18033
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18034
        _pkg_short_errors_supported=yes
 
18035
else
 
18036
        _pkg_short_errors_supported=no
 
18037
fi
 
18038
        if test $_pkg_short_errors_supported = yes; then
 
18039
                FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.2.0" 2>&1`
 
18040
        else
 
18041
                FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.2.0" 2>&1`
 
18042
        fi
 
18043
        # Put the nasty error message in config.log where it belongs
 
18044
        echo "$FONTCONFIG_PKG_ERRORS" >&5
 
18045
 
 
18046
        as_fn_error $? "Package requirements (fontconfig >= 2.2.0) were not met:
 
18047
 
 
18048
$FONTCONFIG_PKG_ERRORS
 
18049
 
 
18050
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
18051
installed software in a non-standard prefix.
 
18052
 
 
18053
Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
 
18054
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
 
18055
See the pkg-config man page for more details." "$LINENO" 5
 
18056
elif test $pkg_failed = untried; then
 
18057
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18058
$as_echo "no" >&6; }
 
18059
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
18060
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
18061
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
18062
is in your PATH or set the PKG_CONFIG environment variable to the full
 
18063
path to pkg-config.
 
18064
 
 
18065
Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
 
18066
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
 
18067
See the pkg-config man page for more details.
 
18068
 
 
18069
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
18070
See \`config.log' for more details" "$LINENO" 5; }
 
18071
else
 
18072
        FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
 
18073
        FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
 
18074
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18075
$as_echo "yes" >&6; }
 
18076
 
 
18077
fi
 
18078
 
 
18079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Pango is version 1.32.0 or newer" >&5
 
18080
$as_echo_n "checking if Pango is version 1.32.0 or newer... " >&6; }
 
18081
if $PKG_CONFIG --atleast-version=1.32.0 pango; then
 
18082
  have_pango_1_32=yes
 
18083
else
 
18084
  have_pango_1_32=no
 
18085
fi
 
18086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pango_1_32" >&5
 
18087
$as_echo "$have_pango_1_32" >&6; }
 
18088
 
 
18089
CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
 
18090
 
 
18091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Pango is built with a recent fontconfig" >&5
 
18092
$as_echo_n "checking if Pango is built with a recent fontconfig... " >&6; }
 
18093
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18094
/* end confdefs.h.  */
 
18095
#include <fontconfig/fontconfig.h>
 
18096
int
 
18097
main ()
 
18098
{
 
18099
FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);
 
18100
  ;
 
18101
  return 0;
 
18102
}
 
18103
_ACEOF
 
18104
if ac_fn_c_try_compile "$LINENO"; then :
 
18105
  fontconfig_ok=yes
 
18106
else
 
18107
  fontconfig_ok=no
 
18108
fi
 
18109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fontconfig_ok" >&5
 
18111
$as_echo "$fontconfig_ok" >&6; }
 
18112
 
 
18113
CFLAGS=$gimp_save_CFLAGS
 
18114
 
 
18115
if test "x$fontconfig_ok" = xno; then
 
18116
  as_fn_error $? "
 
18117
*** You have a fontconfig >= 2.2.0 installed on your system, but your
 
18118
*** Pango library is using an older version. This old version is probably in
 
18119
*** /usr/X11R6. Look at the above output, and note that the result for
 
18120
*** FONTCONFIG_CFLAGS is not in the result for PANGOCAIRO_CFLAGS, and that
 
18121
*** there is likely an extra -I line, other than the ones for GLIB,
 
18122
*** Freetype, and Pango itself. That's where your old fontconfig files are.
 
18123
*** Rebuild pango, and make sure that it uses the newer fontconfig. The
 
18124
*** easiest way be sure of this is to simply get rid of the old fontconfig.
 
18125
*** When you rebuild pango, make sure the result for FONTCONFIG_CFLAGS is
 
18126
*** the same as the result here." "$LINENO" 5
 
18127
fi
 
18128
 
 
18129
 
 
18130
# Extract the first word of "freetype-config", so it can be a program name with args.
 
18131
set dummy freetype-config; ac_word=$2
 
18132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
18133
$as_echo_n "checking for $ac_word... " >&6; }
 
18134
if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
 
18135
  $as_echo_n "(cached) " >&6
 
18136
else
 
18137
  case $FREETYPE_CONFIG in
 
18138
  [\\/]* | ?:[\\/]*)
 
18139
  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
 
18140
  ;;
 
18141
  *)
 
18142
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18143
for as_dir in $PATH
 
18144
do
 
18145
  IFS=$as_save_IFS
 
18146
  test -z "$as_dir" && as_dir=.
 
18147
    for ac_exec_ext in '' $ac_executable_extensions; do
 
18148
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18149
    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
18150
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18151
    break 2
 
18152
  fi
 
18153
done
 
18154
  done
 
18155
IFS=$as_save_IFS
 
18156
 
 
18157
  test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
 
18158
  ;;
 
18159
esac
 
18160
fi
 
18161
FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
 
18162
if test -n "$FREETYPE_CONFIG"; then
 
18163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
 
18164
$as_echo "$FREETYPE_CONFIG" >&6; }
 
18165
else
 
18166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18167
$as_echo "no" >&6; }
 
18168
fi
 
18169
 
 
18170
 
 
18171
if test "x$FREETYPE_CONFIG" != "xno" ; then
 
18172
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
 
18173
$as_echo_n "checking for freetype libraries... " >&6; }
 
18174
  FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
 
18175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
 
18176
$as_echo "$FREETYPE_LIBS" >&6; }
 
18177
fi
 
18178
 
 
18179
 
 
18180
 
 
18181
##########################################
 
18182
# Check for some special functions we need
 
18183
##########################################
 
18184
 
 
18185
for ac_header in math.h ieeefp.h
 
18186
do :
 
18187
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18188
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
18189
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
18190
  cat >>confdefs.h <<_ACEOF
 
18191
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18192
_ACEOF
 
18193
 
 
18194
fi
 
18195
 
 
18196
done
 
18197
 
 
18198
 
 
18199
# DU4 native cc currently needs -std1 for ANSI mode (instead of K&R)
 
18200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
 
18201
$as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
 
18202
gimp_save_LIBS=$LIBS
 
18203
LIBS="$LIBS -lm"
 
18204
if test "$cross_compiling" = yes; then :
 
18205
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
18206
$as_echo "" >&6; }
 
18207
else
 
18208
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18209
/* end confdefs.h.  */
 
18210
 
 
18211
    #include <math.h>
 
18212
    int main (void) { return (log(1) != log(1.)); }
 
18213
_ACEOF
 
18214
if ac_fn_c_try_run "$LINENO"; then :
 
18215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
18216
$as_echo "none needed" >&6; }
 
18217
else
 
18218
  gimp_save_CFLAGS=$CFLAGS
 
18219
   CFLAGS="$CFLAGS -std1"
 
18220
   if test "$cross_compiling" = yes; then :
 
18221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
18222
$as_echo "" >&6; }
 
18223
else
 
18224
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18225
/* end confdefs.h.  */
 
18226
 
 
18227
       #include <math.h>
 
18228
       int main (void) { return (log(1) != log(1.)); }
 
18229
_ACEOF
 
18230
if ac_fn_c_try_run "$LINENO"; then :
 
18231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
 
18232
$as_echo "-std1" >&6; }
 
18233
else
 
18234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 
18235
$as_echo "" >&6; }
 
18236
      CFLAGS=$gimp_save_CFLAGS
 
18237
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
 
18238
$as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
 
18239
fi
 
18240
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18241
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18242
fi
 
18243
 
 
18244
fi
 
18245
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18246
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18247
fi
 
18248
 
 
18249
 
 
18250
# Check for finite or isfinite
 
18251
for ac_func in finite
 
18252
do :
 
18253
  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
 
18254
if test "x$ac_cv_func_finite" = xyes; then :
 
18255
  cat >>confdefs.h <<_ACEOF
 
18256
#define HAVE_FINITE 1
 
18257
_ACEOF
 
18258
 
 
18259
else
 
18260
 
 
18261
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <math.h>" >&5
 
18262
$as_echo_n "checking for finite in <math.h>... " >&6; }
 
18263
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18264
/* end confdefs.h.  */
 
18265
#include <math.h>
 
18266
int
 
18267
main ()
 
18268
{
 
18269
double f = 0.0; finite (f)
 
18270
  ;
 
18271
  return 0;
 
18272
}
 
18273
_ACEOF
 
18274
if ac_fn_c_try_link "$LINENO"; then :
 
18275
  $as_echo "#define HAVE_FINITE 1" >>confdefs.h
 
18276
 
 
18277
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18278
$as_echo "yes" >&6; }
 
18279
else
 
18280
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18281
$as_echo "no" >&6; }
 
18282
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite in <math.h>" >&5
 
18283
$as_echo_n "checking for isfinite in <math.h>... " >&6; }
 
18284
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18285
/* end confdefs.h.  */
 
18286
#include <math.h>
 
18287
int
 
18288
main ()
 
18289
{
 
18290
float f = 0.0; isfinite(f)
 
18291
  ;
 
18292
  return 0;
 
18293
}
 
18294
_ACEOF
 
18295
if ac_fn_c_try_link "$LINENO"; then :
 
18296
 
 
18297
$as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
 
18298
 
 
18299
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18300
$as_echo "yes" >&6; }
 
18301
else
 
18302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18303
$as_echo "no" >&6; }
 
18304
fi
 
18305
rm -f core conftest.err conftest.$ac_objext \
 
18306
    conftest$ac_exeext conftest.$ac_ext
 
18307
fi
 
18308
rm -f core conftest.err conftest.$ac_objext \
 
18309
    conftest$ac_exeext conftest.$ac_ext
 
18310
fi
 
18311
done
 
18312
 
 
18313
 
 
18314
 
 
18315
 
 
18316
LIBS=$gimp_save_LIBS
 
18317
 
 
18318
 
 
18319
# check for rint
 
18320
ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
 
18321
if test "x$ac_cv_func_rint" = xyes; then :
 
18322
 
 
18323
$as_echo "#define HAVE_RINT 1" >>confdefs.h
 
18324
 
 
18325
else
 
18326
 
 
18327
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5
 
18328
$as_echo_n "checking for rint in -lm... " >&6; }
 
18329
if ${ac_cv_lib_m_rint+:} false; then :
 
18330
  $as_echo_n "(cached) " >&6
 
18331
else
 
18332
  ac_check_lib_save_LIBS=$LIBS
 
18333
LIBS="-lm  $LIBS"
 
18334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18335
/* end confdefs.h.  */
 
18336
 
 
18337
/* Override any GCC internal prototype to avoid an error.
 
18338
   Use char because int might match the return type of a GCC
 
18339
   builtin and then its argument prototype would still apply.  */
 
18340
#ifdef __cplusplus
 
18341
extern "C"
 
18342
#endif
 
18343
char rint ();
 
18344
int
 
18345
main ()
 
18346
{
 
18347
return rint ();
 
18348
  ;
 
18349
  return 0;
 
18350
}
 
18351
_ACEOF
 
18352
if ac_fn_c_try_link "$LINENO"; then :
 
18353
  ac_cv_lib_m_rint=yes
 
18354
else
 
18355
  ac_cv_lib_m_rint=no
 
18356
fi
 
18357
rm -f core conftest.err conftest.$ac_objext \
 
18358
    conftest$ac_exeext conftest.$ac_ext
 
18359
LIBS=$ac_check_lib_save_LIBS
 
18360
fi
 
18361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5
 
18362
$as_echo "$ac_cv_lib_m_rint" >&6; }
 
18363
if test "x$ac_cv_lib_m_rint" = xyes; then :
 
18364
 
 
18365
    $as_echo "#define HAVE_RINT 1" >>confdefs.h
 
18366
 
 
18367
fi
 
18368
 
 
18369
fi
 
18370
 
 
18371
 
 
18372
 
 
18373
#####################################################################
 
18374
# Check for extra libs needed for getaddrinfo, getnameinfo and socket
 
18375
#####################################################################
 
18376
 
 
18377
gimp_save_LIBS=$LIBS
 
18378
LIBS=""
 
18379
 
 
18380
for ac_func in getaddrinfo
 
18381
do :
 
18382
  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
 
18383
if test "x$ac_cv_func_getaddrinfo" = xyes; then :
 
18384
  cat >>confdefs.h <<_ACEOF
 
18385
#define HAVE_GETADDRINFO 1
 
18386
_ACEOF
 
18387
 
 
18388
else
 
18389
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5
 
18390
$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; }
 
18391
if ${ac_cv_lib_nsl_getaddrinfo+:} false; then :
 
18392
  $as_echo_n "(cached) " >&6
 
18393
else
 
18394
  ac_check_lib_save_LIBS=$LIBS
 
18395
LIBS="-lnsl  $LIBS"
 
18396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18397
/* end confdefs.h.  */
 
18398
 
 
18399
/* Override any GCC internal prototype to avoid an error.
 
18400
   Use char because int might match the return type of a GCC
 
18401
   builtin and then its argument prototype would still apply.  */
 
18402
#ifdef __cplusplus
 
18403
extern "C"
 
18404
#endif
 
18405
char getaddrinfo ();
 
18406
int
 
18407
main ()
 
18408
{
 
18409
return getaddrinfo ();
 
18410
  ;
 
18411
  return 0;
 
18412
}
 
18413
_ACEOF
 
18414
if ac_fn_c_try_link "$LINENO"; then :
 
18415
  ac_cv_lib_nsl_getaddrinfo=yes
 
18416
else
 
18417
  ac_cv_lib_nsl_getaddrinfo=no
 
18418
fi
 
18419
rm -f core conftest.err conftest.$ac_objext \
 
18420
    conftest$ac_exeext conftest.$ac_ext
 
18421
LIBS=$ac_check_lib_save_LIBS
 
18422
fi
 
18423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5
 
18424
$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; }
 
18425
if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then :
 
18426
  cat >>confdefs.h <<_ACEOF
 
18427
#define HAVE_LIBNSL 1
 
18428
_ACEOF
 
18429
 
 
18430
  LIBS="-lnsl $LIBS"
 
18431
 
 
18432
fi
 
18433
 
 
18434
fi
 
18435
done
 
18436
 
 
18437
for ac_func in getnameinfo
 
18438
do :
 
18439
  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
 
18440
if test "x$ac_cv_func_getnameinfo" = xyes; then :
 
18441
  cat >>confdefs.h <<_ACEOF
 
18442
#define HAVE_GETNAMEINFO 1
 
18443
_ACEOF
 
18444
 
 
18445
else
 
18446
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lnsl" >&5
 
18447
$as_echo_n "checking for getnameinfo in -lnsl... " >&6; }
 
18448
if ${ac_cv_lib_nsl_getnameinfo+:} false; then :
 
18449
  $as_echo_n "(cached) " >&6
 
18450
else
 
18451
  ac_check_lib_save_LIBS=$LIBS
 
18452
LIBS="-lnsl  $LIBS"
 
18453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18454
/* end confdefs.h.  */
 
18455
 
 
18456
/* Override any GCC internal prototype to avoid an error.
 
18457
   Use char because int might match the return type of a GCC
 
18458
   builtin and then its argument prototype would still apply.  */
 
18459
#ifdef __cplusplus
 
18460
extern "C"
 
18461
#endif
 
18462
char getnameinfo ();
 
18463
int
 
18464
main ()
 
18465
{
 
18466
return getnameinfo ();
 
18467
  ;
 
18468
  return 0;
 
18469
}
 
18470
_ACEOF
 
18471
if ac_fn_c_try_link "$LINENO"; then :
 
18472
  ac_cv_lib_nsl_getnameinfo=yes
 
18473
else
 
18474
  ac_cv_lib_nsl_getnameinfo=no
 
18475
fi
 
18476
rm -f core conftest.err conftest.$ac_objext \
 
18477
    conftest$ac_exeext conftest.$ac_ext
 
18478
LIBS=$ac_check_lib_save_LIBS
 
18479
fi
 
18480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getnameinfo" >&5
 
18481
$as_echo "$ac_cv_lib_nsl_getnameinfo" >&6; }
 
18482
if test "x$ac_cv_lib_nsl_getnameinfo" = xyes; then :
 
18483
  cat >>confdefs.h <<_ACEOF
 
18484
#define HAVE_LIBNSL 1
 
18485
_ACEOF
 
18486
 
 
18487
  LIBS="-lnsl $LIBS"
 
18488
 
 
18489
fi
 
18490
 
 
18491
fi
 
18492
done
 
18493
 
 
18494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
 
18495
$as_echo_n "checking for socket in -lsocket... " >&6; }
 
18496
if ${ac_cv_lib_socket_socket+:} false; then :
 
18497
  $as_echo_n "(cached) " >&6
 
18498
else
 
18499
  ac_check_lib_save_LIBS=$LIBS
 
18500
LIBS="-lsocket  $LIBS"
 
18501
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18502
/* end confdefs.h.  */
 
18503
 
 
18504
/* Override any GCC internal prototype to avoid an error.
 
18505
   Use char because int might match the return type of a GCC
 
18506
   builtin and then its argument prototype would still apply.  */
 
18507
#ifdef __cplusplus
 
18508
extern "C"
 
18509
#endif
 
18510
char socket ();
 
18511
int
 
18512
main ()
 
18513
{
 
18514
return socket ();
 
18515
  ;
 
18516
  return 0;
 
18517
}
 
18518
_ACEOF
 
18519
if ac_fn_c_try_link "$LINENO"; then :
 
18520
  ac_cv_lib_socket_socket=yes
 
18521
else
 
18522
  ac_cv_lib_socket_socket=no
 
18523
fi
 
18524
rm -f core conftest.err conftest.$ac_objext \
 
18525
    conftest$ac_exeext conftest.$ac_ext
 
18526
LIBS=$ac_check_lib_save_LIBS
 
18527
fi
 
18528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
 
18529
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
18530
if test "x$ac_cv_lib_socket_socket" = xyes; then :
 
18531
  cat >>confdefs.h <<_ACEOF
 
18532
#define HAVE_LIBSOCKET 1
 
18533
_ACEOF
 
18534
 
 
18535
  LIBS="-lsocket $LIBS"
 
18536
 
 
18537
fi
 
18538
 
 
18539
 
 
18540
SOCKET_LIBS="$LIBS"
 
18541
LIBS=$gimp_save_LIBS
 
18542
 
 
18543
 
 
18544
 
 
18545
 
 
18546
########################
 
18547
# Check for MMX assembly
 
18548
########################
 
18549
 
 
18550
# Check whether --enable-mmx was given.
 
18551
if test "${enable_mmx+set}" = set; then :
 
18552
  enableval=$enable_mmx;
 
18553
else
 
18554
  enable_mmx=$have_x86
 
18555
fi
 
18556
 
 
18557
 
 
18558
# Check whether --enable-sse was given.
 
18559
if test "${enable_sse+set}" = set; then :
 
18560
  enableval=$enable_sse;
 
18561
else
 
18562
  enable_sse=$enable_mmx
 
18563
fi
 
18564
 
 
18565
 
 
18566
if test "x$enable_mmx" = xyes; then
 
18567
 
 
18568
  MMX_EXTRA_CFLAGS=
 
18569
  for flag in '-mmmx'; do
 
18570
    if test -z "$MMX_EXTRA_CFLAGS"; then
 
18571
      MMX_EXTRA_CFLAGS_save_CFLAGS="$CFLAGS"
 
18572
      CFLAGS="$CFLAGS $flag"
 
18573
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
18574
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
18575
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18576
/* end confdefs.h.  */
 
18577
 
 
18578
int
 
18579
main ()
 
18580
{
 
18581
 
 
18582
  ;
 
18583
  return 0;
 
18584
}
 
18585
_ACEOF
 
18586
if ac_fn_c_try_compile "$LINENO"; then :
 
18587
  MMX_EXTRA_CFLAGS_works=yes
 
18588
else
 
18589
  MMX_EXTRA_CFLAGS_works=no
 
18590
fi
 
18591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18592
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMX_EXTRA_CFLAGS_works" >&5
 
18593
$as_echo "$MMX_EXTRA_CFLAGS_works" >&6; }
 
18594
      CFLAGS="$MMX_EXTRA_CFLAGS_save_CFLAGS"
 
18595
      if test "x$MMX_EXTRA_CFLAGS_works" = "xyes"; then
 
18596
        MMX_EXTRA_CFLAGS="$flag"
 
18597
      fi
 
18598
    fi
 
18599
  done
 
18600
 
 
18601
  SSE_EXTRA_CFLAGS=
 
18602
 
 
18603
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile MMX code" >&5
 
18604
$as_echo_n "checking whether we can compile MMX code... " >&6; }
 
18605
 
 
18606
  mmx_save_CFLAGS="$CFLAGS"
 
18607
  CFLAGS="$mmx_save_CFLAGS $MMX_EXTRA_CFLAGS"
 
18608
 
 
18609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18610
/* end confdefs.h.  */
 
18611
 
 
18612
int
 
18613
main ()
 
18614
{
 
18615
asm ("movq 0, %mm0");
 
18616
  ;
 
18617
  return 0;
 
18618
}
 
18619
_ACEOF
 
18620
if ac_fn_c_try_compile "$LINENO"; then :
 
18621
 
 
18622
$as_echo "#define USE_MMX 1" >>confdefs.h
 
18623
 
 
18624
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18625
$as_echo "yes" >&6; }
 
18626
 
 
18627
    if test "x$enable_sse" = xyes; then
 
18628
 
 
18629
  sse_flag=
 
18630
  for flag in '-msse'; do
 
18631
    if test -z "$sse_flag"; then
 
18632
      sse_flag_save_CFLAGS="$CFLAGS"
 
18633
      CFLAGS="$CFLAGS $flag"
 
18634
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
18635
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
18636
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18637
/* end confdefs.h.  */
 
18638
 
 
18639
int
 
18640
main ()
 
18641
{
 
18642
 
 
18643
  ;
 
18644
  return 0;
 
18645
}
 
18646
_ACEOF
 
18647
if ac_fn_c_try_compile "$LINENO"; then :
 
18648
  sse_flag_works=yes
 
18649
else
 
18650
  sse_flag_works=no
 
18651
fi
 
18652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18653
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sse_flag_works" >&5
 
18654
$as_echo "$sse_flag_works" >&6; }
 
18655
      CFLAGS="$sse_flag_save_CFLAGS"
 
18656
      if test "x$sse_flag_works" = "xyes"; then
 
18657
        sse_flag="$flag"
 
18658
      fi
 
18659
    fi
 
18660
  done
 
18661
 
 
18662
      SSE_EXTRA_CFLAGS="$MMX_EXTRA_CFLAGS $sse_flag"
 
18663
 
 
18664
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile SSE code" >&5
 
18665
$as_echo_n "checking whether we can compile SSE code... " >&6; }
 
18666
 
 
18667
      CFLAGS="$CFLAGS $sse_flag"
 
18668
 
 
18669
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18670
/* end confdefs.h.  */
 
18671
 
 
18672
int
 
18673
main ()
 
18674
{
 
18675
asm ("movntps %xmm0, 0");
 
18676
  ;
 
18677
  return 0;
 
18678
}
 
18679
_ACEOF
 
18680
if ac_fn_c_try_compile "$LINENO"; then :
 
18681
 
 
18682
$as_echo "#define USE_SSE 1" >>confdefs.h
 
18683
 
 
18684
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18685
$as_echo "yes" >&6; }
 
18686
 
 
18687
else
 
18688
  enable_sse=no
 
18689
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18690
$as_echo "no" >&6; }
 
18691
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the SSE command set." >&5
 
18692
$as_echo "$as_me: WARNING: The assembler does not support the SSE command set." >&2;}
 
18693
 
 
18694
fi
 
18695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18696
 
 
18697
    fi
 
18698
 
 
18699
else
 
18700
  enable_mmx=no
 
18701
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18702
$as_echo "no" >&6; }
 
18703
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the MMX command set." >&5
 
18704
$as_echo "$as_me: WARNING: The assembler does not support the MMX command set." >&2;}
 
18705
 
 
18706
fi
 
18707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18708
 
 
18709
  CFLAGS="$mmx_save_CFLAGS"
 
18710
 
 
18711
 
 
18712
 
 
18713
fi
 
18714
 
 
18715
 
 
18716
############################
 
18717
# Check for AltiVec assembly
 
18718
############################
 
18719
 
 
18720
# Check whether --enable-altivec was given.
 
18721
if test "${enable_altivec+set}" = set; then :
 
18722
  enableval=$enable_altivec;
 
18723
else
 
18724
  enable_altivec=$have_ppc
 
18725
fi
 
18726
 
 
18727
 
 
18728
if test "x$enable_altivec" = xyes; then
 
18729
 
 
18730
 
 
18731
  altivec_flag=
 
18732
  for flag in '-faltivec' '-maltivec -mabi=altivec'; do
 
18733
    if test -z "$altivec_flag"; then
 
18734
      altivec_flag_save_CFLAGS="$CFLAGS"
 
18735
      CFLAGS="$CFLAGS $flag"
 
18736
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
18737
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
18738
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18739
/* end confdefs.h.  */
 
18740
 
 
18741
int
 
18742
main ()
 
18743
{
 
18744
 
 
18745
  ;
 
18746
  return 0;
 
18747
}
 
18748
_ACEOF
 
18749
if ac_fn_c_try_compile "$LINENO"; then :
 
18750
  altivec_flag_works=yes
 
18751
else
 
18752
  altivec_flag_works=no
 
18753
fi
 
18754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18755
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $altivec_flag_works" >&5
 
18756
$as_echo "$altivec_flag_works" >&6; }
 
18757
      CFLAGS="$altivec_flag_save_CFLAGS"
 
18758
      if test "x$altivec_flag_works" = "xyes"; then
 
18759
        altivec_flag="$flag"
 
18760
      fi
 
18761
    fi
 
18762
  done
 
18763
 
 
18764
 
 
18765
  ALTIVEC_EXTRA_CFLAGS=
 
18766
  case "$altivec_flag" in
 
18767
    -maltivec*)
 
18768
      altivec_save_CPPFLAGS="$CPPFLAGS"
 
18769
      CPPFLAGS="$altivec_save_CPPFLAGS $altivec_flag"
 
18770
      for ac_header in altivec.h
 
18771
do :
 
18772
  ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
 
18773
if test "x$ac_cv_header_altivec_h" = xyes; then :
 
18774
  cat >>confdefs.h <<_ACEOF
 
18775
#define HAVE_ALTIVEC_H 1
 
18776
_ACEOF
 
18777
 ALTIVEC_EXTRA_CFLAGS="$altivec_flag"
 
18778
fi
 
18779
 
 
18780
done
 
18781
 
 
18782
      CPPFLAGS="$altivec_save_CPPFLAGS"
 
18783
      ;;
 
18784
    *)
 
18785
      ALTIVEC_EXTRA_CFLAGS="$altivec_flag"
 
18786
      ;;
 
18787
  esac
 
18788
 
 
18789
 
 
18790
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile AltiVec code" >&5
 
18791
$as_echo_n "checking whether we can compile AltiVec code... " >&6; }
 
18792
 
 
18793
  can_use_altivec=no
 
18794
  if test -z "$ALTIVEC_EXTRA_CFLAGS"; then
 
18795
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18796
$as_echo "no" >&6; }
 
18797
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The compiler does not support the AltiVec command set." >&5
 
18798
$as_echo "$as_me: WARNING: The compiler does not support the AltiVec command set." >&2;}
 
18799
  else
 
18800
    case "$target_or_host" in
 
18801
      *-*-darwin*)
 
18802
        can_use_altivec=yes
 
18803
 
 
18804
$as_echo "#define HAVE_ALTIVEC_SYSCTL 1" >>confdefs.h
 
18805
 
 
18806
        ;;
 
18807
      *)
 
18808
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18809
/* end confdefs.h.  */
 
18810
 
 
18811
int
 
18812
main ()
 
18813
{
 
18814
asm ("vand %v0, %v0, %v0");
 
18815
  ;
 
18816
  return 0;
 
18817
}
 
18818
_ACEOF
 
18819
if ac_fn_c_try_compile "$LINENO"; then :
 
18820
  can_use_altivec=yes
 
18821
else
 
18822
  can_use_altivec=no
 
18823
fi
 
18824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18825
        ;;
 
18826
    esac
 
18827
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_use_altivec" >&5
 
18828
$as_echo "$can_use_altivec" >&6; }
 
18829
 
 
18830
    if test "x$can_use_altivec" = "xyes"; then
 
18831
 
 
18832
$as_echo "#define USE_ALTIVEC 1" >>confdefs.h
 
18833
 
 
18834
    else
 
18835
      enable_altivec=no
 
18836
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the AltiVec command set." >&5
 
18837
$as_echo "$as_me: WARNING: The assembler does not support the AltiVec command set." >&2;}
 
18838
    fi
 
18839
  fi
 
18840
 
 
18841
  enable_altivec="$can_use_altivec"
 
18842
fi
 
18843
 
 
18844
 
 
18845
###################################
 
18846
# Checks for shared memory handling
 
18847
###################################
 
18848
 
 
18849
# MacOS X has broken SysV shm
 
18850
case "$target_or_host" in
 
18851
  *-*-darwin* | *-*-rhapsody* | *-*-machten*)
 
18852
    shmdefault=posix
 
18853
    ;;
 
18854
  *)
 
18855
    shmdefault=sysv
 
18856
    ;;
 
18857
esac
 
18858
 
 
18859
shmtype=auto
 
18860
 
 
18861
# Check whether --with-shm was given.
 
18862
if test "${with_shm+set}" = set; then :
 
18863
  withval=$with_shm; shmtype=$with_shm
 
18864
fi
 
18865
 
 
18866
 
 
18867
case $shmtype in
 
18868
  none|sysv|posix) ;;
 
18869
  auto) shmtype=$shmdefault ;;
 
18870
  *) as_fn_error $? "Invalid shared memory transport type: use none, sysv, posix, or auto." "$LINENO" 5;;
 
18871
esac
 
18872
 
 
18873
 
 
18874
if test "x$platform_win32" = "xyes"; then
 
18875
  shmtype=win32
 
18876
elif test "x$shmtype" = "xsysv"; then
 
18877
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
 
18878
if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
 
18879
 
 
18880
$as_echo "#define HAVE_IPC_H 1" >>confdefs.h
 
18881
 
 
18882
else
 
18883
  no_sys_ipc=yes
 
18884
fi
 
18885
 
 
18886
 
 
18887
  ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
 
18888
if test "x$ac_cv_header_sys_shm_h" = xyes; then :
 
18889
 
 
18890
$as_echo "#define HAVE_SHM_H 1" >>confdefs.h
 
18891
 
 
18892
else
 
18893
  no_sys_shm=yes
 
18894
fi
 
18895
 
 
18896
 
 
18897
 
 
18898
  if test "$ac_cv_header_sys_shm_h" = "yes"; then
 
18899
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allowes subsequent attaches" >&5
 
18900
$as_echo_n "checking whether shmctl IPC_RMID allowes subsequent attaches... " >&6; }
 
18901
    if test "$cross_compiling" = yes; then :
 
18902
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
 
18903
$as_echo "assuming no" >&6; }
 
18904
else
 
18905
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18906
/* end confdefs.h.  */
 
18907
 
 
18908
        #include <sys/types.h>
 
18909
        #include <sys/ipc.h>
 
18910
        #include <sys/shm.h>
 
18911
        int main()
 
18912
        {
 
18913
          int id;
 
18914
          char *shmaddr;
 
18915
        id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
 
18916
        if (id == -1)
 
18917
          exit (2);
 
18918
          shmaddr = shmat (id, 0, 0);
 
18919
          shmctl (id, IPC_RMID, 0);
 
18920
          if ((char*) shmat (id, 0, 0) == (char*) -1)
 
18921
          {
 
18922
            shmdt (shmaddr);
 
18923
            exit (1);
 
18924
          }
 
18925
          shmdt (shmaddr);
 
18926
          shmdt (shmaddr);
 
18927
          exit (0);
 
18928
        }
 
18929
 
 
18930
_ACEOF
 
18931
if ac_fn_c_try_run "$LINENO"; then :
 
18932
 
 
18933
$as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h
 
18934
 
 
18935
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18936
$as_echo "yes" >&6; }
 
18937
else
 
18938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18939
$as_echo "no" >&6; }
 
18940
fi
 
18941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
18942
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
18943
fi
 
18944
 
 
18945
 
 
18946
 
 
18947
$as_echo "#define USE_SYSV_SHM 1" >>confdefs.h
 
18948
 
 
18949
  else
 
18950
    shmtype=none
 
18951
  fi
 
18952
elif test "x$shmtype" = "xposix"; then
 
18953
  have_shm_open=no
 
18954
 
 
18955
  ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
 
18956
if test "x$ac_cv_func_shm_open" = xyes; then :
 
18957
  have_shm_open=yes
 
18958
fi
 
18959
 
 
18960
 
 
18961
  RT_LIBS=
 
18962
  if test "$have_shm_open" != "yes"; then
 
18963
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
 
18964
$as_echo_n "checking for shm_open in -lrt... " >&6; }
 
18965
if ${ac_cv_lib_rt_shm_open+:} false; then :
 
18966
  $as_echo_n "(cached) " >&6
 
18967
else
 
18968
  ac_check_lib_save_LIBS=$LIBS
 
18969
LIBS="-lrt  $LIBS"
 
18970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18971
/* end confdefs.h.  */
 
18972
 
 
18973
/* Override any GCC internal prototype to avoid an error.
 
18974
   Use char because int might match the return type of a GCC
 
18975
   builtin and then its argument prototype would still apply.  */
 
18976
#ifdef __cplusplus
 
18977
extern "C"
 
18978
#endif
 
18979
char shm_open ();
 
18980
int
 
18981
main ()
 
18982
{
 
18983
return shm_open ();
 
18984
  ;
 
18985
  return 0;
 
18986
}
 
18987
_ACEOF
 
18988
if ac_fn_c_try_link "$LINENO"; then :
 
18989
  ac_cv_lib_rt_shm_open=yes
 
18990
else
 
18991
  ac_cv_lib_rt_shm_open=no
 
18992
fi
 
18993
rm -f core conftest.err conftest.$ac_objext \
 
18994
    conftest$ac_exeext conftest.$ac_ext
 
18995
LIBS=$ac_check_lib_save_LIBS
 
18996
fi
 
18997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
 
18998
$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
 
18999
if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
 
19000
  RT_LIBS="-lrt" have_shm_open=yes
 
19001
fi
 
19002
 
 
19003
  fi
 
19004
 
 
19005
 
 
19006
  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
 
19007
if test "x$ac_cv_header_sys_mman_h" = xyes; then :
 
19008
 
 
19009
$as_echo "#define HAVE_MMAN_H 1" >>confdefs.h
 
19010
 
 
19011
else
 
19012
  no_sys_mman=yes
 
19013
fi
 
19014
 
 
19015
 
 
19016
 
 
19017
  if test "$ac_cv_func_mmap" = "yes" &&
 
19018
     test "$ac_cv_header_sys_mman_h" = "yes" &&
 
19019
     test "$have_shm_open" = "yes"; then
 
19020
 
 
19021
$as_echo "#define USE_POSIX_SHM 1" >>confdefs.h
 
19022
 
 
19023
  else
 
19024
    shmtype=none
 
19025
  fi
 
19026
fi
 
19027
 
 
19028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared memory transport type" >&5
 
19029
$as_echo_n "checking for shared memory transport type... " >&6; }
 
19030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $shmtype" >&5
 
19031
$as_echo "$shmtype" >&6; }
 
19032
 
 
19033
 
 
19034
########################
 
19035
# Define a symbol prefix
 
19036
########################
 
19037
 
 
19038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbols are prefixed" >&5
 
19039
$as_echo_n "checking whether symbols are prefixed... " >&6; }
 
19040
 
 
19041
case "$host_os" in
 
19042
  mingw*)
 
19043
    case "$host_cpu" in
 
19044
          x86_64) SYMPREFIX='' ;;
 
19045
          *) SYMPREFIX='_' ;;
 
19046
        esac
 
19047
    ;;
 
19048
  darwin* | rhapsody* | machten*)
 
19049
    SYMPREFIX='_'
 
19050
    ;;
 
19051
  *)
 
19052
    ;;
 
19053
esac
 
19054
 
 
19055
if test -n "$SYMPREFIX"; then
 
19056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with a $SYMPREFIX" >&5
 
19057
$as_echo "yes, with a $SYMPREFIX" >&6; }
 
19058
else
 
19059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19060
$as_echo "no" >&6; }
 
19061
fi
 
19062
 
 
19063
 
 
19064
 
 
19065
 
 
19066
############################
 
19067
# Check for select and fdset
 
19068
############################
 
19069
 
 
19070
if test "x$os_win32" != xyes; then
 
19071
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking fd_set and sys/select" >&5
 
19072
$as_echo_n "checking fd_set and sys/select... " >&6; }
 
19073
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19074
/* end confdefs.h.  */
 
19075
#include <sys/types.h>
 
19076
int
 
19077
main ()
 
19078
{
 
19079
fd_set readMask, writeMask;
 
19080
  ;
 
19081
  return 0;
 
19082
}
 
19083
_ACEOF
 
19084
if ac_fn_c_try_compile "$LINENO"; then :
 
19085
  gimp_ok=yes
 
19086
else
 
19087
  gimp_ok=no
 
19088
fi
 
19089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19090
  if test "x$gimp_ok" = xno; then
 
19091
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19092
/* end confdefs.h.  */
 
19093
#include <sys/select.h>
 
19094
 
 
19095
_ACEOF
 
19096
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19097
  $EGREP "fd_mask" >/dev/null 2>&1; then :
 
19098
  gimp_ok=yes
 
19099
fi
 
19100
rm -f conftest*
 
19101
 
 
19102
      if test "x$gimp_ok" = xyes; then
 
19103
 
 
19104
$as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
 
19105
 
 
19106
      fi
 
19107
  fi
 
19108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gimp_ok" >&5
 
19109
$as_echo "$gimp_ok" >&6; }
 
19110
  if test "x$gimp_ok" = xno; then
 
19111
 
 
19112
$as_echo "#define NO_FD_SET 1" >>confdefs.h
 
19113
 
 
19114
  fi
 
19115
fi
 
19116
 
 
19117
 
 
19118
#############################
 
19119
# Threads and multi processor
 
19120
#############################
 
19121
 
 
19122
# Check whether --enable-mp was given.
 
19123
if test "${enable_mp+set}" = set; then :
 
19124
  enableval=$enable_mp;
 
19125
fi
 
19126
 
 
19127
 
 
19128
if test "x$enable_mp" != "xno"; then
 
19129
 
 
19130
$as_echo "#define ENABLE_MP 1" >>confdefs.h
 
19131
 
 
19132
fi
 
19133
 
 
19134
 
 
19135
################################
 
19136
# Some plug-ins are X11 specific
 
19137
################################
 
19138
 
 
19139
# Check if building for GTK+-X11
 
19140
gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
 
19141
 
 
19142
have_libxmu="no (building for $gdk_target)"
 
19143
 
 
19144
if test "$gdk_target" = x11; then
 
19145
 
 
19146
   # doc-shooter is X11 specific
 
19147
   DOC_SHOOTER=doc-shooter
 
19148
 
 
19149
   # screenshot plug-in needs to link to X11 explicitely
 
19150
   SCREENSHOT_LIBS="$X_LIBS -lX11"
 
19151
 
 
19152
   gimp_save_CFLAGS="$CFLAGS"
 
19153
   gimp_save_LDFLAGS="$LDFLAGS"
 
19154
   CFLAGS="$CFLAGS $GTK_CFLAGS"
 
19155
   LDFLAGS="$LDFLAGS $X_LIBS"
 
19156
 
 
19157
   # Test for Xmu
 
19158
   if test -z "$XMU_LIBS"; then
 
19159
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuClientWindow in -lXmu" >&5
 
19160
$as_echo_n "checking for XmuClientWindow in -lXmu... " >&6; }
 
19161
if ${ac_cv_lib_Xmu_XmuClientWindow+:} false; then :
 
19162
  $as_echo_n "(cached) " >&6
 
19163
else
 
19164
  ac_check_lib_save_LIBS=$LIBS
 
19165
LIBS="-lXmu -lXt -lX11 $LIBS"
 
19166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19167
/* end confdefs.h.  */
 
19168
 
 
19169
/* Override any GCC internal prototype to avoid an error.
 
19170
   Use char because int might match the return type of a GCC
 
19171
   builtin and then its argument prototype would still apply.  */
 
19172
#ifdef __cplusplus
 
19173
extern "C"
 
19174
#endif
 
19175
char XmuClientWindow ();
 
19176
int
 
19177
main ()
 
19178
{
 
19179
return XmuClientWindow ();
 
19180
  ;
 
19181
  return 0;
 
19182
}
 
19183
_ACEOF
 
19184
if ac_fn_c_try_link "$LINENO"; then :
 
19185
  ac_cv_lib_Xmu_XmuClientWindow=yes
 
19186
else
 
19187
  ac_cv_lib_Xmu_XmuClientWindow=no
 
19188
fi
 
19189
rm -f core conftest.err conftest.$ac_objext \
 
19190
    conftest$ac_exeext conftest.$ac_ext
 
19191
LIBS=$ac_check_lib_save_LIBS
 
19192
fi
 
19193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuClientWindow" >&5
 
19194
$as_echo "$ac_cv_lib_Xmu_XmuClientWindow" >&6; }
 
19195
if test "x$ac_cv_lib_Xmu_XmuClientWindow" = xyes; then :
 
19196
  for ac_header in X11/Xmu/WinUtil.h
 
19197
do :
 
19198
  ac_fn_c_check_header_compile "$LINENO" "X11/Xmu/WinUtil.h" "ac_cv_header_X11_Xmu_WinUtil_h" "#include <gdk/gdkx.h>
 
19199
"
 
19200
if test "x$ac_cv_header_X11_Xmu_WinUtil_h" = xyes; then :
 
19201
  cat >>confdefs.h <<_ACEOF
 
19202
#define HAVE_X11_XMU_WINUTIL_H 1
 
19203
_ACEOF
 
19204
 have_libxmu=yes
 
19205
          XMU_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXmu -lXt"
 
19206
          SCREENSHOT_LIBS="$XMU_LIBS"
 
19207
else
 
19208
  have_libxmu="no (XMU header file not found)"
 
19209
fi
 
19210
 
 
19211
done
 
19212
 
 
19213
else
 
19214
  have_libxmu="no (XMU library not found)"
 
19215
fi
 
19216
 
 
19217
   fi
 
19218
 
 
19219
   # Check for shaped window extension
 
19220
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeGetRectangles in -lXext" >&5
 
19221
$as_echo_n "checking for XShapeGetRectangles in -lXext... " >&6; }
 
19222
if ${ac_cv_lib_Xext_XShapeGetRectangles+:} false; then :
 
19223
  $as_echo_n "(cached) " >&6
 
19224
else
 
19225
  ac_check_lib_save_LIBS=$LIBS
 
19226
LIBS="-lXext -lX11 -lXext $LIBS"
 
19227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19228
/* end confdefs.h.  */
 
19229
 
 
19230
/* Override any GCC internal prototype to avoid an error.
 
19231
   Use char because int might match the return type of a GCC
 
19232
   builtin and then its argument prototype would still apply.  */
 
19233
#ifdef __cplusplus
 
19234
extern "C"
 
19235
#endif
 
19236
char XShapeGetRectangles ();
 
19237
int
 
19238
main ()
 
19239
{
 
19240
return XShapeGetRectangles ();
 
19241
  ;
 
19242
  return 0;
 
19243
}
 
19244
_ACEOF
 
19245
if ac_fn_c_try_link "$LINENO"; then :
 
19246
  ac_cv_lib_Xext_XShapeGetRectangles=yes
 
19247
else
 
19248
  ac_cv_lib_Xext_XShapeGetRectangles=no
 
19249
fi
 
19250
rm -f core conftest.err conftest.$ac_objext \
 
19251
    conftest$ac_exeext conftest.$ac_ext
 
19252
LIBS=$ac_check_lib_save_LIBS
 
19253
fi
 
19254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeGetRectangles" >&5
 
19255
$as_echo "$ac_cv_lib_Xext_XShapeGetRectangles" >&6; }
 
19256
if test "x$ac_cv_lib_Xext_XShapeGetRectangles" = xyes; then :
 
19257
  for ac_header in X11/extensions/shape.h
 
19258
do :
 
19259
  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <gdk/gdkx.h>
 
19260
"
 
19261
if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
 
19262
  cat >>confdefs.h <<_ACEOF
 
19263
#define HAVE_X11_EXTENSIONS_SHAPE_H 1
 
19264
_ACEOF
 
19265
 SCREENSHOT_LIBS="$SCREENSHOT_LIBS -lXext"
 
19266
fi
 
19267
 
 
19268
done
 
19269
 
 
19270
fi
 
19271
 
 
19272
 
 
19273
   CFLAGS="$gimp_save_CFLAGS"
 
19274
   LDFLAGS="$gimp_save_LDFLAGS"
 
19275
 
 
19276
   # check for the XFixes extension
 
19277
 
 
19278
pkg_failed=no
 
19279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
 
19280
$as_echo_n "checking for XFIXES... " >&6; }
 
19281
 
 
19282
if test -n "$XFIXES_CFLAGS"; then
 
19283
    pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
 
19284
 elif test -n "$PKG_CONFIG"; then
 
19285
    if test -n "$PKG_CONFIG" && \
 
19286
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
 
19287
  ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
 
19288
  ac_status=$?
 
19289
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19290
  test $ac_status = 0; }; then
 
19291
  pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
 
19292
                      test "x$?" != "x0" && pkg_failed=yes
 
19293
else
 
19294
  pkg_failed=yes
 
19295
fi
 
19296
 else
 
19297
    pkg_failed=untried
 
19298
fi
 
19299
if test -n "$XFIXES_LIBS"; then
 
19300
    pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
 
19301
 elif test -n "$PKG_CONFIG"; then
 
19302
    if test -n "$PKG_CONFIG" && \
 
19303
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
 
19304
  ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
 
19305
  ac_status=$?
 
19306
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19307
  test $ac_status = 0; }; then
 
19308
  pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
 
19309
                      test "x$?" != "x0" && pkg_failed=yes
 
19310
else
 
19311
  pkg_failed=yes
 
19312
fi
 
19313
 else
 
19314
    pkg_failed=untried
 
19315
fi
 
19316
 
 
19317
 
 
19318
 
 
19319
if test $pkg_failed = yes; then
 
19320
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19321
$as_echo "no" >&6; }
 
19322
 
 
19323
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19324
        _pkg_short_errors_supported=yes
 
19325
else
 
19326
        _pkg_short_errors_supported=no
 
19327
fi
 
19328
        if test $_pkg_short_errors_supported = yes; then
 
19329
                XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
 
19330
        else
 
19331
                XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
 
19332
        fi
 
19333
        # Put the nasty error message in config.log where it belongs
 
19334
        echo "$XFIXES_PKG_ERRORS" >&5
 
19335
 
 
19336
        true
 
19337
elif test $pkg_failed = untried; then
 
19338
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
19339
$as_echo "no" >&6; }
 
19340
        true
 
19341
else
 
19342
        XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
 
19343
        XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
 
19344
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
19345
$as_echo "yes" >&6; }
 
19346
 
 
19347
$as_echo "#define HAVE_XFIXES 1" >>confdefs.h
 
19348
 
 
19349
      SCREENSHOT_LIBS="$SCREENSHOT_LIBS $XFIXES_LIBS"
 
19350
fi
 
19351
fi
 
19352
 
 
19353
 
 
19354
 
 
19355
 
 
19356
 
 
19357
 
 
19358
 
 
19359
GIMP_COMMAND='gimp-2.8'
 
19360
 
 
19361
 
 
19362
 
 
19363
 
 
19364
############
 
19365
# MIME types
 
19366
############
 
19367
 
 
19368
# The list of MIME types that are supported by plug-ins that are compiled
 
19369
# unconditionally:
 
19370
MIME_TYPES="application/postscript;application/pdf;image/bmp;image/g3fax;image/gif;image/x-fits;image/pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih"
 
19371
 
 
19372
 
 
19373
###################
 
19374
# Check for libtiff
 
19375
###################
 
19376
 
 
19377
 
 
19378
# Check whether --with-libtiff was given.
 
19379
if test "${with_libtiff+set}" = set; then :
 
19380
  withval=$with_libtiff;
 
19381
fi
 
19382
 
 
19383
 
 
19384
have_libtiff=no
 
19385
if test "x$with_libtiff" != xno && test -z "$TIFF_LIBS"; then
 
19386
  have_libtiff=yes
 
19387
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
 
19388
$as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
 
19389
if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then :
 
19390
  $as_echo_n "(cached) " >&6
 
19391
else
 
19392
  ac_check_lib_save_LIBS=$LIBS
 
19393
LIBS="-ltiff -lm $LIBS"
 
19394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19395
/* end confdefs.h.  */
 
19396
 
 
19397
/* Override any GCC internal prototype to avoid an error.
 
19398
   Use char because int might match the return type of a GCC
 
19399
   builtin and then its argument prototype would still apply.  */
 
19400
#ifdef __cplusplus
 
19401
extern "C"
 
19402
#endif
 
19403
char TIFFReadScanline ();
 
19404
int
 
19405
main ()
 
19406
{
 
19407
return TIFFReadScanline ();
 
19408
  ;
 
19409
  return 0;
 
19410
}
 
19411
_ACEOF
 
19412
if ac_fn_c_try_link "$LINENO"; then :
 
19413
  ac_cv_lib_tiff_TIFFReadScanline=yes
 
19414
else
 
19415
  ac_cv_lib_tiff_TIFFReadScanline=no
 
19416
fi
 
19417
rm -f core conftest.err conftest.$ac_objext \
 
19418
    conftest$ac_exeext conftest.$ac_ext
 
19419
LIBS=$ac_check_lib_save_LIBS
 
19420
fi
 
19421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
 
19422
$as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
 
19423
if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then :
 
19424
  ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
 
19425
if test "x$ac_cv_header_tiffio_h" = xyes; then :
 
19426
  FILE_TIFF_LOAD='file-tiff-load$(EXEEXT)'; FILE_TIFF_SAVE='file-tiff-save$(EXEEXT)'; TIFF_LIBS='-ltiff'
 
19427
else
 
19428
  have_libtiff="no (TIFF header files not found)"
 
19429
fi
 
19430
 
 
19431
 
 
19432
else
 
19433
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFWriteScanline in -ltiff" >&5
 
19434
$as_echo_n "checking for TIFFWriteScanline in -ltiff... " >&6; }
 
19435
if ${ac_cv_lib_tiff_TIFFWriteScanline+:} false; then :
 
19436
  $as_echo_n "(cached) " >&6
 
19437
else
 
19438
  ac_check_lib_save_LIBS=$LIBS
 
19439
LIBS="-ltiff -ljpeg -lz -lm $LIBS"
 
19440
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19441
/* end confdefs.h.  */
 
19442
 
 
19443
/* Override any GCC internal prototype to avoid an error.
 
19444
   Use char because int might match the return type of a GCC
 
19445
   builtin and then its argument prototype would still apply.  */
 
19446
#ifdef __cplusplus
 
19447
extern "C"
 
19448
#endif
 
19449
char TIFFWriteScanline ();
 
19450
int
 
19451
main ()
 
19452
{
 
19453
return TIFFWriteScanline ();
 
19454
  ;
 
19455
  return 0;
 
19456
}
 
19457
_ACEOF
 
19458
if ac_fn_c_try_link "$LINENO"; then :
 
19459
  ac_cv_lib_tiff_TIFFWriteScanline=yes
 
19460
else
 
19461
  ac_cv_lib_tiff_TIFFWriteScanline=no
 
19462
fi
 
19463
rm -f core conftest.err conftest.$ac_objext \
 
19464
    conftest$ac_exeext conftest.$ac_ext
 
19465
LIBS=$ac_check_lib_save_LIBS
 
19466
fi
 
19467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFWriteScanline" >&5
 
19468
$as_echo "$ac_cv_lib_tiff_TIFFWriteScanline" >&6; }
 
19469
if test "x$ac_cv_lib_tiff_TIFFWriteScanline" = xyes; then :
 
19470
  ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
 
19471
if test "x$ac_cv_header_tiffio_h" = xyes; then :
 
19472
  FILE_TIFF_LOAD='file-tiff-load$(EXEEXT)'; FILE_TIFF_SAVE='file-tiff-save$(EXEEXT)'; TIFF_LIBS='-ltiff -ljpeg -lz'
 
19473
else
 
19474
  have_libtiff="no (TIFF header files not found)"
 
19475
fi
 
19476
 
 
19477
 
 
19478
else
 
19479
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFFlushData in -ltiff34" >&5
 
19480
$as_echo_n "checking for TIFFFlushData in -ltiff34... " >&6; }
 
19481
if ${ac_cv_lib_tiff34_TIFFFlushData+:} false; then :
 
19482
  $as_echo_n "(cached) " >&6
 
19483
else
 
19484
  ac_check_lib_save_LIBS=$LIBS
 
19485
LIBS="-ltiff34 -ljpeg -lz -lm $LIBS"
 
19486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19487
/* end confdefs.h.  */
 
19488
 
 
19489
/* Override any GCC internal prototype to avoid an error.
 
19490
   Use char because int might match the return type of a GCC
 
19491
   builtin and then its argument prototype would still apply.  */
 
19492
#ifdef __cplusplus
 
19493
extern "C"
 
19494
#endif
 
19495
char TIFFFlushData ();
 
19496
int
 
19497
main ()
 
19498
{
 
19499
return TIFFFlushData ();
 
19500
  ;
 
19501
  return 0;
 
19502
}
 
19503
_ACEOF
 
19504
if ac_fn_c_try_link "$LINENO"; then :
 
19505
  ac_cv_lib_tiff34_TIFFFlushData=yes
 
19506
else
 
19507
  ac_cv_lib_tiff34_TIFFFlushData=no
 
19508
fi
 
19509
rm -f core conftest.err conftest.$ac_objext \
 
19510
    conftest$ac_exeext conftest.$ac_ext
 
19511
LIBS=$ac_check_lib_save_LIBS
 
19512
fi
 
19513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFFlushData" >&5
 
19514
$as_echo "$ac_cv_lib_tiff34_TIFFFlushData" >&6; }
 
19515
if test "x$ac_cv_lib_tiff34_TIFFFlushData" = xyes; then :
 
19516
  ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
 
19517
if test "x$ac_cv_header_tiffio_h" = xyes; then :
 
19518
  FILE_TIFF_LOAD='file-tiff-load$(EXEEXT)'; FILE_TIFF_SAVE='file-tiff-save$(EXEEXT)'; TIFF_LIBS='-ltiff34 -ljpeg -lz'
 
19519
else
 
19520
  have_libtiff="no (TIFF header files not found)"
 
19521
fi
 
19522
 
 
19523
 
 
19524
else
 
19525
  have_libtiff="no (TIFF library not found)"
 
19526
fi
 
19527
 
 
19528
fi
 
19529
 
 
19530
fi
 
19531
 
 
19532
fi
 
19533
 
 
19534
if test "x$with_libtiff" != xno && test -z "$TIFF_LIBS"; then
 
19535
  as_fn_error $? "
 
19536
*** Checks for TIFF libary failed. You can build without it by passing
 
19537
*** --without-libtiff to configure but you won't be able to use TIFFs then." "$LINENO" 5
 
19538
fi
 
19539
 
 
19540
if test "x$have_libtiff" = xyes; then
 
19541
  MIME_TYPES="$MIME_TYPES;image/tiff"
 
19542
fi
 
19543
 
 
19544
 
 
19545
 
 
19546
 
 
19547
 
 
19548
 
 
19549
###################
 
19550
# Check for libjpeg
 
19551
###################
 
19552
 
 
19553
 
 
19554
# Check whether --with-libjpeg was given.
 
19555
if test "${with_libjpeg+set}" = set; then :
 
19556
  withval=$with_libjpeg;
 
19557
fi
 
19558
 
 
19559
 
 
19560
jpeg_ok=no
 
19561
if test "x$with_libjpeg" != xno && test -z "$JPEG_LIBS"; then
 
19562
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
 
19563
$as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
 
19564
if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
 
19565
  $as_echo_n "(cached) " >&6
 
19566
else
 
19567
  ac_check_lib_save_LIBS=$LIBS
 
19568
LIBS="-ljpeg  $LIBS"
 
19569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19570
/* end confdefs.h.  */
 
19571
 
 
19572
/* Override any GCC internal prototype to avoid an error.
 
19573
   Use char because int might match the return type of a GCC
 
19574
   builtin and then its argument prototype would still apply.  */
 
19575
#ifdef __cplusplus
 
19576
extern "C"
 
19577
#endif
 
19578
char jpeg_destroy_decompress ();
 
19579
int
 
19580
main ()
 
19581
{
 
19582
return jpeg_destroy_decompress ();
 
19583
  ;
 
19584
  return 0;
 
19585
}
 
19586
_ACEOF
 
19587
if ac_fn_c_try_link "$LINENO"; then :
 
19588
  ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
 
19589
else
 
19590
  ac_cv_lib_jpeg_jpeg_destroy_decompress=no
 
19591
fi
 
19592
rm -f core conftest.err conftest.$ac_objext \
 
19593
    conftest$ac_exeext conftest.$ac_ext
 
19594
LIBS=$ac_check_lib_save_LIBS
 
19595
fi
 
19596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
 
19597
$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
 
19598
if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
 
19599
  jpeg_ok=yes
 
19600
else
 
19601
  jpeg_ok="no (JPEG library not found)"
 
19602
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** XJT plug-in will not be built (JPEG library not found) ***" >&5
 
19603
$as_echo "$as_me: WARNING: *** XJT plug-in will not be built (JPEG library not found) ***" >&2;}
 
19604
fi
 
19605
 
 
19606
  if test "$jpeg_ok" = yes; then
 
19607
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5
 
19608
$as_echo_n "checking for jpeglib.h... " >&6; }
 
19609
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19610
/* end confdefs.h.  */
 
19611
 
 
19612
#include <stdio.h>
 
19613
#undef HAVE_STDDEF_H
 
19614
#undef HAVE_STDLIB_H
 
19615
#undef PACKAGE
 
19616
#undef VERSION
 
19617
#include <jpeglib.h>
 
19618
_ACEOF
 
19619
if ac_fn_c_try_cpp "$LINENO"; then :
 
19620
  jpeg_ok=yes
 
19621
else
 
19622
  jpeg_ok="no (Can't include jpeglib.h)"
 
19623
fi
 
19624
rm -f conftest.err conftest.i conftest.$ac_ext
 
19625
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_ok" >&5
 
19626
$as_echo "$jpeg_ok" >&6; }
 
19627
    if test "$jpeg_ok" = yes; then
 
19628
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_save_markers in -ljpeg" >&5
 
19629
$as_echo_n "checking for jpeg_save_markers in -ljpeg... " >&6; }
 
19630
if ${ac_cv_lib_jpeg_jpeg_save_markers+:} false; then :
 
19631
  $as_echo_n "(cached) " >&6
 
19632
else
 
19633
  ac_check_lib_save_LIBS=$LIBS
 
19634
LIBS="-ljpeg  $LIBS"
 
19635
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19636
/* end confdefs.h.  */
 
19637
 
 
19638
/* Override any GCC internal prototype to avoid an error.
 
19639
   Use char because int might match the return type of a GCC
 
19640
   builtin and then its argument prototype would still apply.  */
 
19641
#ifdef __cplusplus
 
19642
extern "C"
 
19643
#endif
 
19644
char jpeg_save_markers ();
 
19645
int
 
19646
main ()
 
19647
{
 
19648
return jpeg_save_markers ();
 
19649
  ;
 
19650
  return 0;
 
19651
}
 
19652
_ACEOF
 
19653
if ac_fn_c_try_link "$LINENO"; then :
 
19654
  ac_cv_lib_jpeg_jpeg_save_markers=yes
 
19655
else
 
19656
  ac_cv_lib_jpeg_jpeg_save_markers=no
 
19657
fi
 
19658
rm -f core conftest.err conftest.$ac_objext \
 
19659
    conftest$ac_exeext conftest.$ac_ext
 
19660
LIBS=$ac_check_lib_save_LIBS
 
19661
fi
 
19662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_save_markers" >&5
 
19663
$as_echo "$ac_cv_lib_jpeg_jpeg_save_markers" >&6; }
 
19664
if test "x$ac_cv_lib_jpeg_jpeg_save_markers" = xyes; then :
 
19665
  JPEG='jpeg$(EXEEXT)'; JPEG_LIBS='-ljpeg'
 
19666
else
 
19667
  jpeg_ok="no (JPEG library is too old)"
 
19668
fi
 
19669
 
 
19670
    else
 
19671
      jpeg_ok="no (JPEG header file not found)"
 
19672
    fi
 
19673
  fi
 
19674
fi
 
19675
 
 
19676
if test "x$with_libjpeg" != xno && test -z "$JPEG_LIBS"; then
 
19677
  as_fn_error $? "
 
19678
*** Checks for JPEG library failed. You can build without it by passing
 
19679
*** --without-libjpeg to configure but you won't be able to use JPEGs then." "$LINENO" 5
 
19680
fi
 
19681
 
 
19682
if test "x$jpeg_ok" = xyes; then
 
19683
  MIME_TYPES="$MIME_TYPES;image/jpeg"
 
19684
fi
 
19685
 
 
19686
 if test "x$jpeg_ok" = xyes; then
 
19687
  BUILD_JPEG_TRUE=
 
19688
  BUILD_JPEG_FALSE='#'
 
19689
else
 
19690
  BUILD_JPEG_TRUE='#'
 
19691
  BUILD_JPEG_FALSE=
 
19692
fi
 
19693
 
 
19694
 
 
19695
 
 
19696
 
 
19697
## xjt does build, but it is more confusing than useful on Win32,
 
19698
## as it wants to run tar, mv and bzip2, which seldom are available
 
19699
 if test "x$jpeg_ok" = xyes && test "x$os_win32" = xno; then
 
19700
  BUILD_XJT_TRUE=
 
19701
  BUILD_XJT_FALSE='#'
 
19702
else
 
19703
  BUILD_XJT_TRUE='#'
 
19704
  BUILD_XJT_FALSE=
 
19705
fi
 
19706
 
 
19707
if test "x$jpeg_ok" != xyes; then
 
19708
  have_xjt="no (no JPEG library)"
 
19709
elif test "x$os_win32" = xyes; then
 
19710
  have_xjt="no (not built on Windows)"
 
19711
else
 
19712
  have_xjt=yes
 
19713
fi
 
19714
 
 
19715
 
 
19716
################
 
19717
# Check for libz
 
19718
################
 
19719
 
 
19720
have_zlib=yes
 
19721
if test -z "$Z_LIBS"; then
 
19722
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
 
19723
$as_echo_n "checking for gzsetparams in -lz... " >&6; }
 
19724
if ${ac_cv_lib_z_gzsetparams+:} false; then :
 
19725
  $as_echo_n "(cached) " >&6
 
19726
else
 
19727
  ac_check_lib_save_LIBS=$LIBS
 
19728
LIBS="-lz  $LIBS"
 
19729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19730
/* end confdefs.h.  */
 
19731
 
 
19732
/* Override any GCC internal prototype to avoid an error.
 
19733
   Use char because int might match the return type of a GCC
 
19734
   builtin and then its argument prototype would still apply.  */
 
19735
#ifdef __cplusplus
 
19736
extern "C"
 
19737
#endif
 
19738
char gzsetparams ();
 
19739
int
 
19740
main ()
 
19741
{
 
19742
return gzsetparams ();
 
19743
  ;
 
19744
  return 0;
 
19745
}
 
19746
_ACEOF
 
19747
if ac_fn_c_try_link "$LINENO"; then :
 
19748
  ac_cv_lib_z_gzsetparams=yes
 
19749
else
 
19750
  ac_cv_lib_z_gzsetparams=no
 
19751
fi
 
19752
rm -f core conftest.err conftest.$ac_objext \
 
19753
    conftest$ac_exeext conftest.$ac_ext
 
19754
LIBS=$ac_check_lib_save_LIBS
 
19755
fi
 
19756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
 
19757
$as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
 
19758
if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
 
19759
  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
 
19760
if test "x$ac_cv_header_zlib_h" = xyes; then :
 
19761
  FILE_PSP='file-psp$(EXEEXT)'; Z_LIBS='-lz'
 
19762
else
 
19763
  have_zlib="no (ZLIB header files not found)"
 
19764
fi
 
19765
 
 
19766
 
 
19767
else
 
19768
  have_zlib="no (ZLIB library not found)"
 
19769
fi
 
19770
 
 
19771
fi
 
19772
 
 
19773
if test "x$have_zlib" = xyes; then
 
19774
  MIME_TYPES="$MIME_TYPES;image/x-psp"
 
19775
fi
 
19776
 
 
19777
 
 
19778
 
 
19779
 if test "x$have_zlib" = xyes; then
 
19780
  HAVE_Z_TRUE=
 
19781
  HAVE_Z_FALSE='#'
 
19782
else
 
19783
  HAVE_Z_TRUE='#'
 
19784
  HAVE_Z_FALSE=
 
19785
fi
 
19786
 
 
19787
 
 
19788
 
 
19789
 
 
19790
####################
 
19791
# Check for libbzip2
 
19792
####################
 
19793
 
 
19794
 
 
19795
# Check whether --with-bzip2 was given.
 
19796
if test "${with_bzip2+set}" = set; then :
 
19797
  withval=$with_bzip2;
 
19798
fi
 
19799
 
 
19800
 
 
19801
have_libbzip2=no
 
19802
if test "x$with_bzip2" != xno; then
 
19803
  have_libbzip2=yes
 
19804
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
 
19805
$as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
 
19806
if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
 
19807
  $as_echo_n "(cached) " >&6
 
19808
else
 
19809
  ac_check_lib_save_LIBS=$LIBS
 
19810
LIBS="-lbz2  $LIBS"
 
19811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19812
/* end confdefs.h.  */
 
19813
 
 
19814
/* Override any GCC internal prototype to avoid an error.
 
19815
   Use char because int might match the return type of a GCC
 
19816
   builtin and then its argument prototype would still apply.  */
 
19817
#ifdef __cplusplus
 
19818
extern "C"
 
19819
#endif
 
19820
char BZ2_bzCompress ();
 
19821
int
 
19822
main ()
 
19823
{
 
19824
return BZ2_bzCompress ();
 
19825
  ;
 
19826
  return 0;
 
19827
}
 
19828
_ACEOF
 
19829
if ac_fn_c_try_link "$LINENO"; then :
 
19830
  ac_cv_lib_bz2_BZ2_bzCompress=yes
 
19831
else
 
19832
  ac_cv_lib_bz2_BZ2_bzCompress=no
 
19833
fi
 
19834
rm -f core conftest.err conftest.$ac_objext \
 
19835
    conftest$ac_exeext conftest.$ac_ext
 
19836
LIBS=$ac_check_lib_save_LIBS
 
19837
fi
 
19838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
 
19839
$as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
 
19840
if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
 
19841
  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
 
19842
if test "x$ac_cv_header_bzlib_h" = xyes; then :
 
19843
  BZIP2_LIBS='-lbz2'
 
19844
else
 
19845
  have_libbzip2="no (libbzip2 header files not found)"
 
19846
fi
 
19847
 
 
19848
 
 
19849
else
 
19850
  have_libbzip2="no (libbzip2 library not found)"
 
19851
fi
 
19852
 
 
19853
  if test "x$have_libbzip2" != xyes -a "x$with_bzip2" = xyes; then
 
19854
    as_fn_error $? "
 
19855
*** Checks for bzip2 library failed. You can build without it by passing
 
19856
*** --without-bzip2 to configure but you won't be able to use compressed files then." "$LINENO" 5
 
19857
  fi
 
19858
fi
 
19859
 
 
19860
 if test "x$have_libbzip2" = xyes; then
 
19861
  HAVE_BZIP2_TRUE=
 
19862
  HAVE_BZIP2_FALSE='#'
 
19863
else
 
19864
  HAVE_BZIP2_TRUE='#'
 
19865
  HAVE_BZIP2_FALSE=
 
19866
fi
 
19867
 
 
19868
 
 
19869
 
 
19870
have_compressor=no
 
19871
if test "x$have_zlib" = xyes && test "x$have_libbzip2" = xyes; then
 
19872
   have_compressor=yes
 
19873
fi
 
19874
 
 
19875
 
 
19876
###############################
 
19877
# Check for Ghostscript library
 
19878
###############################
 
19879
 
 
19880
 
 
19881
# Check whether --with-gs was given.
 
19882
if test "${with_gs+set}" = set; then :
 
19883
  withval=$with_gs;
 
19884
fi
 
19885
 
 
19886
 
 
19887
have_gs=no
 
19888
if test "x$with_gs" != xno; then
 
19889
  have_gs=yes
 
19890
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
 
19891
$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
 
19892
if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
 
19893
  $as_echo_n "(cached) " >&6
 
19894
else
 
19895
  ac_check_lib_save_LIBS=$LIBS
 
19896
LIBS="-lgs  $LIBS"
 
19897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19898
/* end confdefs.h.  */
 
19899
 
 
19900
/* Override any GCC internal prototype to avoid an error.
 
19901
   Use char because int might match the return type of a GCC
 
19902
   builtin and then its argument prototype would still apply.  */
 
19903
#ifdef __cplusplus
 
19904
extern "C"
 
19905
#endif
 
19906
char gsapi_new_instance ();
 
19907
int
 
19908
main ()
 
19909
{
 
19910
return gsapi_new_instance ();
 
19911
  ;
 
19912
  return 0;
 
19913
}
 
19914
_ACEOF
 
19915
if ac_fn_c_try_link "$LINENO"; then :
 
19916
  ac_cv_lib_gs_gsapi_new_instance=yes
 
19917
else
 
19918
  ac_cv_lib_gs_gsapi_new_instance=no
 
19919
fi
 
19920
rm -f core conftest.err conftest.$ac_objext \
 
19921
    conftest$ac_exeext conftest.$ac_ext
 
19922
LIBS=$ac_check_lib_save_LIBS
 
19923
fi
 
19924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
 
19925
$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
 
19926
if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
 
19927
  ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
 
19928
if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
 
19929
  FILE_PS='file-ps$(EXEEXT)'; GS_LIBS='-lgs'
 
19930
else
 
19931
  have_gs="no (Ghostscript header files not found)"
 
19932
fi
 
19933
 
 
19934
 
 
19935
else
 
19936
  have_gs="no (Ghostscript library not found)"
 
19937
fi
 
19938
 
 
19939
  if test "x$have_gs" != xyes -a "x$with_gs" = xyes; then
 
19940
    as_fn_error $? "
 
19941
*** Checks for Ghostscript library failed. You can build without it by passing
 
19942
*** --without-gs to configure but you won't be able to use Postscript files then." "$LINENO" 5
 
19943
  fi
 
19944
fi
 
19945
 
 
19946
 
 
19947
 if test "x$have_gs" = xyes; then
 
19948
  HAVE_GS_TRUE=
 
19949
  HAVE_GS_FALSE='#'
 
19950
else
 
19951
  HAVE_GS_TRUE='#'
 
19952
  HAVE_GS_FALSE=
 
19953
fi
 
19954
 
 
19955
 
 
19956
 
 
19957
 
 
19958
##################
 
19959
# Check for libpng
 
19960
##################
 
19961
 
 
19962
 
 
19963
# Check whether --with-libpng was given.
 
19964
if test "${with_libpng+set}" = set; then :
 
19965
  withval=$with_libpng;
 
19966
fi
 
19967
 
 
19968
 
 
19969
have_libpng=no
 
19970
if test "x$with_libpng" != xno; then
 
19971
  have_libpng=yes
 
19972
 
 
19973
pkg_failed=no
 
19974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
 
19975
$as_echo_n "checking for PNG... " >&6; }
 
19976
 
 
19977
if test -n "$PNG_CFLAGS"; then
 
19978
    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
 
19979
 elif test -n "$PKG_CONFIG"; then
 
19980
    if test -n "$PKG_CONFIG" && \
 
19981
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.37\""; } >&5
 
19982
  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.37") 2>&5
 
19983
  ac_status=$?
 
19984
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19985
  test $ac_status = 0; }; then
 
19986
  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.37" 2>/dev/null`
 
19987
                      test "x$?" != "x0" && pkg_failed=yes
 
19988
else
 
19989
  pkg_failed=yes
 
19990
fi
 
19991
 else
 
19992
    pkg_failed=untried
 
19993
fi
 
19994
if test -n "$PNG_LIBS"; then
 
19995
    pkg_cv_PNG_LIBS="$PNG_LIBS"
 
19996
 elif test -n "$PKG_CONFIG"; then
 
19997
    if test -n "$PKG_CONFIG" && \
 
19998
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.37\""; } >&5
 
19999
  ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.37") 2>&5
 
20000
  ac_status=$?
 
20001
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20002
  test $ac_status = 0; }; then
 
20003
  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.37" 2>/dev/null`
 
20004
                      test "x$?" != "x0" && pkg_failed=yes
 
20005
else
 
20006
  pkg_failed=yes
 
20007
fi
 
20008
 else
 
20009
    pkg_failed=untried
 
20010
fi
 
20011
 
 
20012
 
 
20013
 
 
20014
if test $pkg_failed = yes; then
 
20015
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20016
$as_echo "no" >&6; }
 
20017
 
 
20018
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20019
        _pkg_short_errors_supported=yes
 
20020
else
 
20021
        _pkg_short_errors_supported=no
 
20022
fi
 
20023
        if test $_pkg_short_errors_supported = yes; then
 
20024
                PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.2.37" 2>&1`
 
20025
        else
 
20026
                PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.2.37" 2>&1`
 
20027
        fi
 
20028
        # Put the nasty error message in config.log where it belongs
 
20029
        echo "$PNG_PKG_ERRORS" >&5
 
20030
 
 
20031
        have_libpng="no (libpng not found)"
 
20032
     as_fn_error $? "
 
20033
*** Checks for PNG library failed. You can build without it by passing
 
20034
*** --without-libpng to configure but you won't be able to use PNGs then." "$LINENO" 5
 
20035
elif test $pkg_failed = untried; then
 
20036
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20037
$as_echo "no" >&6; }
 
20038
        have_libpng="no (libpng not found)"
 
20039
     as_fn_error $? "
 
20040
*** Checks for PNG library failed. You can build without it by passing
 
20041
*** --without-libpng to configure but you won't be able to use PNGs then." "$LINENO" 5
 
20042
else
 
20043
        PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
 
20044
        PNG_LIBS=$pkg_cv_PNG_LIBS
 
20045
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20046
$as_echo "yes" >&6; }
 
20047
        FILE_PNG='file-png$(EXEEXT)'
 
20048
fi
 
20049
fi
 
20050
 
 
20051
if test "x$have_libpng" = xyes; then
 
20052
  MIME_TYPES="$MIME_TYPES;image/png;image/x-icon"
 
20053
  PNG_CFLAGS="$PNG_CFLAGS -DPNG_PEDANTIC_WARNINGS"
 
20054
fi
 
20055
 
 
20056
 
 
20057
 
 
20058
 if test "x$have_libpng" = xyes; then
 
20059
  HAVE_PNG_TRUE=
 
20060
  HAVE_PNG_FALSE='#'
 
20061
else
 
20062
  HAVE_PNG_TRUE='#'
 
20063
  HAVE_PNG_FALSE=
 
20064
fi
 
20065
 
 
20066
 
 
20067
 
 
20068
##################
 
20069
# Check for libmng
 
20070
##################
 
20071
 
 
20072
 
 
20073
# Check whether --with-libmng was given.
 
20074
if test "${with_libmng+set}" = set; then :
 
20075
  withval=$with_libmng;
 
20076
fi
 
20077
 
 
20078
 
 
20079
have_libmng=no
 
20080
if test "x$with_libmng" != xno && test -z "$MNG_LIBS" &&
 
20081
   test -n "$PNG_LIBS" && test -n "$JPEG_LIBS" && test -n "$Z_LIBS"; then
 
20082
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mng_create in -lmng" >&5
 
20083
$as_echo_n "checking for mng_create in -lmng... " >&6; }
 
20084
if ${ac_cv_lib_mng_mng_create+:} false; then :
 
20085
  $as_echo_n "(cached) " >&6
 
20086
else
 
20087
  ac_check_lib_save_LIBS=$LIBS
 
20088
LIBS="-lmng -lz -lm $LIBS"
 
20089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20090
/* end confdefs.h.  */
 
20091
 
 
20092
/* Override any GCC internal prototype to avoid an error.
 
20093
   Use char because int might match the return type of a GCC
 
20094
   builtin and then its argument prototype would still apply.  */
 
20095
#ifdef __cplusplus
 
20096
extern "C"
 
20097
#endif
 
20098
char mng_create ();
 
20099
int
 
20100
main ()
 
20101
{
 
20102
return mng_create ();
 
20103
  ;
 
20104
  return 0;
 
20105
}
 
20106
_ACEOF
 
20107
if ac_fn_c_try_link "$LINENO"; then :
 
20108
  ac_cv_lib_mng_mng_create=yes
 
20109
else
 
20110
  ac_cv_lib_mng_mng_create=no
 
20111
fi
 
20112
rm -f core conftest.err conftest.$ac_objext \
 
20113
    conftest$ac_exeext conftest.$ac_ext
 
20114
LIBS=$ac_check_lib_save_LIBS
 
20115
fi
 
20116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mng_mng_create" >&5
 
20117
$as_echo "$ac_cv_lib_mng_mng_create" >&6; }
 
20118
if test "x$ac_cv_lib_mng_mng_create" = xyes; then :
 
20119
  ac_fn_c_check_header_mongrel "$LINENO" "libmng.h" "ac_cv_header_libmng_h" "$ac_includes_default"
 
20120
if test "x$ac_cv_header_libmng_h" = xyes; then :
 
20121
  mng_ok=yes
 
20122
fi
 
20123
 
 
20124
 
 
20125
else
 
20126
  have_libmng="no (MNG library not found)"
 
20127
fi
 
20128
 
 
20129
  if test "$mng_ok" = yes; then
 
20130
    have_libmng=yes
 
20131
    FILE_MNG='file-mng$(EXEEXT)'; MNG_LIBS="-lmng $JPEG_LIBS $PNG_LIBS"; MNG_CFLAGS="$PNG_CFLAGS"
 
20132
  else
 
20133
    have_libmng="no (MNG header file not found)"
 
20134
  fi
 
20135
fi
 
20136
 
 
20137
 
 
20138
 
 
20139
 
 
20140
 
 
20141
 
 
20142
############################################################
 
20143
# libexif: Library to allow exif tags to be read from, and
 
20144
# saved to, jpeg files. Currently, this permits exif data to
 
20145
# avoid destruction, but no data modification is performed.
 
20146
############################################################
 
20147
 
 
20148
 
 
20149
# Check whether --with-libexif was given.
 
20150
if test "${with_libexif+set}" = set; then :
 
20151
  withval=$with_libexif;
 
20152
fi
 
20153
 
 
20154
 
 
20155
have_libexif=no
 
20156
if test "x$with_libexif" != xno && test -z "$EXIF_LIBS" && test -n "$JPEG_LIBS"; then
 
20157
  have_libexif=yes
 
20158
 
 
20159
pkg_failed=no
 
20160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXIF" >&5
 
20161
$as_echo_n "checking for EXIF... " >&6; }
 
20162
 
 
20163
if test -n "$EXIF_CFLAGS"; then
 
20164
    pkg_cv_EXIF_CFLAGS="$EXIF_CFLAGS"
 
20165
 elif test -n "$PKG_CONFIG"; then
 
20166
    if test -n "$PKG_CONFIG" && \
 
20167
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.15\""; } >&5
 
20168
  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.15") 2>&5
 
20169
  ac_status=$?
 
20170
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20171
  test $ac_status = 0; }; then
 
20172
  pkg_cv_EXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.15" 2>/dev/null`
 
20173
                      test "x$?" != "x0" && pkg_failed=yes
 
20174
else
 
20175
  pkg_failed=yes
 
20176
fi
 
20177
 else
 
20178
    pkg_failed=untried
 
20179
fi
 
20180
if test -n "$EXIF_LIBS"; then
 
20181
    pkg_cv_EXIF_LIBS="$EXIF_LIBS"
 
20182
 elif test -n "$PKG_CONFIG"; then
 
20183
    if test -n "$PKG_CONFIG" && \
 
20184
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.15\""; } >&5
 
20185
  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.15") 2>&5
 
20186
  ac_status=$?
 
20187
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20188
  test $ac_status = 0; }; then
 
20189
  pkg_cv_EXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.15" 2>/dev/null`
 
20190
                      test "x$?" != "x0" && pkg_failed=yes
 
20191
else
 
20192
  pkg_failed=yes
 
20193
fi
 
20194
 else
 
20195
    pkg_failed=untried
 
20196
fi
 
20197
 
 
20198
 
 
20199
 
 
20200
if test $pkg_failed = yes; then
 
20201
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20202
$as_echo "no" >&6; }
 
20203
 
 
20204
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20205
        _pkg_short_errors_supported=yes
 
20206
else
 
20207
        _pkg_short_errors_supported=no
 
20208
fi
 
20209
        if test $_pkg_short_errors_supported = yes; then
 
20210
                EXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexif >= 0.6.15" 2>&1`
 
20211
        else
 
20212
                EXIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexif >= 0.6.15" 2>&1`
 
20213
        fi
 
20214
        # Put the nasty error message in config.log where it belongs
 
20215
        echo "$EXIF_PKG_ERRORS" >&5
 
20216
 
 
20217
        have_libexif="no (libexif not found or too old)"
 
20218
elif test $pkg_failed = untried; then
 
20219
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20220
$as_echo "no" >&6; }
 
20221
        have_libexif="no (libexif not found or too old)"
 
20222
else
 
20223
        EXIF_CFLAGS=$pkg_cv_EXIF_CFLAGS
 
20224
        EXIF_LIBS=$pkg_cv_EXIF_LIBS
 
20225
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20226
$as_echo "yes" >&6; }
 
20227
 
 
20228
$as_echo "#define HAVE_LIBEXIF 1" >>confdefs.h
 
20229
 
 
20230
fi
 
20231
fi
 
20232
 
 
20233
 
 
20234
 
 
20235
 
 
20236
 if test "x$have_libexif" = xyes; then
 
20237
  HAVE_LIBEXIF_TRUE=
 
20238
  HAVE_LIBEXIF_FALSE='#'
 
20239
else
 
20240
  HAVE_LIBEXIF_TRUE='#'
 
20241
  HAVE_LIBEXIF_FALSE=
 
20242
fi
 
20243
 
 
20244
 
 
20245
 
 
20246
#################
 
20247
# Check for libaa
 
20248
#################
 
20249
 
 
20250
 
 
20251
# Check whether --with-aa was given.
 
20252
if test "${with_aa+set}" = set; then :
 
20253
  withval=$with_aa;
 
20254
fi
 
20255
 
 
20256
 
 
20257
have_libaa=no
 
20258
if test "x$with_aa" != xno && test -z "$AA_LIBS"; then
 
20259
  have_libaa=yes
 
20260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aa_printf in -laa" >&5
 
20261
$as_echo_n "checking for aa_printf in -laa... " >&6; }
 
20262
if ${ac_cv_lib_aa_aa_printf+:} false; then :
 
20263
  $as_echo_n "(cached) " >&6
 
20264
else
 
20265
  ac_check_lib_save_LIBS=$LIBS
 
20266
LIBS="-laa  $LIBS"
 
20267
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20268
/* end confdefs.h.  */
 
20269
 
 
20270
/* Override any GCC internal prototype to avoid an error.
 
20271
   Use char because int might match the return type of a GCC
 
20272
   builtin and then its argument prototype would still apply.  */
 
20273
#ifdef __cplusplus
 
20274
extern "C"
 
20275
#endif
 
20276
char aa_printf ();
 
20277
int
 
20278
main ()
 
20279
{
 
20280
return aa_printf ();
 
20281
  ;
 
20282
  return 0;
 
20283
}
 
20284
_ACEOF
 
20285
if ac_fn_c_try_link "$LINENO"; then :
 
20286
  ac_cv_lib_aa_aa_printf=yes
 
20287
else
 
20288
  ac_cv_lib_aa_aa_printf=no
 
20289
fi
 
20290
rm -f core conftest.err conftest.$ac_objext \
 
20291
    conftest$ac_exeext conftest.$ac_ext
 
20292
LIBS=$ac_check_lib_save_LIBS
 
20293
fi
 
20294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aa_aa_printf" >&5
 
20295
$as_echo "$ac_cv_lib_aa_aa_printf" >&6; }
 
20296
if test "x$ac_cv_lib_aa_aa_printf" = xyes; then :
 
20297
  ac_fn_c_check_header_mongrel "$LINENO" "aalib.h" "ac_cv_header_aalib_h" "$ac_includes_default"
 
20298
if test "x$ac_cv_header_aalib_h" = xyes; then :
 
20299
  FILE_AA='file-aa$(EXEEXT)'; AA_LIBS='-laa'
 
20300
else
 
20301
  have_libaa="no (AA header file not found)"
 
20302
fi
 
20303
 
 
20304
 
 
20305
else
 
20306
  have_libaa="no (AA library not found)"
 
20307
fi
 
20308
 
 
20309
fi
 
20310
 
 
20311
 
 
20312
 
 
20313
 
 
20314
 
 
20315
##################
 
20316
# Check for libxpm
 
20317
##################
 
20318
 
 
20319
 
 
20320
# Check whether --with-libxpm was given.
 
20321
if test "${with_libxpm+set}" = set; then :
 
20322
  withval=$with_libxpm;
 
20323
fi
 
20324
 
 
20325
 
 
20326
gimp_save_CFLAGS="$CFLAGS"
 
20327
CFLAGS="$CFLAGS $X_CFLAGS"
 
20328
gimp_save_LDFLAGS="$LDFLAGS"
 
20329
LDFLAGS="$LDFLAGS $X_LIBS"
 
20330
if test "$gdk_target" = x11; then
 
20331
  lib_X11=-lX11
 
20332
fi
 
20333
have_libxpm=no
 
20334
if test "x$with_libxpm" != xno && test -z "$XPM_LIBS"; then
 
20335
  have_libxpm=yes
 
20336
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5
 
20337
$as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; }
 
20338
if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then :
 
20339
  $as_echo_n "(cached) " >&6
 
20340
else
 
20341
  ac_check_lib_save_LIBS=$LIBS
 
20342
LIBS="-lXpm $X_PRE_LIBS $lib_X11 $LIBS"
 
20343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20344
/* end confdefs.h.  */
 
20345
 
 
20346
/* Override any GCC internal prototype to avoid an error.
 
20347
   Use char because int might match the return type of a GCC
 
20348
   builtin and then its argument prototype would still apply.  */
 
20349
#ifdef __cplusplus
 
20350
extern "C"
 
20351
#endif
 
20352
char XpmReadFileToXpmImage ();
 
20353
int
 
20354
main ()
 
20355
{
 
20356
return XpmReadFileToXpmImage ();
 
20357
  ;
 
20358
  return 0;
 
20359
}
 
20360
_ACEOF
 
20361
if ac_fn_c_try_link "$LINENO"; then :
 
20362
  ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes
 
20363
else
 
20364
  ac_cv_lib_Xpm_XpmReadFileToXpmImage=no
 
20365
fi
 
20366
rm -f core conftest.err conftest.$ac_objext \
 
20367
    conftest$ac_exeext conftest.$ac_ext
 
20368
LIBS=$ac_check_lib_save_LIBS
 
20369
fi
 
20370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5
 
20371
$as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; }
 
20372
if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then :
 
20373
  ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
 
20374
if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
 
20375
  FILE_XPM='file-xpm$(EXEEXT)'; XPM_LIBS="$X_LIBS $X_PRE_LIBS $lib_X11 -lXpm"
 
20376
else
 
20377
  have_libxpm="no (XPM header file not found)"
 
20378
fi
 
20379
 
 
20380
 
 
20381
else
 
20382
  have_libxpm="no (XPM library not found)"
 
20383
fi
 
20384
 
 
20385
fi
 
20386
CFLAGS="$gimp_save_CFLAGS"
 
20387
LDFLAGS="$gimp_save_LDFLAGS"
 
20388
 
 
20389
if test "x$have_libxpm" = xyes; then
 
20390
  MIME_TYPES="$MIME_TYPES;image/x-xpixmap"
 
20391
fi
 
20392
 
 
20393
 
 
20394
 
 
20395
 
 
20396
 
 
20397
##################
 
20398
# Check for webkit
 
20399
##################
 
20400
 
 
20401
 
 
20402
# Check whether --with-webkit was given.
 
20403
if test "${with_webkit+set}" = set; then :
 
20404
  withval=$with_webkit;
 
20405
fi
 
20406
 
 
20407
 
 
20408
have_webkit=no
 
20409
if test "x$with_webkit" != xno; then
 
20410
 
 
20411
pkg_failed=no
 
20412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
 
20413
$as_echo_n "checking for WEBKIT... " >&6; }
 
20414
 
 
20415
if test -n "$WEBKIT_CFLAGS"; then
 
20416
    pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
 
20417
 elif test -n "$PKG_CONFIG"; then
 
20418
    if test -n "$PKG_CONFIG" && \
 
20419
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0 >= 1.6.1\""; } >&5
 
20420
  ($PKG_CONFIG --exists --print-errors "webkit-1.0 >= 1.6.1") 2>&5
 
20421
  ac_status=$?
 
20422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20423
  test $ac_status = 0; }; then
 
20424
  pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0 >= 1.6.1" 2>/dev/null`
 
20425
                      test "x$?" != "x0" && pkg_failed=yes
 
20426
else
 
20427
  pkg_failed=yes
 
20428
fi
 
20429
 else
 
20430
    pkg_failed=untried
 
20431
fi
 
20432
if test -n "$WEBKIT_LIBS"; then
 
20433
    pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
 
20434
 elif test -n "$PKG_CONFIG"; then
 
20435
    if test -n "$PKG_CONFIG" && \
 
20436
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0 >= 1.6.1\""; } >&5
 
20437
  ($PKG_CONFIG --exists --print-errors "webkit-1.0 >= 1.6.1") 2>&5
 
20438
  ac_status=$?
 
20439
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20440
  test $ac_status = 0; }; then
 
20441
  pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0 >= 1.6.1" 2>/dev/null`
 
20442
                      test "x$?" != "x0" && pkg_failed=yes
 
20443
else
 
20444
  pkg_failed=yes
 
20445
fi
 
20446
 else
 
20447
    pkg_failed=untried
 
20448
fi
 
20449
 
 
20450
 
 
20451
 
 
20452
if test $pkg_failed = yes; then
 
20453
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20454
$as_echo "no" >&6; }
 
20455
 
 
20456
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20457
        _pkg_short_errors_supported=yes
 
20458
else
 
20459
        _pkg_short_errors_supported=no
 
20460
fi
 
20461
        if test $_pkg_short_errors_supported = yes; then
 
20462
                WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-1.0 >= 1.6.1" 2>&1`
 
20463
        else
 
20464
                WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit-1.0 >= 1.6.1" 2>&1`
 
20465
        fi
 
20466
        # Put the nasty error message in config.log where it belongs
 
20467
        echo "$WEBKIT_PKG_ERRORS" >&5
 
20468
 
 
20469
        have_webkit="no (WebKit not found)"
 
20470
elif test $pkg_failed = untried; then
 
20471
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20472
$as_echo "no" >&6; }
 
20473
        have_webkit="no (WebKit not found)"
 
20474
else
 
20475
        WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
 
20476
        WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
 
20477
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20478
$as_echo "yes" >&6; }
 
20479
        WEB_PAGE='web-page$(EXEEXT)'
 
20480
    have_webkit=yes
 
20481
fi
 
20482
else
 
20483
  have_webkit="no (WebKit support disabled)"
 
20484
fi
 
20485
 
 
20486
 
 
20487
 if test "x$have_webkit" = xyes; then
 
20488
  HAVE_WEBKIT_TRUE=
 
20489
  HAVE_WEBKIT_FALSE='#'
 
20490
else
 
20491
  HAVE_WEBKIT_TRUE='#'
 
20492
  HAVE_WEBKIT_FALSE=
 
20493
fi
 
20494
 
 
20495
 
 
20496
 
 
20497
###################
 
20498
# Check for librsvg
 
20499
###################
 
20500
 
 
20501
 
 
20502
# Check whether --with-librsvg was given.
 
20503
if test "${with_librsvg+set}" = set; then :
 
20504
  withval=$with_librsvg;
 
20505
fi
 
20506
 
 
20507
 
 
20508
have_librsvg=no
 
20509
if test "x$with_librsvg" != xno; then
 
20510
  have_librsvg=yes
 
20511
 
 
20512
pkg_failed=no
 
20513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVG" >&5
 
20514
$as_echo_n "checking for SVG... " >&6; }
 
20515
 
 
20516
if test -n "$SVG_CFLAGS"; then
 
20517
    pkg_cv_SVG_CFLAGS="$SVG_CFLAGS"
 
20518
 elif test -n "$PKG_CONFIG"; then
 
20519
    if test -n "$PKG_CONFIG" && \
 
20520
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.36.0\""; } >&5
 
20521
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.36.0") 2>&5
 
20522
  ac_status=$?
 
20523
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20524
  test $ac_status = 0; }; then
 
20525
  pkg_cv_SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.36.0" 2>/dev/null`
 
20526
                      test "x$?" != "x0" && pkg_failed=yes
 
20527
else
 
20528
  pkg_failed=yes
 
20529
fi
 
20530
 else
 
20531
    pkg_failed=untried
 
20532
fi
 
20533
if test -n "$SVG_LIBS"; then
 
20534
    pkg_cv_SVG_LIBS="$SVG_LIBS"
 
20535
 elif test -n "$PKG_CONFIG"; then
 
20536
    if test -n "$PKG_CONFIG" && \
 
20537
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.36.0\""; } >&5
 
20538
  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.36.0") 2>&5
 
20539
  ac_status=$?
 
20540
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20541
  test $ac_status = 0; }; then
 
20542
  pkg_cv_SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.36.0" 2>/dev/null`
 
20543
                      test "x$?" != "x0" && pkg_failed=yes
 
20544
else
 
20545
  pkg_failed=yes
 
20546
fi
 
20547
 else
 
20548
    pkg_failed=untried
 
20549
fi
 
20550
 
 
20551
 
 
20552
 
 
20553
if test $pkg_failed = yes; then
 
20554
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20555
$as_echo "no" >&6; }
 
20556
 
 
20557
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20558
        _pkg_short_errors_supported=yes
 
20559
else
 
20560
        _pkg_short_errors_supported=no
 
20561
fi
 
20562
        if test $_pkg_short_errors_supported = yes; then
 
20563
                SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.36.0" 2>&1`
 
20564
        else
 
20565
                SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.36.0" 2>&1`
 
20566
        fi
 
20567
        # Put the nasty error message in config.log where it belongs
 
20568
        echo "$SVG_PKG_ERRORS" >&5
 
20569
 
 
20570
        have_librsvg="no (librsvg not found)"
 
20571
elif test $pkg_failed = untried; then
 
20572
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20573
$as_echo "no" >&6; }
 
20574
        have_librsvg="no (librsvg not found)"
 
20575
else
 
20576
        SVG_CFLAGS=$pkg_cv_SVG_CFLAGS
 
20577
        SVG_LIBS=$pkg_cv_SVG_LIBS
 
20578
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20579
$as_echo "yes" >&6; }
 
20580
        FILE_SVG='file-svg$(EXEEXT)'
 
20581
fi
 
20582
else
 
20583
   have_librsvg="no (librsvg support disabled)"
 
20584
fi
 
20585
 
 
20586
if test "x$have_librsvg" = xyes; then
 
20587
  MIME_TYPES="$MIME_TYPES;image/svg+xml"
 
20588
fi
 
20589
 
 
20590
 
 
20591
 
 
20592
 
 
20593
####################################
 
20594
# Allow to disable the print plug-in
 
20595
####################################
 
20596
 
 
20597
 
 
20598
# Check whether --with-print was given.
 
20599
if test "${with_print+set}" = set; then :
 
20600
  withval=$with_print;
 
20601
fi
 
20602
 
 
20603
 
 
20604
enable_print="no (disabled)"
 
20605
if test "x$with_print" != xno; then
 
20606
  enable_print="yes"
 
20607
fi
 
20608
 
 
20609
 if test "x$enable_print" = xyes; then
 
20610
  BUILD_PRINT_TRUE=
 
20611
  BUILD_PRINT_FALSE='#'
 
20612
else
 
20613
  BUILD_PRINT_TRUE='#'
 
20614
  BUILD_PRINT_FALSE=
 
20615
fi
 
20616
 
 
20617
 
 
20618
 
 
20619
######################
 
20620
# Check for libpoppler
 
20621
######################
 
20622
 
 
20623
 
 
20624
# Check whether --with-poppler was given.
 
20625
if test "${with_poppler+set}" = set; then :
 
20626
  withval=$with_poppler;
 
20627
fi
 
20628
 
 
20629
 
 
20630
have_poppler=no
 
20631
if test "x$with_poppler" != xno; then
 
20632
 
 
20633
pkg_failed=no
 
20634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
 
20635
$as_echo_n "checking for POPPLER... " >&6; }
 
20636
 
 
20637
if test -n "$POPPLER_CFLAGS"; then
 
20638
    pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
 
20639
 elif test -n "$PKG_CONFIG"; then
 
20640
    if test -n "$PKG_CONFIG" && \
 
20641
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.12.4 gthread-2.0\""; } >&5
 
20642
  ($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.12.4 gthread-2.0") 2>&5
 
20643
  ac_status=$?
 
20644
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20645
  test $ac_status = 0; }; then
 
20646
  pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib >= 0.12.4 gthread-2.0" 2>/dev/null`
 
20647
                      test "x$?" != "x0" && pkg_failed=yes
 
20648
else
 
20649
  pkg_failed=yes
 
20650
fi
 
20651
 else
 
20652
    pkg_failed=untried
 
20653
fi
 
20654
if test -n "$POPPLER_LIBS"; then
 
20655
    pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
 
20656
 elif test -n "$PKG_CONFIG"; then
 
20657
    if test -n "$PKG_CONFIG" && \
 
20658
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.12.4 gthread-2.0\""; } >&5
 
20659
  ($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.12.4 gthread-2.0") 2>&5
 
20660
  ac_status=$?
 
20661
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20662
  test $ac_status = 0; }; then
 
20663
  pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler-glib >= 0.12.4 gthread-2.0" 2>/dev/null`
 
20664
                      test "x$?" != "x0" && pkg_failed=yes
 
20665
else
 
20666
  pkg_failed=yes
 
20667
fi
 
20668
 else
 
20669
    pkg_failed=untried
 
20670
fi
 
20671
 
 
20672
 
 
20673
 
 
20674
if test $pkg_failed = yes; then
 
20675
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20676
$as_echo "no" >&6; }
 
20677
 
 
20678
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20679
        _pkg_short_errors_supported=yes
 
20680
else
 
20681
        _pkg_short_errors_supported=no
 
20682
fi
 
20683
        if test $_pkg_short_errors_supported = yes; then
 
20684
                POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "poppler-glib >= 0.12.4 gthread-2.0" 2>&1`
 
20685
        else
 
20686
                POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "poppler-glib >= 0.12.4 gthread-2.0" 2>&1`
 
20687
        fi
 
20688
        # Put the nasty error message in config.log where it belongs
 
20689
        echo "$POPPLER_PKG_ERRORS" >&5
 
20690
 
 
20691
        have_poppler="Using PostScript plug-in (libpoppler not found)"
 
20692
elif test $pkg_failed = untried; then
 
20693
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20694
$as_echo "no" >&6; }
 
20695
        have_poppler="Using PostScript plug-in (libpoppler not found)"
 
20696
else
 
20697
        POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
 
20698
        POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
 
20699
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20700
$as_echo "yes" >&6; }
 
20701
        FILE_PDF_LOAD='file-pdf-load$(EXEEXT)'
 
20702
 
 
20703
$as_echo "#define HAVE_POPPLER 1" >>confdefs.h
 
20704
 
 
20705
    have_poppler=yes
 
20706
fi
 
20707
else
 
20708
  have_poppler="Using PostScript plug-in (libpoppler support disabled)"
 
20709
fi
 
20710
 
 
20711
 
 
20712
 
 
20713
 
 
20714
#####################
 
20715
# Check for cairo-pdf
 
20716
#####################
 
20717
 
 
20718
 
 
20719
# Check whether --with-cairo_pdf was given.
 
20720
if test "${with_cairo_pdf+set}" = set; then :
 
20721
  withval=$with_cairo_pdf;
 
20722
fi
 
20723
 
 
20724
have_cairo_pdf=no
 
20725
if test "x$with_cairo_pdf" != xno; then
 
20726
  have_cairo_pdf=yes
 
20727
 
 
20728
pkg_failed=no
 
20729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_PDF" >&5
 
20730
$as_echo_n "checking for CAIRO_PDF... " >&6; }
 
20731
 
 
20732
if test -n "$CAIRO_PDF_CFLAGS"; then
 
20733
    pkg_cv_CAIRO_PDF_CFLAGS="$CAIRO_PDF_CFLAGS"
 
20734
 elif test -n "$PKG_CONFIG"; then
 
20735
    if test -n "$PKG_CONFIG" && \
 
20736
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-pdf >= 1.10.2\""; } >&5
 
20737
  ($PKG_CONFIG --exists --print-errors "cairo-pdf >= 1.10.2") 2>&5
 
20738
  ac_status=$?
 
20739
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20740
  test $ac_status = 0; }; then
 
20741
  pkg_cv_CAIRO_PDF_CFLAGS=`$PKG_CONFIG --cflags "cairo-pdf >= 1.10.2" 2>/dev/null`
 
20742
                      test "x$?" != "x0" && pkg_failed=yes
 
20743
else
 
20744
  pkg_failed=yes
 
20745
fi
 
20746
 else
 
20747
    pkg_failed=untried
 
20748
fi
 
20749
if test -n "$CAIRO_PDF_LIBS"; then
 
20750
    pkg_cv_CAIRO_PDF_LIBS="$CAIRO_PDF_LIBS"
 
20751
 elif test -n "$PKG_CONFIG"; then
 
20752
    if test -n "$PKG_CONFIG" && \
 
20753
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-pdf >= 1.10.2\""; } >&5
 
20754
  ($PKG_CONFIG --exists --print-errors "cairo-pdf >= 1.10.2") 2>&5
 
20755
  ac_status=$?
 
20756
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20757
  test $ac_status = 0; }; then
 
20758
  pkg_cv_CAIRO_PDF_LIBS=`$PKG_CONFIG --libs "cairo-pdf >= 1.10.2" 2>/dev/null`
 
20759
                      test "x$?" != "x0" && pkg_failed=yes
 
20760
else
 
20761
  pkg_failed=yes
 
20762
fi
 
20763
 else
 
20764
    pkg_failed=untried
 
20765
fi
 
20766
 
 
20767
 
 
20768
 
 
20769
if test $pkg_failed = yes; then
 
20770
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20771
$as_echo "no" >&6; }
 
20772
 
 
20773
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20774
        _pkg_short_errors_supported=yes
 
20775
else
 
20776
        _pkg_short_errors_supported=no
 
20777
fi
 
20778
        if test $_pkg_short_errors_supported = yes; then
 
20779
                CAIRO_PDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-pdf >= 1.10.2" 2>&1`
 
20780
        else
 
20781
                CAIRO_PDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-pdf >= 1.10.2" 2>&1`
 
20782
        fi
 
20783
        # Put the nasty error message in config.log where it belongs
 
20784
        echo "$CAIRO_PDF_PKG_ERRORS" >&5
 
20785
 
 
20786
        have_cairo_pdf="no (cairo-pdf not found)"
 
20787
elif test $pkg_failed = untried; then
 
20788
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20789
$as_echo "no" >&6; }
 
20790
        have_cairo_pdf="no (cairo-pdf not found)"
 
20791
else
 
20792
        CAIRO_PDF_CFLAGS=$pkg_cv_CAIRO_PDF_CFLAGS
 
20793
        CAIRO_PDF_LIBS=$pkg_cv_CAIRO_PDF_LIBS
 
20794
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20795
$as_echo "yes" >&6; }
 
20796
        FILE_PDF_SAVE='file-pdf-save$(EXEEXT)'
 
20797
fi
 
20798
else
 
20799
   have_cairo_pdf="no (cairo-pdf support disabled)"
 
20800
fi
 
20801
 
 
20802
 
 
20803
 
 
20804
## If both poppler and cairo-pdf are enabled then we have complete PDF support
 
20805
if test "x$have_cairo_pdf" = xyes && test "x$have_poppler" = xyes; then
 
20806
  MIME_TYPES="$MIME_TYPES;application/pdf"
 
20807
fi
 
20808
 
 
20809
 
 
20810
################################
 
20811
# Check for gio/gvfs and libcurl
 
20812
################################
 
20813
 
 
20814
uri_plugin=no
 
20815
 
 
20816
 
 
20817
 
 
20818
# Check whether --with-gvfs was given.
 
20819
if test "${with_gvfs+set}" = set; then :
 
20820
  withval=$with_gvfs;
 
20821
fi
 
20822
 
 
20823
 
 
20824
 if test "x$with_gvfs" != xno; then
 
20825
  HAVE_GVFS_TRUE=
 
20826
  HAVE_GVFS_FALSE='#'
 
20827
else
 
20828
  HAVE_GVFS_TRUE='#'
 
20829
  HAVE_GVFS_FALSE=
 
20830
fi
 
20831
 
 
20832
 
 
20833
 
 
20834
 
 
20835
# Check whether --with-libcurl was given.
 
20836
if test "${with_libcurl+set}" = set; then :
 
20837
  withval=$with_libcurl;
 
20838
fi
 
20839
 
 
20840
 
 
20841
have_libcurl="no (disabled)"
 
20842
 
 
20843
if test "x$with_libcurl" != xno; then
 
20844
 
 
20845
 
 
20846
pkg_failed=no
 
20847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
 
20848
$as_echo_n "checking for CURL... " >&6; }
 
20849
 
 
20850
if test -n "$CURL_CFLAGS"; then
 
20851
    pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
 
20852
 elif test -n "$PKG_CONFIG"; then
 
20853
    if test -n "$PKG_CONFIG" && \
 
20854
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.1\""; } >&5
 
20855
  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.1") 2>&5
 
20856
  ac_status=$?
 
20857
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20858
  test $ac_status = 0; }; then
 
20859
  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.15.1" 2>/dev/null`
 
20860
                      test "x$?" != "x0" && pkg_failed=yes
 
20861
else
 
20862
  pkg_failed=yes
 
20863
fi
 
20864
 else
 
20865
    pkg_failed=untried
 
20866
fi
 
20867
if test -n "$CURL_LIBS"; then
 
20868
    pkg_cv_CURL_LIBS="$CURL_LIBS"
 
20869
 elif test -n "$PKG_CONFIG"; then
 
20870
    if test -n "$PKG_CONFIG" && \
 
20871
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.15.1\""; } >&5
 
20872
  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.15.1") 2>&5
 
20873
  ac_status=$?
 
20874
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
20875
  test $ac_status = 0; }; then
 
20876
  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.1" 2>/dev/null`
 
20877
                      test "x$?" != "x0" && pkg_failed=yes
 
20878
else
 
20879
  pkg_failed=yes
 
20880
fi
 
20881
 else
 
20882
    pkg_failed=untried
 
20883
fi
 
20884
 
 
20885
 
 
20886
 
 
20887
if test $pkg_failed = yes; then
 
20888
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20889
$as_echo "no" >&6; }
 
20890
 
 
20891
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20892
        _pkg_short_errors_supported=yes
 
20893
else
 
20894
        _pkg_short_errors_supported=no
 
20895
fi
 
20896
        if test $_pkg_short_errors_supported = yes; then
 
20897
                CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.15.1" 2>&1`
 
20898
        else
 
20899
                CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.15.1" 2>&1`
 
20900
        fi
 
20901
        # Put the nasty error message in config.log where it belongs
 
20902
        echo "$CURL_PKG_ERRORS" >&5
 
20903
 
 
20904
        have_libcurl="no (libcurl not found)"
 
20905
elif test $pkg_failed = untried; then
 
20906
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20907
$as_echo "no" >&6; }
 
20908
        have_libcurl="no (libcurl not found)"
 
20909
else
 
20910
        CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
 
20911
        CURL_LIBS=$pkg_cv_CURL_LIBS
 
20912
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
20913
$as_echo "yes" >&6; }
 
20914
        have_libcurl=yes
 
20915
fi
 
20916
 
 
20917
fi
 
20918
 
 
20919
 if test "x$have_libcurl" = xyes; then
 
20920
  HAVE_LIBCURL_TRUE=
 
20921
  HAVE_LIBCURL_FALSE='#'
 
20922
else
 
20923
  HAVE_LIBCURL_TRUE='#'
 
20924
  HAVE_LIBCURL_FALSE=
 
20925
fi
 
20926
 
 
20927
 
 
20928
 
 
20929
if test "x$with_gvfs" != xno; then
 
20930
  uri_plugin="yes (using GIO/GVfs)"
 
20931
elif test "x$have_libcurl" = xyes; then
 
20932
  uri_plugin="yes (using libcurl)"
 
20933
elif test "x$os_win32" = xno; then
 
20934
  uri_plugin="yes (using wget)"
 
20935
fi
 
20936
 
 
20937
 
 
20938
###################
 
20939
# Check for libwmf2
 
20940
###################
 
20941
 
 
20942
 
 
20943
# Check whether --with-wmf was given.
 
20944
if test "${with_wmf+set}" = set; then :
 
20945
  withval=$with_wmf;
 
20946
fi
 
20947
 
 
20948
 
 
20949
have_libwmf=no
 
20950
if test "x$with_wmf" != xno; then
 
20951
  # Extract the first word of "libwmf-config", so it can be a program name with args.
 
20952
set dummy libwmf-config; ac_word=$2
 
20953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
20954
$as_echo_n "checking for $ac_word... " >&6; }
 
20955
if ${ac_cv_path_WMF_CONFIG+:} false; then :
 
20956
  $as_echo_n "(cached) " >&6
 
20957
else
 
20958
  case $WMF_CONFIG in
 
20959
  [\\/]* | ?:[\\/]*)
 
20960
  ac_cv_path_WMF_CONFIG="$WMF_CONFIG" # Let the user override the test with a path.
 
20961
  ;;
 
20962
  *)
 
20963
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20964
for as_dir in $PATH
 
20965
do
 
20966
  IFS=$as_save_IFS
 
20967
  test -z "$as_dir" && as_dir=.
 
20968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
20969
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20970
    ac_cv_path_WMF_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20972
    break 2
 
20973
  fi
 
20974
done
 
20975
  done
 
20976
IFS=$as_save_IFS
 
20977
 
 
20978
  test -z "$ac_cv_path_WMF_CONFIG" && ac_cv_path_WMF_CONFIG="no"
 
20979
  ;;
 
20980
esac
 
20981
fi
 
20982
WMF_CONFIG=$ac_cv_path_WMF_CONFIG
 
20983
if test -n "$WMF_CONFIG"; then
 
20984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMF_CONFIG" >&5
 
20985
$as_echo "$WMF_CONFIG" >&6; }
 
20986
else
 
20987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
20988
$as_echo "no" >&6; }
 
20989
fi
 
20990
 
 
20991
 
 
20992
  if test "x$WMF_CONFIG" != "xno" ; then
 
20993
    have_libwmf=yes
 
20994
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwmf >= 0.2.8" >&5
 
20995
$as_echo_n "checking for libwmf >= 0.2.8... " >&6; }
 
20996
    wmf_version=`$WMF_CONFIG --version`
 
20997
    if expr $wmf_version \>= 0.2.8 >/dev/null; then
 
20998
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $wmf_version)" >&5
 
20999
$as_echo "yes (version $wmf_version)" >&6; }
 
21000
      FILE_WMF='file-wmf$(EXEEXT)'
 
21001
      WMF_LIBS=`$WMF_CONFIG --libs`
 
21002
      WMF_CFLAGS=`$WMF_CONFIG --cflags`
 
21003
    else
 
21004
      have_libwmf="no (libwmf is too old)"
 
21005
   fi
 
21006
  else
 
21007
    have_libwmf="no (libwmf not found)"
 
21008
  fi
 
21009
fi
 
21010
 
 
21011
if test "x$have_libwmf" = xyes; then
 
21012
  MIME_TYPES="$MIME_TYPES;image/x-wmf"
 
21013
fi
 
21014
 
 
21015
 
 
21016
 
 
21017
 
 
21018
 
 
21019
 
 
21020
#####################
 
21021
# Check for libjasper
 
21022
#####################
 
21023
 
 
21024
 
 
21025
# Check whether --with-libjasper was given.
 
21026
if test "${with_libjasper+set}" = set; then :
 
21027
  withval=$with_libjasper;
 
21028
fi
 
21029
 
 
21030
 
 
21031
have_jp2=no
 
21032
if test "x$with_libjasper" != xno && test -z "$JASPER_LIBS"; then
 
21033
  have_jp2=yes
 
21034
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_init in -ljasper" >&5
 
21035
$as_echo_n "checking for jas_init in -ljasper... " >&6; }
 
21036
if ${ac_cv_lib_jasper_jas_init+:} false; then :
 
21037
  $as_echo_n "(cached) " >&6
 
21038
else
 
21039
  ac_check_lib_save_LIBS=$LIBS
 
21040
LIBS="-ljasper  $LIBS"
 
21041
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21042
/* end confdefs.h.  */
 
21043
 
 
21044
/* Override any GCC internal prototype to avoid an error.
 
21045
   Use char because int might match the return type of a GCC
 
21046
   builtin and then its argument prototype would still apply.  */
 
21047
#ifdef __cplusplus
 
21048
extern "C"
 
21049
#endif
 
21050
char jas_init ();
 
21051
int
 
21052
main ()
 
21053
{
 
21054
return jas_init ();
 
21055
  ;
 
21056
  return 0;
 
21057
}
 
21058
_ACEOF
 
21059
if ac_fn_c_try_link "$LINENO"; then :
 
21060
  ac_cv_lib_jasper_jas_init=yes
 
21061
else
 
21062
  ac_cv_lib_jasper_jas_init=no
 
21063
fi
 
21064
rm -f core conftest.err conftest.$ac_objext \
 
21065
    conftest$ac_exeext conftest.$ac_ext
 
21066
LIBS=$ac_check_lib_save_LIBS
 
21067
fi
 
21068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_init" >&5
 
21069
$as_echo "$ac_cv_lib_jasper_jas_init" >&6; }
 
21070
if test "x$ac_cv_lib_jasper_jas_init" = xyes; then :
 
21071
  FILE_JP2_LOAD='file-jp2-load$(EXEEXT)' ; JP2_LIBS=-ljasper
 
21072
else
 
21073
  have_jp2="no (JasPer library not found)"
 
21074
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** JP2 plug-in will not be built (JasPer library not found) ***" >&5
 
21075
$as_echo "$as_me: WARNING: *** JP2 plug-in will not be built (JasPer library not found) ***" >&2;}
 
21076
fi
 
21077
 
 
21078
else
 
21079
   have_jp2="no (JasPer support disabled)"
 
21080
fi
 
21081
 
 
21082
if test "x$have_jp2" = xyes; then
 
21083
  MIME_TYPES="$MIME_TYPES;image/jp2;image/jpeg2000;image/jpx"
 
21084
fi
 
21085
 
 
21086
 if test "x$have_jp2" = xyes; then
 
21087
  BUILD_JP2_TRUE=
 
21088
  BUILD_JP2_FALSE='#'
 
21089
else
 
21090
  BUILD_JP2_TRUE='#'
 
21091
  BUILD_JP2_FALSE=
 
21092
fi
 
21093
 
 
21094
 
 
21095
 
 
21096
 
 
21097
 
 
21098
################
 
21099
# Check for lcms
 
21100
################
 
21101
 
 
21102
 
 
21103
# Check whether --with-lcms was given.
 
21104
if test "${with_lcms+set}" = set; then :
 
21105
  withval=$with_lcms;
 
21106
fi
 
21107
 
 
21108
 
 
21109
have_lcms="no (lcms support disabled)"
 
21110
if test "x$with_lcms" != xno; then
 
21111
  have_lcms=yes
 
21112
 
 
21113
pkg_failed=no
 
21114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
 
21115
$as_echo_n "checking for LCMS... " >&6; }
 
21116
 
 
21117
if test -n "$LCMS_CFLAGS"; then
 
21118
    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
 
21119
 elif test -n "$PKG_CONFIG"; then
 
21120
    if test -n "$PKG_CONFIG" && \
 
21121
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.16\""; } >&5
 
21122
  ($PKG_CONFIG --exists --print-errors "lcms >= 1.16") 2>&5
 
21123
  ac_status=$?
 
21124
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21125
  test $ac_status = 0; }; then
 
21126
  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms >= 1.16" 2>/dev/null`
 
21127
                      test "x$?" != "x0" && pkg_failed=yes
 
21128
else
 
21129
  pkg_failed=yes
 
21130
fi
 
21131
 else
 
21132
    pkg_failed=untried
 
21133
fi
 
21134
if test -n "$LCMS_LIBS"; then
 
21135
    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
 
21136
 elif test -n "$PKG_CONFIG"; then
 
21137
    if test -n "$PKG_CONFIG" && \
 
21138
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms >= 1.16\""; } >&5
 
21139
  ($PKG_CONFIG --exists --print-errors "lcms >= 1.16") 2>&5
 
21140
  ac_status=$?
 
21141
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21142
  test $ac_status = 0; }; then
 
21143
  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms >= 1.16" 2>/dev/null`
 
21144
                      test "x$?" != "x0" && pkg_failed=yes
 
21145
else
 
21146
  pkg_failed=yes
 
21147
fi
 
21148
 else
 
21149
    pkg_failed=untried
 
21150
fi
 
21151
 
 
21152
 
 
21153
 
 
21154
if test $pkg_failed = yes; then
 
21155
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21156
$as_echo "no" >&6; }
 
21157
 
 
21158
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21159
        _pkg_short_errors_supported=yes
 
21160
else
 
21161
        _pkg_short_errors_supported=no
 
21162
fi
 
21163
        if test $_pkg_short_errors_supported = yes; then
 
21164
                LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms >= 1.16" 2>&1`
 
21165
        else
 
21166
                LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms >= 1.16" 2>&1`
 
21167
        fi
 
21168
        # Put the nasty error message in config.log where it belongs
 
21169
        echo "$LCMS_PKG_ERRORS" >&5
 
21170
 
 
21171
        have_lcms="no (lcms not found or unusable)"
 
21172
elif test $pkg_failed = untried; then
 
21173
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21174
$as_echo "no" >&6; }
 
21175
        have_lcms="no (lcms not found or unusable)"
 
21176
else
 
21177
        LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS
 
21178
        LCMS_LIBS=$pkg_cv_LCMS_LIBS
 
21179
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
21180
$as_echo "yes" >&6; }
 
21181
 
 
21182
$as_echo "#define HAVE_LCMS 1" >>confdefs.h
 
21183
 
 
21184
    LCMS='lcms$(EXEEXT)'
 
21185
fi
 
21186
fi
 
21187
 
 
21188
 
 
21189
 if test "x$have_lcms" = xyes; then
 
21190
  HAVE_LCMS_TRUE=
 
21191
  HAVE_LCMS_FALSE='#'
 
21192
else
 
21193
  HAVE_LCMS_TRUE='#'
 
21194
  HAVE_LCMS_FALSE=
 
21195
fi
 
21196
 
 
21197
 
 
21198
 
 
21199
######################
 
21200
# Check for libXcursor
 
21201
######################
 
21202
 
 
21203
 
 
21204
# Check whether --with-xmc was given.
 
21205
if test "${with_xmc+set}" = set; then :
 
21206
  withval=$with_xmc;
 
21207
fi
 
21208
 
 
21209
 
 
21210
have_xmc=no
 
21211
if test "x$with_xmc" != xno; then
 
21212
  have_xmc=yes
 
21213
 
 
21214
pkg_failed=no
 
21215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMC" >&5
 
21216
$as_echo_n "checking for XMC... " >&6; }
 
21217
 
 
21218
if test -n "$XMC_CFLAGS"; then
 
21219
    pkg_cv_XMC_CFLAGS="$XMC_CFLAGS"
 
21220
 elif test -n "$PKG_CONFIG"; then
 
21221
    if test -n "$PKG_CONFIG" && \
 
21222
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
 
21223
  ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
 
21224
  ac_status=$?
 
21225
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21226
  test $ac_status = 0; }; then
 
21227
  pkg_cv_XMC_CFLAGS=`$PKG_CONFIG --cflags "xcursor" 2>/dev/null`
 
21228
                      test "x$?" != "x0" && pkg_failed=yes
 
21229
else
 
21230
  pkg_failed=yes
 
21231
fi
 
21232
 else
 
21233
    pkg_failed=untried
 
21234
fi
 
21235
if test -n "$XMC_LIBS"; then
 
21236
    pkg_cv_XMC_LIBS="$XMC_LIBS"
 
21237
 elif test -n "$PKG_CONFIG"; then
 
21238
    if test -n "$PKG_CONFIG" && \
 
21239
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5
 
21240
  ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5
 
21241
  ac_status=$?
 
21242
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21243
  test $ac_status = 0; }; then
 
21244
  pkg_cv_XMC_LIBS=`$PKG_CONFIG --libs "xcursor" 2>/dev/null`
 
21245
                      test "x$?" != "x0" && pkg_failed=yes
 
21246
else
 
21247
  pkg_failed=yes
 
21248
fi
 
21249
 else
 
21250
    pkg_failed=untried
 
21251
fi
 
21252
 
 
21253
 
 
21254
 
 
21255
if test $pkg_failed = yes; then
 
21256
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21257
$as_echo "no" >&6; }
 
21258
 
 
21259
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21260
        _pkg_short_errors_supported=yes
 
21261
else
 
21262
        _pkg_short_errors_supported=no
 
21263
fi
 
21264
        if test $_pkg_short_errors_supported = yes; then
 
21265
                XMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcursor" 2>&1`
 
21266
        else
 
21267
                XMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcursor" 2>&1`
 
21268
        fi
 
21269
        # Put the nasty error message in config.log where it belongs
 
21270
        echo "$XMC_PKG_ERRORS" >&5
 
21271
 
 
21272
        have_xmc="no (libXcursor not found)"
 
21273
elif test $pkg_failed = untried; then
 
21274
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21275
$as_echo "no" >&6; }
 
21276
        have_xmc="no (libXcursor not found)"
 
21277
else
 
21278
        XMC_CFLAGS=$pkg_cv_XMC_CFLAGS
 
21279
        XMC_LIBS=$pkg_cv_XMC_LIBS
 
21280
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
21281
$as_echo "yes" >&6; }
 
21282
        FILE_XMC='file-xmc$(EXEEXT)'
 
21283
fi
 
21284
else
 
21285
   have_xmc="no (libXcursor support disabled)"
 
21286
fi
 
21287
 
 
21288
if test "x$have_xmc" = xyes; then
 
21289
  MIME_TYPES="$MIME_TYPES;image/x-xcursor"
 
21290
fi
 
21291
 
 
21292
 
 
21293
 
 
21294
 
 
21295
################
 
21296
# Check for alsa
 
21297
################
 
21298
 
 
21299
 
 
21300
# Check whether --with-alsa was given.
 
21301
if test "${with_alsa+set}" = set; then :
 
21302
  withval=$with_alsa;
 
21303
fi
 
21304
 
 
21305
 
 
21306
have_alsa="no (alsa support disabled)"
 
21307
if test "x$with_alsa" != xno; then
 
21308
  have_alsa=yes
 
21309
  alsa_save_CFLAGS="$CFLAGS"
 
21310
alsa_save_LDFLAGS="$LDFLAGS"
 
21311
alsa_save_LIBS="$LIBS"
 
21312
alsa_found=yes
 
21313
 
 
21314
 
 
21315
# Check whether --with-alsa-prefix was given.
 
21316
if test "${with_alsa_prefix+set}" = set; then :
 
21317
  withval=$with_alsa_prefix; alsa_prefix="$withval"
 
21318
else
 
21319
  alsa_prefix=""
 
21320
fi
 
21321
 
 
21322
 
 
21323
 
 
21324
# Check whether --with-alsa-inc-prefix was given.
 
21325
if test "${with_alsa_inc_prefix+set}" = set; then :
 
21326
  withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
 
21327
else
 
21328
  alsa_inc_prefix=""
 
21329
fi
 
21330
 
 
21331
 
 
21332
# Check whether --enable-alsatest was given.
 
21333
if test "${enable_alsatest+set}" = set; then :
 
21334
  enableval=$enable_alsatest; enable_alsatest="$enableval"
 
21335
else
 
21336
  enable_alsatest=yes
 
21337
fi
 
21338
 
 
21339
 
 
21340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
 
21341
$as_echo_n "checking for ALSA CFLAGS... " >&6; }
 
21342
if test "$alsa_inc_prefix" != "" ; then
 
21343
        ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
 
21344
        CFLAGS="$CFLAGS -I$alsa_inc_prefix"
 
21345
fi
 
21346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
 
21347
$as_echo "$ALSA_CFLAGS" >&6; }
 
21348
CFLAGS="$alsa_save_CFLAGS"
 
21349
 
 
21350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
 
21351
$as_echo_n "checking for ALSA LDFLAGS... " >&6; }
 
21352
if test "$alsa_prefix" != "" ; then
 
21353
        ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
 
21354
        LDFLAGS="$LDFLAGS $ALSA_LIBS"
 
21355
fi
 
21356
 
 
21357
ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
 
21358
LIBS="$ALSA_LIBS $LIBS"
 
21359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
 
21360
$as_echo "$ALSA_LIBS" >&6; }
 
21361
 
 
21362
min_alsa_version=1.0.0
 
21363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
 
21364
$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
 
21365
no_alsa=""
 
21366
    alsa_min_major_version=`echo $min_alsa_version | \
 
21367
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
21368
    alsa_min_minor_version=`echo $min_alsa_version | \
 
21369
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
21370
    alsa_min_micro_version=`echo $min_alsa_version | \
 
21371
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
21372
 
 
21373
 
 
21374
ac_ext=c
 
21375
ac_cpp='$CPP $CPPFLAGS'
 
21376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21379
 
 
21380
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21381
/* end confdefs.h.  */
 
21382
 
 
21383
#include <alsa/asoundlib.h>
 
21384
 
 
21385
int
 
21386
main ()
 
21387
{
 
21388
 
 
21389
/* ensure backward compatibility */
 
21390
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
 
21391
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
 
21392
#endif
 
21393
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
 
21394
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
 
21395
#endif
 
21396
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
 
21397
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
 
21398
#endif
 
21399
 
 
21400
#  if(SND_LIB_MAJOR > $alsa_min_major_version)
 
21401
  exit(0);
 
21402
#  else
 
21403
#    if(SND_LIB_MAJOR < $alsa_min_major_version)
 
21404
#       error not present
 
21405
#    endif
 
21406
 
 
21407
#   if(SND_LIB_MINOR > $alsa_min_minor_version)
 
21408
  exit(0);
 
21409
#   else
 
21410
#     if(SND_LIB_MINOR < $alsa_min_minor_version)
 
21411
#          error not present
 
21412
#      endif
 
21413
 
 
21414
#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
 
21415
#        error not present
 
21416
#      endif
 
21417
#    endif
 
21418
#  endif
 
21419
exit(0);
 
21420
 
 
21421
  ;
 
21422
  return 0;
 
21423
}
 
21424
_ACEOF
 
21425
if ac_fn_c_try_compile "$LINENO"; then :
 
21426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
 
21427
$as_echo "found." >&6; }
 
21428
else
 
21429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
 
21430
$as_echo "not present." >&6; }
 
21431
 
 
21432
   alsa_found=no
 
21433
 
 
21434
fi
 
21435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21436
ac_ext=c
 
21437
ac_cpp='$CPP $CPPFLAGS'
 
21438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21441
 
 
21442
 
 
21443
if test "x$enable_alsatest" = "xyes"; then
 
21444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
 
21445
$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
 
21446
if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
 
21447
  $as_echo_n "(cached) " >&6
 
21448
else
 
21449
  ac_check_lib_save_LIBS=$LIBS
 
21450
LIBS="-lasound  $LIBS"
 
21451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21452
/* end confdefs.h.  */
 
21453
 
 
21454
/* Override any GCC internal prototype to avoid an error.
 
21455
   Use char because int might match the return type of a GCC
 
21456
   builtin and then its argument prototype would still apply.  */
 
21457
#ifdef __cplusplus
 
21458
extern "C"
 
21459
#endif
 
21460
char snd_ctl_open ();
 
21461
int
 
21462
main ()
 
21463
{
 
21464
return snd_ctl_open ();
 
21465
  ;
 
21466
  return 0;
 
21467
}
 
21468
_ACEOF
 
21469
if ac_fn_c_try_link "$LINENO"; then :
 
21470
  ac_cv_lib_asound_snd_ctl_open=yes
 
21471
else
 
21472
  ac_cv_lib_asound_snd_ctl_open=no
 
21473
fi
 
21474
rm -f core conftest.err conftest.$ac_objext \
 
21475
    conftest$ac_exeext conftest.$ac_ext
 
21476
LIBS=$ac_check_lib_save_LIBS
 
21477
fi
 
21478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
 
21479
$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
 
21480
if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
 
21481
  cat >>confdefs.h <<_ACEOF
 
21482
#define HAVE_LIBASOUND 1
 
21483
_ACEOF
 
21484
 
 
21485
  LIBS="-lasound $LIBS"
 
21486
 
 
21487
else
 
21488
 
 
21489
         alsa_found=no
 
21490
 
 
21491
fi
 
21492
 
 
21493
fi
 
21494
 
 
21495
LDFLAGS="$alsa_save_LDFLAGS"
 
21496
LIBS="$alsa_save_LIBS"
 
21497
 
 
21498
if test "x$alsa_found" = "xyes" ; then
 
21499
 
 
21500
$as_echo "#define HAVE_ALSA 1" >>confdefs.h
 
21501
 
 
21502
else
 
21503
   ALSA_CFLAGS=""
 
21504
   ALSA_LIBS=""
 
21505
   have_alsa="no (libasound not found or unusable)"
 
21506
fi
 
21507
 
 
21508
 
 
21509
 
 
21510
 
 
21511
fi
 
21512
 
 
21513
 
 
21514
#######################
 
21515
# Check for Linux Input
 
21516
#######################
 
21517
 
 
21518
 
 
21519
# Check whether --with-linux-input was given.
 
21520
if test "${with_linux_input+set}" = set; then :
 
21521
  withval=$with_linux_input;
 
21522
fi
 
21523
 
 
21524
 
 
21525
have_linux_input="no (linux input support disabled)"
 
21526
if test "x$with_linux_input" != "xno"; then
 
21527
  ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
 
21528
if test "x$ac_cv_header_linux_input_h" = xyes; then :
 
21529
 
 
21530
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 
21531
# ---------------------------------------------
 
21532
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 
21533
# accordingly.
 
21534
ac_fn_c_check_decl ()
 
21535
{
 
21536
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
21537
  as_decl_name=`echo $2|sed 's/ *(.*//'`
 
21538
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 
21539
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 
21540
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 
21541
if eval \${$3+:} false; then :
 
21542
  $as_echo_n "(cached) " >&6
 
21543
else
 
21544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21545
/* end confdefs.h.  */
 
21546
$4
 
21547
int
 
21548
main ()
 
21549
{
 
21550
#ifndef $as_decl_name
 
21551
#ifdef __cplusplus
 
21552
  (void) $as_decl_use;
 
21553
#else
 
21554
  (void) $as_decl_name;
 
21555
#endif
 
21556
#endif
 
21557
 
 
21558
  ;
 
21559
  return 0;
 
21560
}
 
21561
_ACEOF
 
21562
if ac_fn_c_try_compile "$LINENO"; then :
 
21563
  eval "$3=yes"
 
21564
else
 
21565
  eval "$3=no"
 
21566
fi
 
21567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21568
fi
 
21569
eval ac_res=\$$3
 
21570
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
21571
$as_echo "$ac_res" >&6; }
 
21572
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
21573
 
 
21574
} # ac_fn_c_check_decl
 
21575
ac_fn_c_check_decl "$LINENO" "KEY_OK" "ac_cv_have_decl_KEY_OK" "#include <linux/input.h>
 
21576
"
 
21577
if test "x$ac_cv_have_decl_KEY_OK" = xyes; then :
 
21578
  have_linux_input=yes
 
21579
else
 
21580
  have_linux_input="no (needs Linux 2.6)"
 
21581
fi
 
21582
 
 
21583
fi
 
21584
 
 
21585
 
 
21586
fi
 
21587
 
 
21588
 if test "x$have_linux_input" = xyes; then
 
21589
  HAVE_LINUX_INPUT_TRUE=
 
21590
  HAVE_LINUX_INPUT_FALSE='#'
 
21591
else
 
21592
  HAVE_LINUX_INPUT_TRUE='#'
 
21593
  HAVE_LINUX_INPUT_FALSE=
 
21594
fi
 
21595
 
 
21596
 
 
21597
 
 
21598
###############################
 
21599
# Check for DirectX DirectInput
 
21600
###############################
 
21601
 
 
21602
 
 
21603
# Check whether --with-directx-sdk was given.
 
21604
if test "${with_directx_sdk+set}" = set; then :
 
21605
  withval=$with_directx_sdk;
 
21606
fi
 
21607
 
 
21608
 
 
21609
have_dx_dinput=no
 
21610
if test "x$os_win32" = xyes; then
 
21611
  case "$with_directx_sdk" in
 
21612
    *" "*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The DirectX SDK should be accessible through a path without spaces. Use MSYS mounts. Ignoring your --with-directx-sdk switch." >&5
 
21613
$as_echo "$as_me: WARNING: The DirectX SDK should be accessible through a path without spaces. Use MSYS mounts. Ignoring your --with-directx-sdk switch." >&2;}
 
21614
           with_directx_sdk=;;
 
21615
    *\\*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use plain (forward) slashes only in your --with-directx-sdk switch. Ignoring your --with-directx-sdk switch." >&5
 
21616
$as_echo "$as_me: WARNING: Use plain (forward) slashes only in your --with-directx-sdk switch. Ignoring your --with-directx-sdk switch." >&2;}
 
21617
           with_directx_sdk=;;
 
21618
  esac
 
21619
 
 
21620
  dinput_save_CPPFLAGS="$CPPFLAGS"
 
21621
  dinput_save_LDFLAGS="$LDFLAGS"
 
21622
  if test "x$with_directx_sdk" != x; then
 
21623
    CPPFLAGS="-I $with_directx_sdk/Include $CPPFLAGS"
 
21624
    LDFLAGS="-L$with_directx_sdk/Lib/x86 $LDFLAGS"
 
21625
    ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
 
21626
if test "x$ac_cv_header_dinput_h" = xyes; then :
 
21627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUID_XAxis in -ldxguid" >&5
 
21628
$as_echo_n "checking for GUID_XAxis in -ldxguid... " >&6; }
 
21629
if ${ac_cv_lib_dxguid_GUID_XAxis+:} false; then :
 
21630
  $as_echo_n "(cached) " >&6
 
21631
else
 
21632
  ac_check_lib_save_LIBS=$LIBS
 
21633
LIBS="-ldxguid  $LIBS"
 
21634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
21635
/* end confdefs.h.  */
 
21636
 
 
21637
/* Override any GCC internal prototype to avoid an error.
 
21638
   Use char because int might match the return type of a GCC
 
21639
   builtin and then its argument prototype would still apply.  */
 
21640
#ifdef __cplusplus
 
21641
extern "C"
 
21642
#endif
 
21643
char GUID_XAxis ();
 
21644
int
 
21645
main ()
 
21646
{
 
21647
return GUID_XAxis ();
 
21648
  ;
 
21649
  return 0;
 
21650
}
 
21651
_ACEOF
 
21652
if ac_fn_c_try_link "$LINENO"; then :
 
21653
  ac_cv_lib_dxguid_GUID_XAxis=yes
 
21654
else
 
21655
  ac_cv_lib_dxguid_GUID_XAxis=no
 
21656
fi
 
21657
rm -f core conftest.err conftest.$ac_objext \
 
21658
    conftest$ac_exeext conftest.$ac_ext
 
21659
LIBS=$ac_check_lib_save_LIBS
 
21660
fi
 
21661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dxguid_GUID_XAxis" >&5
 
21662
$as_echo "$ac_cv_lib_dxguid_GUID_XAxis" >&6; }
 
21663
if test "x$ac_cv_lib_dxguid_GUID_XAxis" = xyes; then :
 
21664
  have_dx_dinput=yes
 
21665
fi
 
21666
 
 
21667
fi
 
21668
 
 
21669
 
 
21670
  fi
 
21671
 
 
21672
  if test "x$have_dx_dinput" = xyes; then
 
21673
 
 
21674
$as_echo "#define HAVE_DX_DINPUT 1" >>confdefs.h
 
21675
 
 
21676
  else
 
21677
    CPPFLAGS="$dinput_save_CPPFLAGS"
 
21678
    LDFLAGS="$dinput_save_LDFLAGS"
 
21679
  fi
 
21680
fi
 
21681
 
 
21682
 if test "x$have_dx_dinput" = xyes; then
 
21683
  HAVE_DX_DINPUT_TRUE=
 
21684
  HAVE_DX_DINPUT_FALSE='#'
 
21685
else
 
21686
  HAVE_DX_DINPUT_TRUE='#'
 
21687
  HAVE_DX_DINPUT_FALSE=
 
21688
fi
 
21689
 
 
21690
 
 
21691
 
 
21692
###############################
 
21693
# Check for D-Bus GLib bindings
 
21694
###############################
 
21695
 
 
21696
 
 
21697
# Check whether --with-dbus was given.
 
21698
if test "${with_dbus+set}" = set; then :
 
21699
  withval=$with_dbus;
 
21700
fi
 
21701
 
 
21702
 
 
21703
have_dbus_glib="no (disabled)"
 
21704
 
 
21705
if test "x$with_dbus" != xno; then
 
21706
 
 
21707
pkg_failed=no
 
21708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
 
21709
$as_echo_n "checking for DBUS_GLIB... " >&6; }
 
21710
 
 
21711
if test -n "$DBUS_GLIB_CFLAGS"; then
 
21712
    pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
 
21713
 elif test -n "$PKG_CONFIG"; then
 
21714
    if test -n "$PKG_CONFIG" && \
 
21715
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70\""; } >&5
 
21716
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70") 2>&5
 
21717
  ac_status=$?
 
21718
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21719
  test $ac_status = 0; }; then
 
21720
  pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.70" 2>/dev/null`
 
21721
                      test "x$?" != "x0" && pkg_failed=yes
 
21722
else
 
21723
  pkg_failed=yes
 
21724
fi
 
21725
 else
 
21726
    pkg_failed=untried
 
21727
fi
 
21728
if test -n "$DBUS_GLIB_LIBS"; then
 
21729
    pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
 
21730
 elif test -n "$PKG_CONFIG"; then
 
21731
    if test -n "$PKG_CONFIG" && \
 
21732
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70\""; } >&5
 
21733
  ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70") 2>&5
 
21734
  ac_status=$?
 
21735
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21736
  test $ac_status = 0; }; then
 
21737
  pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.70" 2>/dev/null`
 
21738
                      test "x$?" != "x0" && pkg_failed=yes
 
21739
else
 
21740
  pkg_failed=yes
 
21741
fi
 
21742
 else
 
21743
    pkg_failed=untried
 
21744
fi
 
21745
 
 
21746
 
 
21747
 
 
21748
if test $pkg_failed = yes; then
 
21749
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21750
$as_echo "no" >&6; }
 
21751
 
 
21752
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21753
        _pkg_short_errors_supported=yes
 
21754
else
 
21755
        _pkg_short_errors_supported=no
 
21756
fi
 
21757
        if test $_pkg_short_errors_supported = yes; then
 
21758
                DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-glib-1 >= 0.70" 2>&1`
 
21759
        else
 
21760
                DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-glib-1 >= 0.70" 2>&1`
 
21761
        fi
 
21762
        # Put the nasty error message in config.log where it belongs
 
21763
        echo "$DBUS_GLIB_PKG_ERRORS" >&5
 
21764
 
 
21765
        have_dbus_glib=no
 
21766
elif test $pkg_failed = untried; then
 
21767
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21768
$as_echo "no" >&6; }
 
21769
        have_dbus_glib=no
 
21770
else
 
21771
        DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
 
21772
        DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
 
21773
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
21774
$as_echo "yes" >&6; }
 
21775
        have_dbus_glib=yes
 
21776
fi
 
21777
fi
 
21778
 
 
21779
if test "x$have_dbus_glib" = xyes; then
 
21780
  # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
 
21781
set dummy dbus-binding-tool; ac_word=$2
 
21782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21783
$as_echo_n "checking for $ac_word... " >&6; }
 
21784
if ${ac_cv_path_DBUS_BINDING_TOOL+:} false; then :
 
21785
  $as_echo_n "(cached) " >&6
 
21786
else
 
21787
  case $DBUS_BINDING_TOOL in
 
21788
  [\\/]* | ?:[\\/]*)
 
21789
  ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
 
21790
  ;;
 
21791
  *)
 
21792
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21793
for as_dir in $PATH
 
21794
do
 
21795
  IFS=$as_save_IFS
 
21796
  test -z "$as_dir" && as_dir=.
 
21797
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21798
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21799
    ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
 
21800
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21801
    break 2
 
21802
  fi
 
21803
done
 
21804
  done
 
21805
IFS=$as_save_IFS
 
21806
 
 
21807
  test -z "$ac_cv_path_DBUS_BINDING_TOOL" && ac_cv_path_DBUS_BINDING_TOOL="no"
 
21808
  ;;
 
21809
esac
 
21810
fi
 
21811
DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
 
21812
if test -n "$DBUS_BINDING_TOOL"; then
 
21813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_BINDING_TOOL" >&5
 
21814
$as_echo "$DBUS_BINDING_TOOL" >&6; }
 
21815
else
 
21816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21817
$as_echo "no" >&6; }
 
21818
fi
 
21819
 
 
21820
 
 
21821
  if test "x$DBUS_BINDING_TOOL" = xno; then
 
21822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find dbus-binding-tool in your PATH" >&5
 
21823
$as_echo "$as_me: WARNING: Could not find dbus-binding-tool in your PATH" >&2;}
 
21824
    have_dbus_glib="no (dbus-binding-tool not found)"
 
21825
  fi
 
21826
fi
 
21827
 
 
21828
if test "x$have_dbus_glib" = xyes; then
 
21829
 
 
21830
$as_echo "#define HAVE_DBUS_GLIB 1" >>confdefs.h
 
21831
 
 
21832
  GIMP_COMMAND='gimp-2.8'
 
21833
fi
 
21834
 
 
21835
 
 
21836
####################
 
21837
# Check for libgudev
 
21838
####################
 
21839
 
 
21840
 
 
21841
# Check whether --with-gudev was given.
 
21842
if test "${with_gudev+set}" = set; then :
 
21843
  withval=$with_gudev;
 
21844
fi
 
21845
 
 
21846
 
 
21847
have_libgudev=no
 
21848
 
 
21849
if test "x$with_gudev" = xno; then
 
21850
  have_libgudev="no (disabled)"
 
21851
fi
 
21852
 
 
21853
if test "x$have_linux_input" = xyes && test "x$have_dbus_glib" = xyes &&
 
21854
   test "x$with_gudev" != xno; then
 
21855
 
 
21856
pkg_failed=no
 
21857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUDEV" >&5
 
21858
$as_echo_n "checking for GUDEV... " >&6; }
 
21859
 
 
21860
if test -n "$GUDEV_CFLAGS"; then
 
21861
    pkg_cv_GUDEV_CFLAGS="$GUDEV_CFLAGS"
 
21862
 elif test -n "$PKG_CONFIG"; then
 
21863
    if test -n "$PKG_CONFIG" && \
 
21864
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 167\""; } >&5
 
21865
  ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 167") 2>&5
 
21866
  ac_status=$?
 
21867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21868
  test $ac_status = 0; }; then
 
21869
  pkg_cv_GUDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 >= 167" 2>/dev/null`
 
21870
                      test "x$?" != "x0" && pkg_failed=yes
 
21871
else
 
21872
  pkg_failed=yes
 
21873
fi
 
21874
 else
 
21875
    pkg_failed=untried
 
21876
fi
 
21877
if test -n "$GUDEV_LIBS"; then
 
21878
    pkg_cv_GUDEV_LIBS="$GUDEV_LIBS"
 
21879
 elif test -n "$PKG_CONFIG"; then
 
21880
    if test -n "$PKG_CONFIG" && \
 
21881
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 >= 167\""; } >&5
 
21882
  ($PKG_CONFIG --exists --print-errors "gudev-1.0 >= 167") 2>&5
 
21883
  ac_status=$?
 
21884
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
21885
  test $ac_status = 0; }; then
 
21886
  pkg_cv_GUDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 >= 167" 2>/dev/null`
 
21887
                      test "x$?" != "x0" && pkg_failed=yes
 
21888
else
 
21889
  pkg_failed=yes
 
21890
fi
 
21891
 else
 
21892
    pkg_failed=untried
 
21893
fi
 
21894
 
 
21895
 
 
21896
 
 
21897
if test $pkg_failed = yes; then
 
21898
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21899
$as_echo "no" >&6; }
 
21900
 
 
21901
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21902
        _pkg_short_errors_supported=yes
 
21903
else
 
21904
        _pkg_short_errors_supported=no
 
21905
fi
 
21906
        if test $_pkg_short_errors_supported = yes; then
 
21907
                GUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gudev-1.0 >= 167" 2>&1`
 
21908
        else
 
21909
                GUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gudev-1.0 >= 167" 2>&1`
 
21910
        fi
 
21911
        # Put the nasty error message in config.log where it belongs
 
21912
        echo "$GUDEV_PKG_ERRORS" >&5
 
21913
 
 
21914
        have_libgudev="no (libgudev not found)"
 
21915
elif test $pkg_failed = untried; then
 
21916
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
21917
$as_echo "no" >&6; }
 
21918
        have_libgudev="no (libgudev not found)"
 
21919
else
 
21920
        GUDEV_CFLAGS=$pkg_cv_GUDEV_CFLAGS
 
21921
        GUDEV_LIBS=$pkg_cv_GUDEV_LIBS
 
21922
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
21923
$as_echo "yes" >&6; }
 
21924
        have_libgudev=yes
 
21925
fi
 
21926
fi
 
21927
 
 
21928
if test "x$have_libgudev" = xyes; then
 
21929
 
 
21930
$as_echo "#define HAVE_LIBGUDEV 1" >>confdefs.h
 
21931
 
 
21932
fi
 
21933
 
 
21934
 
 
21935
############################################################
 
21936
# GIF compression: Allow builder to specify at compile time
 
21937
# which compression style she wants to use for GIFs.
 
21938
# LZW: Unisys patented Lempel-Ziff encoding.
 
21939
# RLE: Runlength encoding (produces files about twice as big
 
21940
#                          as the LZW compressed equivalent).
 
21941
# None: Raw data.
 
21942
############################################################
 
21943
 
 
21944
 
 
21945
# Check whether --with-gif-compression was given.
 
21946
if test "${with_gif_compression+set}" = set; then :
 
21947
  withval=$with_gif_compression;
 
21948
fi
 
21949
 
 
21950
 
 
21951
case x"$with_gif_compression" in
 
21952
  xnone)
 
21953
 
 
21954
$as_echo "#define GIF_UN 1" >>confdefs.h
 
21955
 ;;
 
21956
  xrle)
 
21957
 
 
21958
$as_echo "#define GIF_RLE 1" >>confdefs.h
 
21959
 ;;
 
21960
esac
 
21961
 
 
21962
 
 
21963
####################
 
21964
# Check for sendmail
 
21965
####################
 
21966
 
 
21967
 
 
21968
# Check whether --with-sendmail was given.
 
21969
if test "${with_sendmail+set}" = set; then :
 
21970
  withval=$with_sendmail;
 
21971
fi
 
21972
 
 
21973
 
 
21974
if test "x$with_sendmail" != "x"; then
 
21975
  sendmail_path=$with_sendmail
 
21976
else
 
21977
  sendmail_path=$PATH:/usr/sbin:/usr/lib
 
21978
fi
 
21979
 
 
21980
# Extract the first word of "sendmail", so it can be a program name with args.
 
21981
set dummy sendmail; ac_word=$2
 
21982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
21983
$as_echo_n "checking for $ac_word... " >&6; }
 
21984
if ${ac_cv_path_SENDMAIL+:} false; then :
 
21985
  $as_echo_n "(cached) " >&6
 
21986
else
 
21987
  case $SENDMAIL in
 
21988
  [\\/]* | ?:[\\/]*)
 
21989
  ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
 
21990
  ;;
 
21991
  *)
 
21992
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21993
for as_dir in $sendmail_path
 
21994
do
 
21995
  IFS=$as_save_IFS
 
21996
  test -z "$as_dir" && as_dir=.
 
21997
    for ac_exec_ext in '' $ac_executable_extensions; do
 
21998
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21999
    ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
 
22000
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22001
    break 2
 
22002
  fi
 
22003
done
 
22004
  done
 
22005
IFS=$as_save_IFS
 
22006
 
 
22007
  ;;
 
22008
esac
 
22009
fi
 
22010
SENDMAIL=$ac_cv_path_SENDMAIL
 
22011
if test -n "$SENDMAIL"; then
 
22012
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
 
22013
$as_echo "$SENDMAIL" >&6; }
 
22014
else
 
22015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22016
$as_echo "no" >&6; }
 
22017
fi
 
22018
 
 
22019
 
 
22020
if test "x$SENDMAIL" != "x"; then
 
22021
 
 
22022
cat >>confdefs.h <<_ACEOF
 
22023
#define SENDMAIL "$SENDMAIL"
 
22024
_ACEOF
 
22025
 
 
22026
fi
 
22027
 
 
22028
 
 
22029
################
 
22030
# Check for perl
 
22031
################
 
22032
 
 
22033
for ac_prog in perl5 perl perl5.005 perl5.004
 
22034
do
 
22035
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
22036
set dummy $ac_prog; ac_word=$2
 
22037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22038
$as_echo_n "checking for $ac_word... " >&6; }
 
22039
if ${ac_cv_path_PERL+:} false; then :
 
22040
  $as_echo_n "(cached) " >&6
 
22041
else
 
22042
  case $PERL in
 
22043
  [\\/]* | ?:[\\/]*)
 
22044
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
22045
  ;;
 
22046
  *)
 
22047
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22048
for as_dir in $PATH
 
22049
do
 
22050
  IFS=$as_save_IFS
 
22051
  test -z "$as_dir" && as_dir=.
 
22052
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22053
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22054
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
22055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22056
    break 2
 
22057
  fi
 
22058
done
 
22059
  done
 
22060
IFS=$as_save_IFS
 
22061
 
 
22062
  ;;
 
22063
esac
 
22064
fi
 
22065
PERL=$ac_cv_path_PERL
 
22066
if test -n "$PERL"; then
 
22067
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
22068
$as_echo "$PERL" >&6; }
 
22069
else
 
22070
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22071
$as_echo "no" >&6; }
 
22072
fi
 
22073
 
 
22074
 
 
22075
  test -n "$PERL" && break
 
22076
done
 
22077
test -n "$PERL" || PERL="perl"
 
22078
 
 
22079
 
 
22080
 
 
22081
 
 
22082
# Check whether --with-pdbgen was given.
 
22083
if test "${with_pdbgen+set}" = set; then :
 
22084
  withval=$with_pdbgen;
 
22085
else
 
22086
  with_pdbgen=$USE_MAINTAINER_MODE
 
22087
fi
 
22088
 
 
22089
 
 
22090
 if test "x$with_pdbgen" = xyes; then
 
22091
  WITH_PDBGEN_TRUE=
 
22092
  WITH_PDBGEN_FALSE='#'
 
22093
else
 
22094
  WITH_PDBGEN_TRUE='#'
 
22095
  WITH_PDBGEN_FALSE=
 
22096
fi
 
22097
 
 
22098
 
 
22099
 
 
22100
##################
 
22101
# Check for python
 
22102
##################
 
22103
 
 
22104
# Pygimp configure stuff ...
 
22105
# Check whether --enable-python was given.
 
22106
if test "${enable_python+set}" = set; then :
 
22107
  enableval=$enable_python;
 
22108
fi
 
22109
 
 
22110
 
 
22111
 
 
22112
 
 
22113
if test "x$enable_python" != xno; then
 
22114
  enable_python="yes"
 
22115
  # check for Python
 
22116
 
 
22117
 
 
22118
 
 
22119
 
 
22120
 
 
22121
 
 
22122
        if test -n "$PYTHON"; then
 
22123
      # If the user set $PYTHON, use it and don't search something else.
 
22124
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5.0" >&5
 
22125
$as_echo_n "checking whether $PYTHON version >= 2.5.0... " >&6; }
 
22126
      prog="import sys
 
22127
# split strings by '.' and convert to numeric.  Append some zeros
 
22128
# because we need at least 4 digits for the hex conversion.
 
22129
# map returns an iterator in Python 3.0 and a list in 2.x
 
22130
minver = list(map(int, '2.5.0'.split('.'))) + [0, 0, 0]
 
22131
minverhex = 0
 
22132
# xrange is not present in Python 3.0 and range returns an iterator
 
22133
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
22134
sys.exit(sys.hexversion < minverhex)"
 
22135
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
22136
   ($PYTHON -c "$prog") >&5 2>&5
 
22137
   ac_status=$?
 
22138
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22139
   (exit $ac_status); }; then :
 
22140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22141
$as_echo "yes" >&6; }
 
22142
else
 
22143
  as_fn_error $? "too old" "$LINENO" 5
 
22144
fi
 
22145
      am_display_PYTHON=$PYTHON
 
22146
    else
 
22147
      # Otherwise, try each interpreter until we find one that satisfies
 
22148
      # VERSION.
 
22149
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5.0" >&5
 
22150
$as_echo_n "checking for a Python interpreter with version >= 2.5.0... " >&6; }
 
22151
if ${am_cv_pathless_PYTHON+:} false; then :
 
22152
  $as_echo_n "(cached) " >&6
 
22153
else
 
22154
 
 
22155
        for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
22156
          test "$am_cv_pathless_PYTHON" = none && break
 
22157
          prog="import sys
 
22158
# split strings by '.' and convert to numeric.  Append some zeros
 
22159
# because we need at least 4 digits for the hex conversion.
 
22160
# map returns an iterator in Python 3.0 and a list in 2.x
 
22161
minver = list(map(int, '2.5.0'.split('.'))) + [0, 0, 0]
 
22162
minverhex = 0
 
22163
# xrange is not present in Python 3.0 and range returns an iterator
 
22164
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
22165
sys.exit(sys.hexversion < minverhex)"
 
22166
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
22167
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
22168
   ac_status=$?
 
22169
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22170
   (exit $ac_status); }; then :
 
22171
  break
 
22172
fi
 
22173
        done
 
22174
fi
 
22175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
 
22176
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
22177
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
22178
      if test "$am_cv_pathless_PYTHON" = none; then
 
22179
        PYTHON=:
 
22180
      else
 
22181
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
22182
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
22183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22184
$as_echo_n "checking for $ac_word... " >&6; }
 
22185
if ${ac_cv_path_PYTHON+:} false; then :
 
22186
  $as_echo_n "(cached) " >&6
 
22187
else
 
22188
  case $PYTHON in
 
22189
  [\\/]* | ?:[\\/]*)
 
22190
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
22191
  ;;
 
22192
  *)
 
22193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22194
for as_dir in $PATH
 
22195
do
 
22196
  IFS=$as_save_IFS
 
22197
  test -z "$as_dir" && as_dir=.
 
22198
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22199
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22200
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
22201
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22202
    break 2
 
22203
  fi
 
22204
done
 
22205
  done
 
22206
IFS=$as_save_IFS
 
22207
 
 
22208
  ;;
 
22209
esac
 
22210
fi
 
22211
PYTHON=$ac_cv_path_PYTHON
 
22212
if test -n "$PYTHON"; then
 
22213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
 
22214
$as_echo "$PYTHON" >&6; }
 
22215
else
 
22216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22217
$as_echo "no" >&6; }
 
22218
fi
 
22219
 
 
22220
 
 
22221
      fi
 
22222
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
22223
    fi
 
22224
 
 
22225
 
 
22226
  if test "$PYTHON" = :; then
 
22227
      as_fn_error $? "
 
22228
*** Could not find Python 2.5.0 or newer.
 
22229
*** Please install it, or skip building the python scripting extension by
 
22230
*** passing --disable-python to configure (but then you will not be able
 
22231
*** to use scripts for GIMP that are written in Python)." "$LINENO" 5
 
22232
  else
 
22233
 
 
22234
 
 
22235
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
 
22236
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
22237
if ${am_cv_python_version+:} false; then :
 
22238
  $as_echo_n "(cached) " >&6
 
22239
else
 
22240
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
22241
fi
 
22242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
 
22243
$as_echo "$am_cv_python_version" >&6; }
 
22244
  PYTHON_VERSION=$am_cv_python_version
 
22245
 
 
22246
 
 
22247
 
 
22248
  PYTHON_PREFIX='${prefix}'
 
22249
 
 
22250
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
22251
 
 
22252
 
 
22253
 
 
22254
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
 
22255
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
22256
if ${am_cv_python_platform+:} false; then :
 
22257
  $as_echo_n "(cached) " >&6
 
22258
else
 
22259
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
22260
fi
 
22261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
 
22262
$as_echo "$am_cv_python_platform" >&6; }
 
22263
  PYTHON_PLATFORM=$am_cv_python_platform
 
22264
 
 
22265
 
 
22266
 
 
22267
 
 
22268
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
 
22269
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
22270
if ${am_cv_python_pythondir+:} false; then :
 
22271
  $as_echo_n "(cached) " >&6
 
22272
else
 
22273
  if test "x$prefix" = xNONE
 
22274
     then
 
22275
       am_py_prefix=$ac_default_prefix
 
22276
     else
 
22277
       am_py_prefix=$prefix
 
22278
     fi
 
22279
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
 
22280
     case $am_cv_python_pythondir in
 
22281
     $am_py_prefix*)
 
22282
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
22283
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
22284
       ;;
 
22285
     *)
 
22286
       case $am_py_prefix in
 
22287
         /usr|/System*) ;;
 
22288
         *)
 
22289
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
22290
          ;;
 
22291
       esac
 
22292
       ;;
 
22293
     esac
 
22294
 
 
22295
fi
 
22296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
 
22297
$as_echo "$am_cv_python_pythondir" >&6; }
 
22298
  pythondir=$am_cv_python_pythondir
 
22299
 
 
22300
 
 
22301
 
 
22302
  pkgpythondir=\${pythondir}/$PACKAGE
 
22303
 
 
22304
 
 
22305
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
 
22306
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
22307
if ${am_cv_python_pyexecdir+:} false; then :
 
22308
  $as_echo_n "(cached) " >&6
 
22309
else
 
22310
  if test "x$exec_prefix" = xNONE
 
22311
     then
 
22312
       am_py_exec_prefix=$am_py_prefix
 
22313
     else
 
22314
       am_py_exec_prefix=$exec_prefix
 
22315
     fi
 
22316
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
 
22317
     case $am_cv_python_pyexecdir in
 
22318
     $am_py_exec_prefix*)
 
22319
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
22320
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
22321
       ;;
 
22322
     *)
 
22323
       case $am_py_exec_prefix in
 
22324
         /usr|/System*) ;;
 
22325
         *)
 
22326
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
22327
           ;;
 
22328
       esac
 
22329
       ;;
 
22330
     esac
 
22331
 
 
22332
fi
 
22333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
 
22334
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
22335
  pyexecdir=$am_cv_python_pyexecdir
 
22336
 
 
22337
 
 
22338
 
 
22339
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
22340
 
 
22341
 
 
22342
 
 
22343
  fi
 
22344
 
 
22345
 
 
22346
 
 
22347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
 
22348
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
 
22349
if test "$PYTHON_PLATFORM" != "win32"; then
 
22350
  py_versiondir="/python${PYTHON_VERSION}"
 
22351
else
 
22352
  py_versiondir=
 
22353
fi
 
22354
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 
22355
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
 
22356
PYTHON_INCLUDES="-I${py_prefix}/include${py_versiondir}"
 
22357
if test "$py_prefix" != "$py_exec_prefix"; then
 
22358
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include${py_versiondir}"
 
22359
fi
 
22360
 
 
22361
save_CPPFLAGS="$CPPFLAGS"
 
22362
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
 
22363
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22364
/* end confdefs.h.  */
 
22365
#include <Python.h>
 
22366
_ACEOF
 
22367
if ac_fn_c_try_cpp "$LINENO"; then :
 
22368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 
22369
$as_echo "found" >&6; }
 
22370
 
 
22371
else
 
22372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
22373
$as_echo "not found" >&6; }
 
22374
as_fn_error $? "
 
22375
*** Could not find Python headers.
 
22376
*** Please install them, or skip building the python scripting extension by
 
22377
*** passing --disable-python to configure (but then you will not be able
 
22378
*** to use scripts for GIMP that are written in Python)." "$LINENO" 5
 
22379
fi
 
22380
rm -f conftest.err conftest.i conftest.$ac_ext
 
22381
CPPFLAGS="$save_CPPFLAGS"
 
22382
 
 
22383
 
 
22384
  # Win32 needs all symbols resolved for linking, even for DLLs
 
22385
  # Assume the link library is in $exec_prefix/libs
 
22386
  # This might be able to be figured out from distutils, but it's
 
22387
  # not documented so we won't rely on internal implementation
 
22388
  PYLINK_LIBS=
 
22389
  if test "x$platform_win32" = "xyes"; then
 
22390
    PYBIN_PATH="$py_exec_prefix\pythonw.exe"
 
22391
    PYTHON_INCLUDES=`echo "$PYTHON_INCLUDES" | sed -e 's/\\\\/\\//g'`
 
22392
    py_exec_prefix=`echo "$py_exec_prefix" | sed -e 's/\\\\/\\//g'`
 
22393
    pylibversion=`echo $PYTHON_VERSION | sed -e 's/\\.//'`
 
22394
    PYLINK_LIBS="-L${py_exec_prefix}/libs -lpython${pylibversion}"
 
22395
  else
 
22396
    PYBIN_PATH="$PYTHON"
 
22397
  fi
 
22398
 
 
22399
 
 
22400
 
 
22401
  # check for PyGTK
 
22402
 
 
22403
pkg_failed=no
 
22404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGTK" >&5
 
22405
$as_echo_n "checking for PYGTK... " >&6; }
 
22406
 
 
22407
if test -n "$PYGTK_CFLAGS"; then
 
22408
    pkg_cv_PYGTK_CFLAGS="$PYGTK_CFLAGS"
 
22409
 elif test -n "$PKG_CONFIG"; then
 
22410
    if test -n "$PKG_CONFIG" && \
 
22411
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0 >= 2.10.4\""; } >&5
 
22412
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4") 2>&5
 
22413
  ac_status=$?
 
22414
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
22415
  test $ac_status = 0; }; then
 
22416
  pkg_cv_PYGTK_CFLAGS=`$PKG_CONFIG --cflags "pygtk-2.0 >= 2.10.4" 2>/dev/null`
 
22417
                      test "x$?" != "x0" && pkg_failed=yes
 
22418
else
 
22419
  pkg_failed=yes
 
22420
fi
 
22421
 else
 
22422
    pkg_failed=untried
 
22423
fi
 
22424
if test -n "$PYGTK_LIBS"; then
 
22425
    pkg_cv_PYGTK_LIBS="$PYGTK_LIBS"
 
22426
 elif test -n "$PKG_CONFIG"; then
 
22427
    if test -n "$PKG_CONFIG" && \
 
22428
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0 >= 2.10.4\""; } >&5
 
22429
  ($PKG_CONFIG --exists --print-errors "pygtk-2.0 >= 2.10.4") 2>&5
 
22430
  ac_status=$?
 
22431
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
22432
  test $ac_status = 0; }; then
 
22433
  pkg_cv_PYGTK_LIBS=`$PKG_CONFIG --libs "pygtk-2.0 >= 2.10.4" 2>/dev/null`
 
22434
                      test "x$?" != "x0" && pkg_failed=yes
 
22435
else
 
22436
  pkg_failed=yes
 
22437
fi
 
22438
 else
 
22439
    pkg_failed=untried
 
22440
fi
 
22441
 
 
22442
 
 
22443
 
 
22444
if test $pkg_failed = yes; then
 
22445
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22446
$as_echo "no" >&6; }
 
22447
 
 
22448
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22449
        _pkg_short_errors_supported=yes
 
22450
else
 
22451
        _pkg_short_errors_supported=no
 
22452
fi
 
22453
        if test $_pkg_short_errors_supported = yes; then
 
22454
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygtk-2.0 >= 2.10.4" 2>&1`
 
22455
        else
 
22456
                PYGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygtk-2.0 >= 2.10.4" 2>&1`
 
22457
        fi
 
22458
        # Put the nasty error message in config.log where it belongs
 
22459
        echo "$PYGTK_PKG_ERRORS" >&5
 
22460
 
 
22461
        as_fn_error $? "
 
22462
*** Could not find PyGTK 2.10.4 or newer.
 
22463
*** Please install it, or skip building the python scripting extension by
 
22464
*** passing --disable-python to configure (but then you will not be able
 
22465
*** to use scripts for GIMP that are written in Python)." "$LINENO" 5
 
22466
elif test $pkg_failed = untried; then
 
22467
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22468
$as_echo "no" >&6; }
 
22469
        as_fn_error $? "
 
22470
*** Could not find PyGTK 2.10.4 or newer.
 
22471
*** Please install it, or skip building the python scripting extension by
 
22472
*** passing --disable-python to configure (but then you will not be able
 
22473
*** to use scripts for GIMP that are written in Python)." "$LINENO" 5
 
22474
else
 
22475
        PYGTK_CFLAGS=$pkg_cv_PYGTK_CFLAGS
 
22476
        PYGTK_LIBS=$pkg_cv_PYGTK_LIBS
 
22477
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22478
$as_echo "yes" >&6; }
 
22479
 
 
22480
fi
 
22481
 
 
22482
  # Extract the first word of "pygtk-codegen-2.0", so it can be a program name with args.
 
22483
set dummy pygtk-codegen-2.0; ac_word=$2
 
22484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22485
$as_echo_n "checking for $ac_word... " >&6; }
 
22486
if ${ac_cv_path_PYGTK_CODEGEN+:} false; then :
 
22487
  $as_echo_n "(cached) " >&6
 
22488
else
 
22489
  case $PYGTK_CODEGEN in
 
22490
  [\\/]* | ?:[\\/]*)
 
22491
  ac_cv_path_PYGTK_CODEGEN="$PYGTK_CODEGEN" # Let the user override the test with a path.
 
22492
  ;;
 
22493
  *)
 
22494
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22495
for as_dir in $PATH
 
22496
do
 
22497
  IFS=$as_save_IFS
 
22498
  test -z "$as_dir" && as_dir=.
 
22499
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22500
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22501
    ac_cv_path_PYGTK_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
 
22502
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22503
    break 2
 
22504
  fi
 
22505
done
 
22506
  done
 
22507
IFS=$as_save_IFS
 
22508
 
 
22509
  test -z "$ac_cv_path_PYGTK_CODEGEN" && ac_cv_path_PYGTK_CODEGEN="no"
 
22510
  ;;
 
22511
esac
 
22512
fi
 
22513
PYGTK_CODEGEN=$ac_cv_path_PYGTK_CODEGEN
 
22514
if test -n "$PYGTK_CODEGEN"; then
 
22515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5
 
22516
$as_echo "$PYGTK_CODEGEN" >&6; }
 
22517
else
 
22518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22519
$as_echo "no" >&6; }
 
22520
fi
 
22521
 
 
22522
 
 
22523
  if test "x$PYGTK_CODEGEN" = xno; then
 
22524
    as_fn_error $? "
 
22525
*** Could not find pygtk-codegen-2.0 script.
 
22526
*** Please install it, or skip building the python scripting extension by
 
22527
*** passing --disable-python to configure (but then you will not be able
 
22528
*** to use scripts for GIMP that are written in Python)." "$LINENO" 5
 
22529
  fi
 
22530
 
 
22531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk defs" >&5
 
22532
$as_echo_n "checking for pygtk defs... " >&6; }
 
22533
  PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
 
22534
 
 
22535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_DEFSDIR" >&5
 
22536
$as_echo "$PYGTK_DEFSDIR" >&6; }
 
22537
 
 
22538
 
 
22539
  PYGIMP_EXTRA_CFLAGS=
 
22540
  for flag in '-fno-strict-aliasing'; do
 
22541
    if test -z "$PYGIMP_EXTRA_CFLAGS"; then
 
22542
      PYGIMP_EXTRA_CFLAGS_save_CFLAGS="$CFLAGS"
 
22543
      CFLAGS="$CFLAGS $flag"
 
22544
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $flag" >&5
 
22545
$as_echo_n "checking whether $CC understands $flag... " >&6; }
 
22546
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22547
/* end confdefs.h.  */
 
22548
 
 
22549
int
 
22550
main ()
 
22551
{
 
22552
 
 
22553
  ;
 
22554
  return 0;
 
22555
}
 
22556
_ACEOF
 
22557
if ac_fn_c_try_compile "$LINENO"; then :
 
22558
  PYGIMP_EXTRA_CFLAGS_works=yes
 
22559
else
 
22560
  PYGIMP_EXTRA_CFLAGS_works=no
 
22561
fi
 
22562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22563
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGIMP_EXTRA_CFLAGS_works" >&5
 
22564
$as_echo "$PYGIMP_EXTRA_CFLAGS_works" >&6; }
 
22565
      CFLAGS="$PYGIMP_EXTRA_CFLAGS_save_CFLAGS"
 
22566
      if test "x$PYGIMP_EXTRA_CFLAGS_works" = "xyes"; then
 
22567
        PYGIMP_EXTRA_CFLAGS="$flag"
 
22568
      fi
 
22569
    fi
 
22570
  done
 
22571
 
 
22572
 
 
22573
fi
 
22574
 if test "x$enable_python" != xno; then
 
22575
  BUILD_PYTHON_TRUE=
 
22576
  BUILD_PYTHON_FALSE='#'
 
22577
else
 
22578
  BUILD_PYTHON_TRUE='#'
 
22579
  BUILD_PYTHON_FALSE=
 
22580
fi
 
22581
 
 
22582
 
 
22583
 
 
22584
#########################################
 
22585
# Check whether Script-Fu should be built
 
22586
#########################################
 
22587
 
 
22588
have_script_fu=yes
 
22589
 
 
22590
# Check whether --with-script-fu was given.
 
22591
if test "${with_script_fu+set}" = set; then :
 
22592
  withval=$with_script_fu;
 
22593
fi
 
22594
 
 
22595
 
 
22596
if test "x$with_script_fu" = "xno"; then
 
22597
  have_script_fu="no (script-fu extension disabled)"
 
22598
fi
 
22599
 if test "x$with_script_fu" != "xno"; then
 
22600
  BUILD_SCRIPT_FU_TRUE=
 
22601
  BUILD_SCRIPT_FU_FALSE='#'
 
22602
else
 
22603
  BUILD_SCRIPT_FU_TRUE='#'
 
22604
  BUILD_SCRIPT_FU_FALSE=
 
22605
fi
 
22606
 
 
22607
 
 
22608
 
 
22609
###########################################################
 
22610
# Some plug-ins don't build on Win32, others are Win32-only
 
22611
###########################################################
 
22612
 
 
22613
if test "x$os_win32" = xno; then
 
22614
  MAIL='mail$(EXEEXT)'
 
22615
  SCREENSHOT='screenshot$(EXEEXT)'
 
22616
fi
 
22617
 
 
22618
 
 
22619
 
 
22620
 
 
22621
 
 
22622
####################
 
22623
# Check for Mac OS X
 
22624
####################
 
22625
 
 
22626
platform_osx=no
 
22627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling for Mac OS X" >&5
 
22628
$as_echo_n "checking if compiling for Mac OS X... " >&6; }
 
22629
case "$target_or_host" in
 
22630
  *-*-darwin*)
 
22631
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
22632
$as_echo "yes" >&6; }
 
22633
 
 
22634
$as_echo "#define PLATFORM_OSX 1" >>confdefs.h
 
22635
 
 
22636
     platform_osx=yes
 
22637
     ;;
 
22638
  *)
 
22639
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22640
$as_echo "no" >&6; }
 
22641
     ;;
 
22642
esac
 
22643
 
 
22644
 if test "x$platform_osx" = xyes; then
 
22645
  PLATFORM_OSX_TRUE=
 
22646
  PLATFORM_OSX_FALSE='#'
 
22647
else
 
22648
  PLATFORM_OSX_TRUE='#'
 
22649
  PLATFORM_OSX_FALSE=
 
22650
fi
 
22651
 
 
22652
 
 
22653
 
 
22654
####################################
 
22655
# Check for Mac OS X TWAIN framework
 
22656
####################################
 
22657
 
 
22658
 
 
22659
# Check whether --with-mac-twain was given.
 
22660
if test "${with_mac_twain+set}" = set; then :
 
22661
  withval=$with_mac_twain;
 
22662
fi
 
22663
 
 
22664
 
 
22665
mac_twain_ok=no
 
22666
if test "x$with_mac_twain" != xno; then
 
22667
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X TWAIN support" >&5
 
22668
$as_echo_n "checking for Mac OS X TWAIN support... " >&6; }
 
22669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
22670
/* end confdefs.h.  */
 
22671
 
 
22672
#include <Carbon/Carbon.h>
 
22673
#include <TWAIN/TWAIN.h>
 
22674
#ifdef __x86_64__
 
22675
#error Please somebody port this to non-deprecated and non-removed APIs
 
22676
#endif
 
22677
_ACEOF
 
22678
if ac_fn_c_try_cpp "$LINENO"; then :
 
22679
  mac_twain_ok=yes
 
22680
fi
 
22681
rm -f conftest.err conftest.i conftest.$ac_ext
 
22682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mac_twain_ok" >&5
 
22683
$as_echo "$mac_twain_ok" >&6; }
 
22684
fi
 
22685
 
 
22686
 if test "x$mac_twain_ok" = xyes; then
 
22687
  HAVE_MAC_TWAIN_TRUE=
 
22688
  HAVE_MAC_TWAIN_FALSE='#'
 
22689
else
 
22690
  HAVE_MAC_TWAIN_TRUE='#'
 
22691
  HAVE_MAC_TWAIN_FALSE=
 
22692
fi
 
22693
 
 
22694
 
 
22695
 
 
22696
##########################################################
 
22697
# Determine where to install the desktop & mime info files
 
22698
##########################################################
 
22699
 
 
22700
 
 
22701
# Check whether --with-desktop-dir was given.
 
22702
if test "${with_desktop_dir+set}" = set; then :
 
22703
  withval=$with_desktop_dir;
 
22704
fi
 
22705
 
 
22706
 
 
22707
if test "x$with_desktop_dir" != x; then
 
22708
  DESKTOP_DATADIR=$with_desktop_dir
 
22709
else
 
22710
  DESKTOP_DATADIR="$datadir"
 
22711
fi
 
22712
 
 
22713
 if test "x$with_desktop_dir" != xno; then
 
22714
  DESKTOP_DATADIR_TRUE=
 
22715
  DESKTOP_DATADIR_FALSE='#'
 
22716
else
 
22717
  DESKTOP_DATADIR_TRUE='#'
 
22718
  DESKTOP_DATADIR_FALSE=
 
22719
fi
 
22720
 
 
22721
 
 
22722
 
 
22723
 
 
22724
#####################
 
22725
# Check for XML tools
 
22726
#####################
 
22727
 
 
22728
# Extract the first word of "xmllint", so it can be a program name with args.
 
22729
set dummy xmllint; ac_word=$2
 
22730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22731
$as_echo_n "checking for $ac_word... " >&6; }
 
22732
if ${ac_cv_path_XMLLINT+:} false; then :
 
22733
  $as_echo_n "(cached) " >&6
 
22734
else
 
22735
  case $XMLLINT in
 
22736
  [\\/]* | ?:[\\/]*)
 
22737
  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
 
22738
  ;;
 
22739
  *)
 
22740
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22741
for as_dir in $PATH
 
22742
do
 
22743
  IFS=$as_save_IFS
 
22744
  test -z "$as_dir" && as_dir=.
 
22745
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22746
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22747
    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
 
22748
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22749
    break 2
 
22750
  fi
 
22751
done
 
22752
  done
 
22753
IFS=$as_save_IFS
 
22754
 
 
22755
  test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
 
22756
  ;;
 
22757
esac
 
22758
fi
 
22759
XMLLINT=$ac_cv_path_XMLLINT
 
22760
if test -n "$XMLLINT"; then
 
22761
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
 
22762
$as_echo "$XMLLINT" >&6; }
 
22763
else
 
22764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22765
$as_echo "no" >&6; }
 
22766
fi
 
22767
 
 
22768
 
 
22769
 if test "x$XMLLINT" != "xno"; then
 
22770
  HAVE_XMLLINT_TRUE=
 
22771
  HAVE_XMLLINT_FALSE='#'
 
22772
else
 
22773
  HAVE_XMLLINT_TRUE='#'
 
22774
  HAVE_XMLLINT_FALSE=
 
22775
fi
 
22776
 
 
22777
 
 
22778
# Extract the first word of "xsltproc", so it can be a program name with args.
 
22779
set dummy xsltproc; ac_word=$2
 
22780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22781
$as_echo_n "checking for $ac_word... " >&6; }
 
22782
if ${ac_cv_path_XSLTPROC+:} false; then :
 
22783
  $as_echo_n "(cached) " >&6
 
22784
else
 
22785
  case $XSLTPROC in
 
22786
  [\\/]* | ?:[\\/]*)
 
22787
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
 
22788
  ;;
 
22789
  *)
 
22790
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22791
for as_dir in $PATH
 
22792
do
 
22793
  IFS=$as_save_IFS
 
22794
  test -z "$as_dir" && as_dir=.
 
22795
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22796
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22797
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
 
22798
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22799
    break 2
 
22800
  fi
 
22801
done
 
22802
  done
 
22803
IFS=$as_save_IFS
 
22804
 
 
22805
  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
 
22806
  ;;
 
22807
esac
 
22808
fi
 
22809
XSLTPROC=$ac_cv_path_XSLTPROC
 
22810
if test -n "$XSLTPROC"; then
 
22811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
 
22812
$as_echo "$XSLTPROC" >&6; }
 
22813
else
 
22814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22815
$as_echo "no" >&6; }
 
22816
fi
 
22817
 
 
22818
 
 
22819
 if test "x$XSLTPROC" != "xno"; then
 
22820
  HAVE_XSLTPROC_TRUE=
 
22821
  HAVE_XSLTPROC_FALSE='#'
 
22822
else
 
22823
  HAVE_XSLTPROC_TRUE='#'
 
22824
  HAVE_XSLTPROC_FALSE=
 
22825
fi
 
22826
 
 
22827
 
 
22828
 
 
22829
####################
 
22830
# Check for xvfb-run
 
22831
####################
 
22832
 
 
22833
 
 
22834
# Check whether --with-xvfb-run was given.
 
22835
if test "${with_xvfb_run+set}" = set; then :
 
22836
  withval=$with_xvfb_run;
 
22837
fi
 
22838
 
 
22839
 
 
22840
have_xvfb_run="no (disabled)"
 
22841
if test "x$with_xvfb_run" != "xno"; then
 
22842
  # Extract the first word of "xvfb-run", so it can be a program name with args.
 
22843
set dummy xvfb-run; ac_word=$2
 
22844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22845
$as_echo_n "checking for $ac_word... " >&6; }
 
22846
if ${ac_cv_path_XVFB_RUN+:} false; then :
 
22847
  $as_echo_n "(cached) " >&6
 
22848
else
 
22849
  case $XVFB_RUN in
 
22850
  [\\/]* | ?:[\\/]*)
 
22851
  ac_cv_path_XVFB_RUN="$XVFB_RUN" # Let the user override the test with a path.
 
22852
  ;;
 
22853
  *)
 
22854
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22855
for as_dir in $PATH
 
22856
do
 
22857
  IFS=$as_save_IFS
 
22858
  test -z "$as_dir" && as_dir=.
 
22859
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22860
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22861
    ac_cv_path_XVFB_RUN="$as_dir/$ac_word$ac_exec_ext"
 
22862
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22863
    break 2
 
22864
  fi
 
22865
done
 
22866
  done
 
22867
IFS=$as_save_IFS
 
22868
 
 
22869
  test -z "$ac_cv_path_XVFB_RUN" && ac_cv_path_XVFB_RUN="no"
 
22870
  ;;
 
22871
esac
 
22872
fi
 
22873
XVFB_RUN=$ac_cv_path_XVFB_RUN
 
22874
if test -n "$XVFB_RUN"; then
 
22875
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB_RUN" >&5
 
22876
$as_echo "$XVFB_RUN" >&6; }
 
22877
else
 
22878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22879
$as_echo "no" >&6; }
 
22880
fi
 
22881
 
 
22882
 
 
22883
  if test "x$XVFB_RUN" != "xno"; then
 
22884
    have_xvfb_run="yes"
 
22885
  else
 
22886
    have_xvfb_run="no (not found)"
 
22887
  fi
 
22888
fi
 
22889
 if test "x$have_xvfb_run" == "xyes"; then
 
22890
  HAVE_XVFB_RUN_TRUE=
 
22891
  HAVE_XVFB_RUN_FALSE='#'
 
22892
else
 
22893
  HAVE_XVFB_RUN_TRUE='#'
 
22894
  HAVE_XVFB_RUN_FALSE=
 
22895
fi
 
22896
 
 
22897
 
 
22898
 
 
22899
######################################
 
22900
# Checks for gtk-doc and docbook-tools
 
22901
######################################
 
22902
 
 
22903
# Check for GTK_DOC_CHECK availability. The GTK_DOC_CHECK invocation
 
22904
# must be on its own line, gtkdocize relies on it
 
22905
 
 
22906
 
 
22907
 
 
22908
 
 
22909
    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
 
22910
set dummy gtkdoc-check; ac_word=$2
 
22911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22912
$as_echo_n "checking for $ac_word... " >&6; }
 
22913
if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
 
22914
  $as_echo_n "(cached) " >&6
 
22915
else
 
22916
  case $GTKDOC_CHECK in
 
22917
  [\\/]* | ?:[\\/]*)
 
22918
  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
 
22919
  ;;
 
22920
  *)
 
22921
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22922
for as_dir in $PATH
 
22923
do
 
22924
  IFS=$as_save_IFS
 
22925
  test -z "$as_dir" && as_dir=.
 
22926
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22927
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22928
    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
 
22929
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22930
    break 2
 
22931
  fi
 
22932
done
 
22933
  done
 
22934
IFS=$as_save_IFS
 
22935
 
 
22936
  ;;
 
22937
esac
 
22938
fi
 
22939
GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
 
22940
if test -n "$GTKDOC_CHECK"; then
 
22941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
 
22942
$as_echo "$GTKDOC_CHECK" >&6; }
 
22943
else
 
22944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22945
$as_echo "no" >&6; }
 
22946
fi
 
22947
 
 
22948
 
 
22949
  for ac_prog in gtkdoc-rebase
 
22950
do
 
22951
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
22952
set dummy $ac_prog; ac_word=$2
 
22953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22954
$as_echo_n "checking for $ac_word... " >&6; }
 
22955
if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
 
22956
  $as_echo_n "(cached) " >&6
 
22957
else
 
22958
  case $GTKDOC_REBASE in
 
22959
  [\\/]* | ?:[\\/]*)
 
22960
  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
 
22961
  ;;
 
22962
  *)
 
22963
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22964
for as_dir in $PATH
 
22965
do
 
22966
  IFS=$as_save_IFS
 
22967
  test -z "$as_dir" && as_dir=.
 
22968
    for ac_exec_ext in '' $ac_executable_extensions; do
 
22969
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22970
    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
 
22971
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22972
    break 2
 
22973
  fi
 
22974
done
 
22975
  done
 
22976
IFS=$as_save_IFS
 
22977
 
 
22978
  ;;
 
22979
esac
 
22980
fi
 
22981
GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
 
22982
if test -n "$GTKDOC_REBASE"; then
 
22983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
 
22984
$as_echo "$GTKDOC_REBASE" >&6; }
 
22985
else
 
22986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
22987
$as_echo "no" >&6; }
 
22988
fi
 
22989
 
 
22990
 
 
22991
  test -n "$GTKDOC_REBASE" && break
 
22992
done
 
22993
test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
 
22994
 
 
22995
  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
 
22996
set dummy gtkdoc-mkpdf; ac_word=$2
 
22997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
22998
$as_echo_n "checking for $ac_word... " >&6; }
 
22999
if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
 
23000
  $as_echo_n "(cached) " >&6
 
23001
else
 
23002
  case $GTKDOC_MKPDF in
 
23003
  [\\/]* | ?:[\\/]*)
 
23004
  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
 
23005
  ;;
 
23006
  *)
 
23007
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23008
for as_dir in $PATH
 
23009
do
 
23010
  IFS=$as_save_IFS
 
23011
  test -z "$as_dir" && as_dir=.
 
23012
    for ac_exec_ext in '' $ac_executable_extensions; do
 
23013
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23014
    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
 
23015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23016
    break 2
 
23017
  fi
 
23018
done
 
23019
  done
 
23020
IFS=$as_save_IFS
 
23021
 
 
23022
  ;;
 
23023
esac
 
23024
fi
 
23025
GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
 
23026
if test -n "$GTKDOC_MKPDF"; then
 
23027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
 
23028
$as_echo "$GTKDOC_MKPDF" >&6; }
 
23029
else
 
23030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23031
$as_echo "no" >&6; }
 
23032
fi
 
23033
 
 
23034
 
 
23035
 
 
23036
 
 
23037
# Check whether --with-html-dir was given.
 
23038
if test "${with_html_dir+set}" = set; then :
 
23039
  withval=$with_html_dir;
 
23040
else
 
23041
  with_html_dir='${datadir}/gtk-doc/html'
 
23042
fi
 
23043
 
 
23044
  HTML_DIR="$with_html_dir"
 
23045
 
 
23046
 
 
23047
    # Check whether --enable-gtk-doc was given.
 
23048
if test "${enable_gtk_doc+set}" = set; then :
 
23049
  enableval=$enable_gtk_doc;
 
23050
else
 
23051
  enable_gtk_doc=no
 
23052
fi
 
23053
 
 
23054
 
 
23055
  if test x$enable_gtk_doc = xyes; then
 
23056
    if test -n "$PKG_CONFIG" && \
 
23057
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
 
23058
  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
 
23059
  ac_status=$?
 
23060
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
23061
  test $ac_status = 0; }; then
 
23062
  :
 
23063
else
 
23064
  as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
 
23065
fi
 
23066
        if test "x$PACKAGE_NAME" != "xglib"; then
 
23067
 
 
23068
pkg_failed=no
 
23069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
 
23070
$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
 
23071
 
 
23072
if test -n "$GTKDOC_DEPS_CFLAGS"; then
 
23073
    pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
 
23074
 elif test -n "$PKG_CONFIG"; then
 
23075
    if test -n "$PKG_CONFIG" && \
 
23076
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
 
23077
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
 
23078
  ac_status=$?
 
23079
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
23080
  test $ac_status = 0; }; then
 
23081
  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
 
23082
                      test "x$?" != "x0" && pkg_failed=yes
 
23083
else
 
23084
  pkg_failed=yes
 
23085
fi
 
23086
 else
 
23087
    pkg_failed=untried
 
23088
fi
 
23089
if test -n "$GTKDOC_DEPS_LIBS"; then
 
23090
    pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
 
23091
 elif test -n "$PKG_CONFIG"; then
 
23092
    if test -n "$PKG_CONFIG" && \
 
23093
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
 
23094
  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
 
23095
  ac_status=$?
 
23096
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
23097
  test $ac_status = 0; }; then
 
23098
  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
 
23099
                      test "x$?" != "x0" && pkg_failed=yes
 
23100
else
 
23101
  pkg_failed=yes
 
23102
fi
 
23103
 else
 
23104
    pkg_failed=untried
 
23105
fi
 
23106
 
 
23107
 
 
23108
 
 
23109
if test $pkg_failed = yes; then
 
23110
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23111
$as_echo "no" >&6; }
 
23112
 
 
23113
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23114
        _pkg_short_errors_supported=yes
 
23115
else
 
23116
        _pkg_short_errors_supported=no
 
23117
fi
 
23118
        if test $_pkg_short_errors_supported = yes; then
 
23119
                GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
 
23120
        else
 
23121
                GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
 
23122
        fi
 
23123
        # Put the nasty error message in config.log where it belongs
 
23124
        echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
 
23125
 
 
23126
        as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
 
23127
 
 
23128
$GTKDOC_DEPS_PKG_ERRORS
 
23129
 
 
23130
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
23131
installed software in a non-standard prefix.
 
23132
 
 
23133
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
 
23134
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
 
23135
See the pkg-config man page for more details." "$LINENO" 5
 
23136
elif test $pkg_failed = untried; then
 
23137
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
23138
$as_echo "no" >&6; }
 
23139
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
23140
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
23141
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
 
23142
is in your PATH or set the PKG_CONFIG environment variable to the full
 
23143
path to pkg-config.
 
23144
 
 
23145
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
 
23146
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
 
23147
See the pkg-config man page for more details.
 
23148
 
 
23149
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
23150
See \`config.log' for more details" "$LINENO" 5; }
 
23151
else
 
23152
        GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
 
23153
        GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
 
23154
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
23155
$as_echo "yes" >&6; }
 
23156
 
 
23157
fi
 
23158
    fi
 
23159
  fi
 
23160
 
 
23161
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
 
23162
$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
 
23163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
 
23164
$as_echo "$enable_gtk_doc" >&6; }
 
23165
 
 
23166
    # Check whether --enable-gtk-doc-html was given.
 
23167
if test "${enable_gtk_doc_html+set}" = set; then :
 
23168
  enableval=$enable_gtk_doc_html;
 
23169
else
 
23170
  enable_gtk_doc_html=yes
 
23171
fi
 
23172
 
 
23173
    # Check whether --enable-gtk-doc-pdf was given.
 
23174
if test "${enable_gtk_doc_pdf+set}" = set; then :
 
23175
  enableval=$enable_gtk_doc_pdf;
 
23176
else
 
23177
  enable_gtk_doc_pdf=no
 
23178
fi
 
23179
 
 
23180
 
 
23181
  if test -z "$GTKDOC_MKPDF"; then
 
23182
    enable_gtk_doc_pdf=no
 
23183
  fi
 
23184
 
 
23185
 
 
23186
   if test x$enable_gtk_doc = xyes; then
 
23187
  ENABLE_GTK_DOC_TRUE=
 
23188
  ENABLE_GTK_DOC_FALSE='#'
 
23189
else
 
23190
  ENABLE_GTK_DOC_TRUE='#'
 
23191
  ENABLE_GTK_DOC_FALSE=
 
23192
fi
 
23193
 
 
23194
   if test x$enable_gtk_doc_html = xyes; then
 
23195
  GTK_DOC_BUILD_HTML_TRUE=
 
23196
  GTK_DOC_BUILD_HTML_FALSE='#'
 
23197
else
 
23198
  GTK_DOC_BUILD_HTML_TRUE='#'
 
23199
  GTK_DOC_BUILD_HTML_FALSE=
 
23200
fi
 
23201
 
 
23202
   if test x$enable_gtk_doc_pdf = xyes; then
 
23203
  GTK_DOC_BUILD_PDF_TRUE=
 
23204
  GTK_DOC_BUILD_PDF_FALSE='#'
 
23205
else
 
23206
  GTK_DOC_BUILD_PDF_TRUE='#'
 
23207
  GTK_DOC_BUILD_PDF_FALSE=
 
23208
fi
 
23209
 
 
23210
   if test -n "$LIBTOOL"; then
 
23211
  GTK_DOC_USE_LIBTOOL_TRUE=
 
23212
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
23213
else
 
23214
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
23215
  GTK_DOC_USE_LIBTOOL_FALSE=
 
23216
fi
 
23217
 
 
23218
   if test -n "$GTKDOC_REBASE"; then
 
23219
  GTK_DOC_USE_REBASE_TRUE=
 
23220
  GTK_DOC_USE_REBASE_FALSE='#'
 
23221
else
 
23222
  GTK_DOC_USE_REBASE_TRUE='#'
 
23223
  GTK_DOC_USE_REBASE_FALSE=
 
23224
fi
 
23225
 
 
23226
 
 
23227
 
 
23228
 
 
23229
# NOTE: We need to use a separate automake conditional for this
 
23230
#       to make this work with the tarballs.
 
23231
 if test "x$enable_gtk_doc" = xyes; then
 
23232
  ENABLE_GTK_DOC_TRUE=
 
23233
  ENABLE_GTK_DOC_FALSE='#'
 
23234
else
 
23235
  ENABLE_GTK_DOC_TRUE='#'
 
23236
  ENABLE_GTK_DOC_FALSE=
 
23237
fi
 
23238
 
 
23239
 
 
23240
# Check whether --enable-gtk-doc-app was given.
 
23241
if test "${enable_gtk_doc_app+set}" = set; then :
 
23242
  enableval=$enable_gtk_doc_app;
 
23243
else
 
23244
  enable_gtk_doc_app=no
 
23245
fi
 
23246
 
 
23247
 if test "x$enable_gtk_doc_app" = xyes; then
 
23248
  ENABLE_GTK_DOC_APP_TRUE=
 
23249
  ENABLE_GTK_DOC_APP_FALSE='#'
 
23250
else
 
23251
  ENABLE_GTK_DOC_APP_TRUE='#'
 
23252
  ENABLE_GTK_DOC_APP_FALSE=
 
23253
fi
 
23254
 
 
23255
 
 
23256
 
 
23257
#########################################
 
23258
# Allow to configure the GIMP environment
 
23259
#########################################
 
23260
 
 
23261
# Check whether --enable-default-binary was given.
 
23262
if test "${enable_default_binary+set}" = set; then :
 
23263
  enableval=$enable_default_binary;
 
23264
else
 
23265
  enable_default_binary=yes
 
23266
fi
 
23267
 
 
23268
 
 
23269
 if test "x$enable_default_binary" = xyes; then
 
23270
  DEFAULT_BINARY_TRUE=
 
23271
  DEFAULT_BINARY_FALSE='#'
 
23272
else
 
23273
  DEFAULT_BINARY_TRUE='#'
 
23274
  DEFAULT_BINARY_FALSE=
 
23275
fi
 
23276
 
 
23277
 
 
23278
 
 
23279
# Check whether --enable-gimp-console was given.
 
23280
if test "${enable_gimp_console+set}" = set; then :
 
23281
  enableval=$enable_gimp_console;
 
23282
else
 
23283
  enable_gimp_console=yes
 
23284
fi
 
23285
 
 
23286
 
 
23287
 if test "x$enable_gimp_console" != xno; then
 
23288
  ENABLE_GIMP_CONSOLE_TRUE=
 
23289
  ENABLE_GIMP_CONSOLE_FALSE='#'
 
23290
else
 
23291
  ENABLE_GIMP_CONSOLE_TRUE='#'
 
23292
  ENABLE_GIMP_CONSOLE_FALSE=
 
23293
fi
 
23294
 
 
23295
 
 
23296
 
 
23297
# Possibly change default gimpdir from .gimp-major.minor
 
23298
gimpdir=.gimp-2.8
 
23299
 
 
23300
# Check whether --with-gimpdir was given.
 
23301
if test "${with_gimpdir+set}" = set; then :
 
23302
  withval=$with_gimpdir; if eval "test x$with_gimpdir != x"; then
 
23303
  if eval "test x$with_gimpdir != xyes"; then
 
23304
    gimpdir=$with_gimpdir
 
23305
  fi
 
23306
fi
 
23307
fi
 
23308
 
 
23309
 
 
23310
gimpdatadir="$datadir/$PACKAGE/2.0"
 
23311
gimpplugindir="$libdir/$PACKAGE/2.0"
 
23312
gimpsysconfdir="$sysconfdir/$PACKAGE/2.0"
 
23313
 
 
23314
 
 
23315
 
 
23316
 
 
23317
 
 
23318
 
 
23319
 
 
23320
# GNU format message catalogs go into $datadir/locale,
 
23321
# standard location is $libdir/locale. DATADIRNAME set accordingly.
 
23322
 
 
23323
gimplocaledir="$datadir/locale"
 
23324
if test "$DATADIRNAME" = "lib"; then
 
23325
   gimplocaledir="$libdir/locale"
 
23326
fi
 
23327
 
 
23328
 
 
23329
 
 
23330
 
 
23331
############################
 
23332
# Some defines for the build
 
23333
############################
 
23334
 
 
23335
 if test "x$enable_static" = xyes; then
 
23336
  STATICLIBS_TRUE=
 
23337
  STATICLIBS_FALSE='#'
 
23338
else
 
23339
  STATICLIBS_TRUE='#'
 
23340
  STATICLIBS_FALSE=
 
23341
fi
 
23342
 
 
23343
 
 
23344
# a tuned version of glib-mkenums
 
23345
GIMP_MKENUMS="\$(PERL) \$(top_srcdir)/tools/gimp-mkenums"
 
23346
 
 
23347
 
 
23348
#Add required trailing ; to list
 
23349
MIME_TYPES="$MIME_TYPES;"
 
23350
 
 
23351
 
 
23352
 
 
23353
 
 
23354
#########################
 
23355
# Disable deprecated APIs
 
23356
#########################
 
23357
 
 
23358
CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE"
 
23359
 
 
23360
# Make sure not to disable deprecated APIs for unreleased versions.
 
23361
# We must build without problems with future releases of libraries
 
23362
# and disabling deprecated API risks breaking the build
 
23363
 
 
23364
if test "x$have_glib_2_31" != "xyes"; then
 
23365
  CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
 
23366
fi
 
23367
 
 
23368
if test "x$have_gtk_2_26" != "xyes"; then
 
23369
  CPPFLAGS="${CPPFLAGS} -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
 
23370
fi
 
23371
 
 
23372
if test "x$have_gdk_pixbuf_2_26" != "xyes"; then
 
23373
  CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED"
 
23374
fi
 
23375
 
 
23376
if test "x$have_pango_1_32" != "xyes"; then
 
23377
  CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
 
23378
fi
 
23379
 
 
23380
 
 
23381
############################
 
23382
# Require multihead safe API
 
23383
############################
 
23384
 
 
23385
CPPFLAGS="${CPPFLAGS} -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
 
23386
 
 
23387
 
 
23388
##################
 
23389
# configure output
 
23390
##################
 
23391
 
 
23392
# easy way to skip the plug-in build
 
23393
GIMP_PLUGINS=plug-ins
 
23394
GIMP_MODULES=modules
 
23395
 
 
23396
 
 
23397
 
 
23398
ac_config_commands="$ac_config_commands libgimpbase/gimpversion.h"
 
23399
 
 
23400
 
 
23401
ac_config_files="$ac_config_files tools/Makefile tools/pdbgen/Makefile libgimp/Makefile libgimpbase/Makefile libgimpconfig/Makefile libgimpcolor/Makefile libgimpmath/Makefile libgimpmodule/Makefile libgimpthumb/Makefile libgimpwidgets/Makefile app/Makefile app/actions/Makefile app/base/Makefile app/config/Makefile app/core/Makefile app/gegl/Makefile app/dialogs/Makefile app/display/Makefile app/file/Makefile app/gui/Makefile app/menus/Makefile app/paint/Makefile app/paint-funcs/Makefile app/composite/Makefile app/pdb/Makefile app/plug-in/Makefile app/text/Makefile app/tools/Makefile app/vectors/Makefile app/widgets/Makefile app/xcf/Makefile app/tests/Makefile app/tests/files/Makefile app/tests/gimpdir-empty/Makefile app/tests/gimpdir-empty/brushes/Makefile app/tests/gimpdir-empty/gradients/Makefile app/tests/gimpdir-empty/patterns/Makefile app/tests/gimpdir/Makefile app/tests/gimpdir/brushes/Makefile app/tests/gimpdir/gradients/Makefile app/tests/gimpdir/patterns/Makefile build/Makefile build/windows/Makefile build/windows/gimp.rc build/windows/gimp-plug-ins.rc plug-ins/Makefile plug-ins/color-rotate/Makefile plug-ins/color-rotate/images/Makefile plug-ins/file-bmp/Makefile plug-ins/file-compressor/Makefile plug-ins/file-faxg3/Makefile plug-ins/file-fits/Makefile plug-ins/file-fli/Makefile plug-ins/file-ico/Makefile plug-ins/file-jpeg/Makefile plug-ins/file-psd/Makefile plug-ins/file-sgi/Makefile plug-ins/file-uri/Makefile plug-ins/file-xjt/Makefile plug-ins/flame/Makefile plug-ins/fractal-explorer/Makefile plug-ins/fractal-explorer/examples/Makefile plug-ins/gfig/Makefile plug-ins/gfig/gfig-examples/Makefile plug-ins/gfig/images/Makefile plug-ins/ui/Makefile plug-ins/gimpressionist/Brushes/Makefile plug-ins/gimpressionist/Makefile plug-ins/gimpressionist/Paper/Makefile plug-ins/gimpressionist/Presets/Makefile plug-ins/gradient-flare/Makefile plug-ins/gradient-flare/flares/Makefile plug-ins/help-browser/Makefile plug-ins/help/Makefile plug-ins/ifs-compose/Makefile plug-ins/imagemap/Makefile plug-ins/imagemap/images/Makefile plug-ins/lighting/Makefile plug-ins/lighting/images/Makefile plug-ins/map-object/Makefile plug-ins/maze/Makefile plug-ins/metadata/Makefile plug-ins/pagecurl/Makefile plug-ins/print/Makefile plug-ins/pygimp/Makefile plug-ins/pygimp/plug-ins/Makefile plug-ins/script-fu/Makefile plug-ins/script-fu/ftx/Makefile plug-ins/script-fu/scripts/Makefile plug-ins/script-fu/scripts/images/Makefile plug-ins/script-fu/tinyscheme/Makefile plug-ins/selection-to-path/Makefile plug-ins/twain/Makefile plug-ins/win-snap/Makefile plug-ins/common/Makefile modules/Makefile devel-docs/Makefile devel-docs/app/Makefile devel-docs/app/version devel-docs/libgimp/Makefile devel-docs/libgimp/version devel-docs/libgimpbase/Makefile devel-docs/libgimpbase/version devel-docs/libgimpconfig/Makefile devel-docs/libgimpconfig/version devel-docs/libgimpcolor/Makefile devel-docs/libgimpcolor/version devel-docs/libgimpmath/Makefile devel-docs/libgimpmath/version devel-docs/libgimpmodule/Makefile devel-docs/libgimpmodule/version devel-docs/libgimpthumb/Makefile devel-docs/libgimpthumb/version devel-docs/libgimpwidgets/Makefile devel-docs/libgimpwidgets/version devel-docs/tools/Makefile docs/Makefile menus/Makefile cursors/Makefile themes/Makefile themes/Default/Makefile themes/Default/images/Makefile themes/Default/images/preferences/Makefile themes/Small/Makefile data/Makefile data/brushes/Makefile data/brushes/Basic/Makefile data/brushes/gimp-obsolete-files/Makefile data/brushes/Media/Makefile data/brushes/Legacy/Makefile data/brushes/Sketch/Makefile data/brushes/Splatters/Makefile data/brushes/Texture/Makefile data/dynamics/Makefile data/dynamics/Basic/Makefile data/dynamics/FX/Makefile data/environ/Makefile data/gradients/Makefile data/images/Makefile data/interpreters/Makefile data/palettes/Makefile data/patterns/Makefile data/tags/Makefile data/tips/Makefile data/tool-presets/Makefile data/tool-presets/FX/Makefile data/tool-presets/Paint/Makefile data/tool-presets/Selection/Makefile data/tool-presets/Sketch/Makefile desktop/Makefile desktop/gimp.desktop.in etc/Makefile m4macros/Makefile po/Makefile.in po-libgimp/Makefile.in po-plug-ins/Makefile.in po-python/Makefile.in po-script-fu/Makefile.in po-tips/Makefile.in gimp-zip Makefile"
 
23402
 
 
23403
 
 
23404
# Files with versions in their names
 
23405
ac_config_files="$ac_config_files docs/gimp-2.8.1:docs/gimp.1.in docs/gimprc-2.8.5:docs/gimprc.5.in docs/gimptool-2.0.1:docs/gimptool.1.in gimp-2.0.pc:gimp.pc.in gimpthumb-2.0.pc:gimpthumb.pc.in gimpui-2.0.pc:gimpui.pc.in"
 
23406
 
 
23407
 
 
23408
ac_config_commands="$ac_config_commands sed-po-makefiles"
 
23409
 
 
23410
 
 
23411
cat >confcache <<\_ACEOF
 
23412
# This file is a shell script that caches the results of configure
 
23413
# tests run on this system so they can be shared between configure
 
23414
# scripts and configure runs, see configure's option --config-cache.
 
23415
# It is not useful on other systems.  If it contains results you don't
 
23416
# want to keep, you may remove or edit it.
 
23417
#
 
23418
# config.status only pays attention to the cache file if you give it
 
23419
# the --recheck option to rerun configure.
 
23420
#
 
23421
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
23422
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
23423
# following values.
 
23424
 
 
23425
_ACEOF
 
23426
 
 
23427
# The following way of writing the cache mishandles newlines in values,
 
23428
# but we know of no workaround that is simple, portable, and efficient.
 
23429
# So, we kill variables containing newlines.
 
23430
# Ultrix sh set writes to stderr and can't be redirected directly,
 
23431
# and sets the high bit in the cache file unless we assign to the vars.
 
23432
(
 
23433
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
23434
    eval ac_val=\$$ac_var
 
23435
    case $ac_val in #(
 
23436
    *${as_nl}*)
 
23437
      case $ac_var in #(
 
23438
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
23439
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
23440
      esac
 
23441
      case $ac_var in #(
 
23442
      _ | IFS | as_nl) ;; #(
 
23443
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
23444
      *) { eval $ac_var=; unset $ac_var;} ;;
 
23445
      esac ;;
 
23446
    esac
 
23447
  done
 
23448
 
 
23449
  (set) 2>&1 |
 
23450
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
23451
    *${as_nl}ac_space=\ *)
 
23452
      # `set' does not quote correctly, so add quotes: double-quote
 
23453
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
23454
      sed -n \
 
23455
        "s/'/'\\\\''/g;
 
23456
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
23457
      ;; #(
 
23458
    *)
 
23459
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
23460
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
23461
      ;;
 
23462
    esac |
 
23463
    sort
 
23464
) |
 
23465
  sed '
 
23466
     /^ac_cv_env_/b end
 
23467
     t clear
 
23468
     :clear
 
23469
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
23470
     t end
 
23471
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
23472
     :end' >>confcache
 
23473
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
23474
  if test -w "$cache_file"; then
 
23475
    if test "x$cache_file" != "x/dev/null"; then
 
23476
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
23477
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
23478
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
23479
        cat confcache >"$cache_file"
 
23480
      else
 
23481
        case $cache_file in #(
 
23482
        */* | ?:*)
 
23483
          mv -f confcache "$cache_file"$$ &&
 
23484
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
23485
        *)
 
23486
          mv -f confcache "$cache_file" ;;
 
23487
        esac
 
23488
      fi
 
23489
    fi
 
23490
  else
 
23491
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
23492
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
23493
  fi
 
23494
fi
 
23495
rm -f confcache
 
23496
 
 
23497
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
23498
# Let make expand exec_prefix.
 
23499
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
23500
 
 
23501
DEFS=-DHAVE_CONFIG_H
 
23502
 
 
23503
ac_libobjs=
 
23504
ac_ltlibobjs=
 
23505
U=
 
23506
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
23507
  # 1. Remove the extension, and $U if already installed.
 
23508
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
23509
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
23510
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
23511
  #    will be set to the directory where LIBOBJS objects are built.
 
23512
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
23513
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
23514
done
 
23515
LIBOBJS=$ac_libobjs
 
23516
 
 
23517
LTLIBOBJS=$ac_ltlibobjs
 
23518
 
 
23519
 
 
23520
 if test -n "$EXEEXT"; then
 
23521
  am__EXEEXT_TRUE=
 
23522
  am__EXEEXT_FALSE='#'
 
23523
else
 
23524
  am__EXEEXT_TRUE='#'
 
23525
  am__EXEEXT_FALSE=
 
23526
fi
 
23527
 
 
23528
if test -z "${GIMP_UNSTABLE_TRUE}" && test -z "${GIMP_UNSTABLE_FALSE}"; then
 
23529
  as_fn_error $? "conditional \"GIMP_UNSTABLE\" was never defined.
 
23530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23531
fi
 
23532
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
23533
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
23534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23535
fi
 
23536
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
23537
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
23538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23539
fi
 
23540
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
 
23541
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
 
23542
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23543
fi
 
23544
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
23545
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
23546
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23547
fi
 
23548
if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
 
23549
  as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
 
23550
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23551
fi
 
23552
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
 
23553
  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
 
23554
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23555
fi
 
23556
if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
 
23557
  as_fn_error $? "conditional \"OS_UNIX\" was never defined.
 
23558
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23559
fi
 
23560
if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
 
23561
  as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
 
23562
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23563
fi
 
23564
if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
 
23565
  as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
 
23566
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23567
fi
 
23568
if test -z "${USE_BINRELOC_TRUE}" && test -z "${USE_BINRELOC_FALSE}"; then
 
23569
  as_fn_error $? "conditional \"USE_BINRELOC\" was never defined.
 
23570
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23571
fi
 
23572
 
 
23573
  ac_config_commands="$ac_config_commands po/stamp-it"
 
23574
 
 
23575
 
 
23576
if test -z "${BUILD_JPEG_TRUE}" && test -z "${BUILD_JPEG_FALSE}"; then
 
23577
  as_fn_error $? "conditional \"BUILD_JPEG\" was never defined.
 
23578
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23579
fi
 
23580
if test -z "${BUILD_XJT_TRUE}" && test -z "${BUILD_XJT_FALSE}"; then
 
23581
  as_fn_error $? "conditional \"BUILD_XJT\" was never defined.
 
23582
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23583
fi
 
23584
if test -z "${HAVE_Z_TRUE}" && test -z "${HAVE_Z_FALSE}"; then
 
23585
  as_fn_error $? "conditional \"HAVE_Z\" was never defined.
 
23586
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23587
fi
 
23588
if test -z "${HAVE_BZIP2_TRUE}" && test -z "${HAVE_BZIP2_FALSE}"; then
 
23589
  as_fn_error $? "conditional \"HAVE_BZIP2\" was never defined.
 
23590
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23591
fi
 
23592
if test -z "${HAVE_GS_TRUE}" && test -z "${HAVE_GS_FALSE}"; then
 
23593
  as_fn_error $? "conditional \"HAVE_GS\" was never defined.
 
23594
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23595
fi
 
23596
if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then
 
23597
  as_fn_error $? "conditional \"HAVE_PNG\" was never defined.
 
23598
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23599
fi
 
23600
if test -z "${HAVE_LIBEXIF_TRUE}" && test -z "${HAVE_LIBEXIF_FALSE}"; then
 
23601
  as_fn_error $? "conditional \"HAVE_LIBEXIF\" was never defined.
 
23602
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23603
fi
 
23604
if test -z "${HAVE_WEBKIT_TRUE}" && test -z "${HAVE_WEBKIT_FALSE}"; then
 
23605
  as_fn_error $? "conditional \"HAVE_WEBKIT\" was never defined.
 
23606
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23607
fi
 
23608
if test -z "${BUILD_PRINT_TRUE}" && test -z "${BUILD_PRINT_FALSE}"; then
 
23609
  as_fn_error $? "conditional \"BUILD_PRINT\" was never defined.
 
23610
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23611
fi
 
23612
if test -z "${HAVE_GVFS_TRUE}" && test -z "${HAVE_GVFS_FALSE}"; then
 
23613
  as_fn_error $? "conditional \"HAVE_GVFS\" was never defined.
 
23614
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23615
fi
 
23616
if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then
 
23617
  as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined.
 
23618
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23619
fi
 
23620
if test -z "${BUILD_JP2_TRUE}" && test -z "${BUILD_JP2_FALSE}"; then
 
23621
  as_fn_error $? "conditional \"BUILD_JP2\" was never defined.
 
23622
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23623
fi
 
23624
if test -z "${HAVE_LCMS_TRUE}" && test -z "${HAVE_LCMS_FALSE}"; then
 
23625
  as_fn_error $? "conditional \"HAVE_LCMS\" was never defined.
 
23626
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23627
fi
 
23628
if test -z "${HAVE_LINUX_INPUT_TRUE}" && test -z "${HAVE_LINUX_INPUT_FALSE}"; then
 
23629
  as_fn_error $? "conditional \"HAVE_LINUX_INPUT\" was never defined.
 
23630
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23631
fi
 
23632
if test -z "${HAVE_DX_DINPUT_TRUE}" && test -z "${HAVE_DX_DINPUT_FALSE}"; then
 
23633
  as_fn_error $? "conditional \"HAVE_DX_DINPUT\" was never defined.
 
23634
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23635
fi
 
23636
if test -z "${WITH_PDBGEN_TRUE}" && test -z "${WITH_PDBGEN_FALSE}"; then
 
23637
  as_fn_error $? "conditional \"WITH_PDBGEN\" was never defined.
 
23638
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23639
fi
 
23640
if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
 
23641
  as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
 
23642
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23643
fi
 
23644
if test -z "${BUILD_SCRIPT_FU_TRUE}" && test -z "${BUILD_SCRIPT_FU_FALSE}"; then
 
23645
  as_fn_error $? "conditional \"BUILD_SCRIPT_FU\" was never defined.
 
23646
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23647
fi
 
23648
if test -z "${PLATFORM_OSX_TRUE}" && test -z "${PLATFORM_OSX_FALSE}"; then
 
23649
  as_fn_error $? "conditional \"PLATFORM_OSX\" was never defined.
 
23650
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23651
fi
 
23652
if test -z "${HAVE_MAC_TWAIN_TRUE}" && test -z "${HAVE_MAC_TWAIN_FALSE}"; then
 
23653
  as_fn_error $? "conditional \"HAVE_MAC_TWAIN\" was never defined.
 
23654
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23655
fi
 
23656
if test -z "${DESKTOP_DATADIR_TRUE}" && test -z "${DESKTOP_DATADIR_FALSE}"; then
 
23657
  as_fn_error $? "conditional \"DESKTOP_DATADIR\" was never defined.
 
23658
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23659
fi
 
23660
if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then
 
23661
  as_fn_error $? "conditional \"HAVE_XMLLINT\" was never defined.
 
23662
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23663
fi
 
23664
if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
 
23665
  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
 
23666
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23667
fi
 
23668
if test -z "${HAVE_XVFB_RUN_TRUE}" && test -z "${HAVE_XVFB_RUN_FALSE}"; then
 
23669
  as_fn_error $? "conditional \"HAVE_XVFB_RUN\" was never defined.
 
23670
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23671
fi
 
23672
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
23673
  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
 
23674
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23675
fi
 
23676
if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
 
23677
  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
 
23678
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23679
fi
 
23680
if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
 
23681
  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
 
23682
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23683
fi
 
23684
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
23685
  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
23686
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23687
fi
 
23688
if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
 
23689
  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
 
23690
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23691
fi
 
23692
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
23693
  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
 
23694
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23695
fi
 
23696
if test -z "${ENABLE_GTK_DOC_APP_TRUE}" && test -z "${ENABLE_GTK_DOC_APP_FALSE}"; then
 
23697
  as_fn_error $? "conditional \"ENABLE_GTK_DOC_APP\" was never defined.
 
23698
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23699
fi
 
23700
if test -z "${DEFAULT_BINARY_TRUE}" && test -z "${DEFAULT_BINARY_FALSE}"; then
 
23701
  as_fn_error $? "conditional \"DEFAULT_BINARY\" was never defined.
 
23702
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23703
fi
 
23704
if test -z "${ENABLE_GIMP_CONSOLE_TRUE}" && test -z "${ENABLE_GIMP_CONSOLE_FALSE}"; then
 
23705
  as_fn_error $? "conditional \"ENABLE_GIMP_CONSOLE\" was never defined.
 
23706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23707
fi
 
23708
if test -z "${STATICLIBS_TRUE}" && test -z "${STATICLIBS_FALSE}"; then
 
23709
  as_fn_error $? "conditional \"STATICLIBS\" was never defined.
 
23710
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
23711
fi
 
23712
 
 
23713
: "${CONFIG_STATUS=./config.status}"
 
23714
ac_write_fail=0
 
23715
ac_clean_files_save=$ac_clean_files
 
23716
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
23717
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
23718
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
23719
as_write_fail=0
 
23720
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
23721
#! $SHELL
 
23722
# Generated by $as_me.
 
23723
# Run this file to recreate the current configuration.
 
23724
# Compiler output produced by configure, useful for debugging
 
23725
# configure, is in config.log if it exists.
 
23726
 
 
23727
debug=false
 
23728
ac_cs_recheck=false
 
23729
ac_cs_silent=false
 
23730
 
 
23731
SHELL=\${CONFIG_SHELL-$SHELL}
 
23732
export SHELL
 
23733
_ASEOF
 
23734
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
23735
## -------------------- ##
 
23736
## M4sh Initialization. ##
 
23737
## -------------------- ##
 
23738
 
 
23739
# Be more Bourne compatible
 
23740
DUALCASE=1; export DUALCASE # for MKS sh
 
23741
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
23742
  emulate sh
 
23743
  NULLCMD=:
 
23744
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23745
  # is contrary to our usage.  Disable this feature.
 
23746
  alias -g '${1+"$@"}'='"$@"'
 
23747
  setopt NO_GLOB_SUBST
 
23748
else
 
23749
  case `(set -o) 2>/dev/null` in #(
 
23750
  *posix*) :
 
23751
    set -o posix ;; #(
 
23752
  *) :
 
23753
     ;;
 
23754
esac
 
23755
fi
 
23756
 
 
23757
 
 
23758
as_nl='
 
23759
'
 
23760
export as_nl
 
23761
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
23762
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
23763
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
23764
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
23765
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
23766
# but without wasting forks for bash or zsh.
 
23767
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
23768
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
23769
  as_echo='print -r --'
 
23770
  as_echo_n='print -rn --'
 
23771
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
23772
  as_echo='printf %s\n'
 
23773
  as_echo_n='printf %s'
 
23774
else
 
23775
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
23776
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
23777
    as_echo_n='/usr/ucb/echo -n'
 
23778
  else
 
23779
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
23780
    as_echo_n_body='eval
 
23781
      arg=$1;
 
23782
      case $arg in #(
 
23783
      *"$as_nl"*)
 
23784
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
23785
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
23786
      esac;
 
23787
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
23788
    '
 
23789
    export as_echo_n_body
 
23790
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
23791
  fi
 
23792
  export as_echo_body
 
23793
  as_echo='sh -c $as_echo_body as_echo'
 
23794
fi
 
23795
 
 
23796
# The user is always right.
 
23797
if test "${PATH_SEPARATOR+set}" != set; then
 
23798
  PATH_SEPARATOR=:
 
23799
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
23800
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
23801
      PATH_SEPARATOR=';'
 
23802
  }
 
23803
fi
 
23804
 
 
23805
 
 
23806
# IFS
 
23807
# We need space, tab and new line, in precisely that order.  Quoting is
 
23808
# there to prevent editors from complaining about space-tab.
 
23809
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
23810
# splitting by setting IFS to empty value.)
 
23811
IFS=" ""        $as_nl"
 
23812
 
 
23813
# Find who we are.  Look in the path if we contain no directory separator.
 
23814
as_myself=
 
23815
case $0 in #((
 
23816
  *[\\/]* ) as_myself=$0 ;;
 
23817
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23818
for as_dir in $PATH
 
23819
do
 
23820
  IFS=$as_save_IFS
 
23821
  test -z "$as_dir" && as_dir=.
 
23822
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23823
  done
 
23824
IFS=$as_save_IFS
 
23825
 
 
23826
     ;;
 
23827
esac
 
23828
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
23829
# in which case we are not to be found in the path.
 
23830
if test "x$as_myself" = x; then
 
23831
  as_myself=$0
 
23832
fi
 
23833
if test ! -f "$as_myself"; then
 
23834
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
23835
  exit 1
 
23836
fi
 
23837
 
 
23838
# Unset variables that we do not need and which cause bugs (e.g. in
 
23839
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
23840
# suppresses any "Segmentation fault" message there.  '((' could
 
23841
# trigger a bug in pdksh 5.2.14.
 
23842
for as_var in BASH_ENV ENV MAIL MAILPATH
 
23843
do eval test x\${$as_var+set} = xset \
 
23844
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
23845
done
 
23846
PS1='$ '
 
23847
PS2='> '
 
23848
PS4='+ '
 
23849
 
 
23850
# NLS nuisances.
 
23851
LC_ALL=C
 
23852
export LC_ALL
 
23853
LANGUAGE=C
 
23854
export LANGUAGE
 
23855
 
 
23856
# CDPATH.
 
23857
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
23858
 
 
23859
 
 
23860
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
23861
# ----------------------------------------
 
23862
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
23863
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
23864
# script with STATUS, using 1 if that was 0.
 
23865
as_fn_error ()
 
23866
{
 
23867
  as_status=$1; test $as_status -eq 0 && as_status=1
 
23868
  if test "$4"; then
 
23869
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
23870
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
23871
  fi
 
23872
  $as_echo "$as_me: error: $2" >&2
 
23873
  as_fn_exit $as_status
 
23874
} # as_fn_error
 
23875
 
 
23876
 
 
23877
# as_fn_set_status STATUS
 
23878
# -----------------------
 
23879
# Set $? to STATUS, without forking.
 
23880
as_fn_set_status ()
 
23881
{
 
23882
  return $1
 
23883
} # as_fn_set_status
 
23884
 
 
23885
# as_fn_exit STATUS
 
23886
# -----------------
 
23887
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
23888
as_fn_exit ()
 
23889
{
 
23890
  set +e
 
23891
  as_fn_set_status $1
 
23892
  exit $1
 
23893
} # as_fn_exit
 
23894
 
 
23895
# as_fn_unset VAR
 
23896
# ---------------
 
23897
# Portably unset VAR.
 
23898
as_fn_unset ()
 
23899
{
 
23900
  { eval $1=; unset $1;}
 
23901
}
 
23902
as_unset=as_fn_unset
 
23903
# as_fn_append VAR VALUE
 
23904
# ----------------------
 
23905
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
23906
# advantage of any shell optimizations that allow amortized linear growth over
 
23907
# repeated appends, instead of the typical quadratic growth present in naive
 
23908
# implementations.
 
23909
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
23910
  eval 'as_fn_append ()
 
23911
  {
 
23912
    eval $1+=\$2
 
23913
  }'
 
23914
else
 
23915
  as_fn_append ()
 
23916
  {
 
23917
    eval $1=\$$1\$2
 
23918
  }
 
23919
fi # as_fn_append
 
23920
 
 
23921
# as_fn_arith ARG...
 
23922
# ------------------
 
23923
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
23924
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
23925
# must be portable across $(()) and expr.
 
23926
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
23927
  eval 'as_fn_arith ()
 
23928
  {
 
23929
    as_val=$(( $* ))
 
23930
  }'
 
23931
else
 
23932
  as_fn_arith ()
 
23933
  {
 
23934
    as_val=`expr "$@" || test $? -eq 1`
 
23935
  }
 
23936
fi # as_fn_arith
 
23937
 
 
23938
 
 
23939
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23940
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23941
  as_expr=expr
 
23942
else
 
23943
  as_expr=false
 
23944
fi
 
23945
 
 
23946
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
23947
  as_basename=basename
 
23948
else
 
23949
  as_basename=false
 
23950
fi
 
23951
 
 
23952
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
23953
  as_dirname=dirname
 
23954
else
 
23955
  as_dirname=false
 
23956
fi
 
23957
 
 
23958
as_me=`$as_basename -- "$0" ||
 
23959
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23960
         X"$0" : 'X\(//\)$' \| \
 
23961
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
23962
$as_echo X/"$0" |
 
23963
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
23964
            s//\1/
 
23965
            q
 
23966
          }
 
23967
          /^X\/\(\/\/\)$/{
 
23968
            s//\1/
 
23969
            q
 
23970
          }
 
23971
          /^X\/\(\/\).*/{
 
23972
            s//\1/
 
23973
            q
 
23974
          }
 
23975
          s/.*/./; q'`
 
23976
 
 
23977
# Avoid depending upon Character Ranges.
 
23978
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23979
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23980
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23981
as_cr_digits='0123456789'
 
23982
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23983
 
 
23984
ECHO_C= ECHO_N= ECHO_T=
 
23985
case `echo -n x` in #(((((
 
23986
-n*)
 
23987
  case `echo 'xy\c'` in
 
23988
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
23989
  xy)  ECHO_C='\c';;
 
23990
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
23991
       ECHO_T=' ';;
 
23992
  esac;;
 
23993
*)
 
23994
  ECHO_N='-n';;
 
23995
esac
 
23996
 
 
23997
rm -f conf$$ conf$$.exe conf$$.file
 
23998
if test -d conf$$.dir; then
 
23999
  rm -f conf$$.dir/conf$$.file
 
24000
else
 
24001
  rm -f conf$$.dir
 
24002
  mkdir conf$$.dir 2>/dev/null
 
24003
fi
 
24004
if (echo >conf$$.file) 2>/dev/null; then
 
24005
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24006
    as_ln_s='ln -s'
 
24007
    # ... but there are two gotchas:
 
24008
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24009
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24010
    # In both cases, we have to default to `cp -pR'.
 
24011
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24012
      as_ln_s='cp -pR'
 
24013
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
24014
    as_ln_s=ln
 
24015
  else
 
24016
    as_ln_s='cp -pR'
 
24017
  fi
 
24018
else
 
24019
  as_ln_s='cp -pR'
 
24020
fi
 
24021
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24022
rmdir conf$$.dir 2>/dev/null
 
24023
 
 
24024
 
 
24025
# as_fn_mkdir_p
 
24026
# -------------
 
24027
# Create "$as_dir" as a directory, including parents if necessary.
 
24028
as_fn_mkdir_p ()
 
24029
{
 
24030
 
 
24031
  case $as_dir in #(
 
24032
  -*) as_dir=./$as_dir;;
 
24033
  esac
 
24034
  test -d "$as_dir" || eval $as_mkdir_p || {
 
24035
    as_dirs=
 
24036
    while :; do
 
24037
      case $as_dir in #(
 
24038
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
24039
      *) as_qdir=$as_dir;;
 
24040
      esac
 
24041
      as_dirs="'$as_qdir' $as_dirs"
 
24042
      as_dir=`$as_dirname -- "$as_dir" ||
 
24043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24044
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24045
         X"$as_dir" : 'X\(//\)$' \| \
 
24046
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
24047
$as_echo X"$as_dir" |
 
24048
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24049
            s//\1/
 
24050
            q
 
24051
          }
 
24052
          /^X\(\/\/\)[^/].*/{
 
24053
            s//\1/
 
24054
            q
 
24055
          }
 
24056
          /^X\(\/\/\)$/{
 
24057
            s//\1/
 
24058
            q
 
24059
          }
 
24060
          /^X\(\/\).*/{
 
24061
            s//\1/
 
24062
            q
 
24063
          }
 
24064
          s/.*/./; q'`
 
24065
      test -d "$as_dir" && break
 
24066
    done
 
24067
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24068
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
24069
 
 
24070
 
 
24071
} # as_fn_mkdir_p
 
24072
if mkdir -p . 2>/dev/null; then
 
24073
  as_mkdir_p='mkdir -p "$as_dir"'
 
24074
else
 
24075
  test -d ./-p && rmdir ./-p
 
24076
  as_mkdir_p=false
 
24077
fi
 
24078
 
 
24079
 
 
24080
# as_fn_executable_p FILE
 
24081
# -----------------------
 
24082
# Test if FILE is an executable regular file.
 
24083
as_fn_executable_p ()
 
24084
{
 
24085
  test -f "$1" && test -x "$1"
 
24086
} # as_fn_executable_p
 
24087
as_test_x='test -x'
 
24088
as_executable_p=as_fn_executable_p
 
24089
 
 
24090
# Sed expression to map a string onto a valid CPP name.
 
24091
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24092
 
 
24093
# Sed expression to map a string onto a valid variable name.
 
24094
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24095
 
 
24096
 
 
24097
exec 6>&1
 
24098
## ----------------------------------- ##
 
24099
## Main body of $CONFIG_STATUS script. ##
 
24100
## ----------------------------------- ##
 
24101
_ASEOF
 
24102
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
24103
 
 
24104
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24105
# Save the log message, to keep $0 and so on meaningful, and to
 
24106
# report actual input values of CONFIG_FILES etc. instead of their
 
24107
# values after options handling.
 
24108
ac_log="
 
24109
This file was extended by GIMP $as_me 2.8.2, which was
 
24110
generated by GNU Autoconf 2.69.  Invocation command line was
 
24111
 
 
24112
  CONFIG_FILES    = $CONFIG_FILES
 
24113
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24114
  CONFIG_LINKS    = $CONFIG_LINKS
 
24115
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24116
  $ $0 $@
 
24117
 
 
24118
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
24119
"
 
24120
 
 
24121
_ACEOF
 
24122
 
 
24123
case $ac_config_files in *"
 
24124
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
24125
esac
 
24126
 
 
24127
case $ac_config_headers in *"
 
24128
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
24129
esac
 
24130
 
 
24131
 
 
24132
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24133
# Files that config.status was made for.
 
24134
config_files="$ac_config_files"
 
24135
config_headers="$ac_config_headers"
 
24136
config_commands="$ac_config_commands"
 
24137
 
 
24138
_ACEOF
 
24139
 
 
24140
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24141
ac_cs_usage="\
 
24142
\`$as_me' instantiates files and other configuration actions
 
24143
from templates according to the current configuration.  Unless the files
 
24144
and actions are specified as TAGs, all are instantiated by default.
 
24145
 
 
24146
Usage: $0 [OPTION]... [TAG]...
 
24147
 
 
24148
  -h, --help       print this help, then exit
 
24149
  -V, --version    print version number and configuration settings, then exit
 
24150
      --config     print configuration, then exit
 
24151
  -q, --quiet, --silent
 
24152
                   do not print progress messages
 
24153
  -d, --debug      don't remove temporary files
 
24154
      --recheck    update $as_me by reconfiguring in the same conditions
 
24155
      --file=FILE[:TEMPLATE]
 
24156
                   instantiate the configuration file FILE
 
24157
      --header=FILE[:TEMPLATE]
 
24158
                   instantiate the configuration header FILE
 
24159
 
 
24160
Configuration files:
 
24161
$config_files
 
24162
 
 
24163
Configuration headers:
 
24164
$config_headers
 
24165
 
 
24166
Configuration commands:
 
24167
$config_commands
 
24168
 
 
24169
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP>."
 
24170
 
 
24171
_ACEOF
 
24172
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24173
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
24174
ac_cs_version="\\
 
24175
GIMP config.status 2.8.2
 
24176
configured by $0, generated by GNU Autoconf 2.69,
 
24177
  with options \\"\$ac_cs_config\\"
 
24178
 
 
24179
Copyright (C) 2012 Free Software Foundation, Inc.
 
24180
This config.status script is free software; the Free Software Foundation
 
24181
gives unlimited permission to copy, distribute and modify it."
 
24182
 
 
24183
ac_pwd='$ac_pwd'
 
24184
srcdir='$srcdir'
 
24185
INSTALL='$INSTALL'
 
24186
MKDIR_P='$MKDIR_P'
 
24187
AWK='$AWK'
 
24188
test -n "\$AWK" || AWK=awk
 
24189
_ACEOF
 
24190
 
 
24191
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24192
# The default lists apply if the user does not specify any file.
 
24193
ac_need_defaults=:
 
24194
while test $# != 0
 
24195
do
 
24196
  case $1 in
 
24197
  --*=?*)
 
24198
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
24199
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
24200
    ac_shift=:
 
24201
    ;;
 
24202
  --*=)
 
24203
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
24204
    ac_optarg=
 
24205
    ac_shift=:
 
24206
    ;;
 
24207
  *)
 
24208
    ac_option=$1
 
24209
    ac_optarg=$2
 
24210
    ac_shift=shift
 
24211
    ;;
 
24212
  esac
 
24213
 
 
24214
  case $ac_option in
 
24215
  # Handling of the options.
 
24216
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24217
    ac_cs_recheck=: ;;
 
24218
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
24219
    $as_echo "$ac_cs_version"; exit ;;
 
24220
  --config | --confi | --conf | --con | --co | --c )
 
24221
    $as_echo "$ac_cs_config"; exit ;;
 
24222
  --debug | --debu | --deb | --de | --d | -d )
 
24223
    debug=: ;;
 
24224
  --file | --fil | --fi | --f )
 
24225
    $ac_shift
 
24226
    case $ac_optarg in
 
24227
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
24228
    '') as_fn_error $? "missing file argument" ;;
 
24229
    esac
 
24230
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
24231
    ac_need_defaults=false;;
 
24232
  --header | --heade | --head | --hea )
 
24233
    $ac_shift
 
24234
    case $ac_optarg in
 
24235
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
24236
    esac
 
24237
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
24238
    ac_need_defaults=false;;
 
24239
  --he | --h)
 
24240
    # Conflict between --help and --header
 
24241
    as_fn_error $? "ambiguous option: \`$1'
 
24242
Try \`$0 --help' for more information.";;
 
24243
  --help | --hel | -h )
 
24244
    $as_echo "$ac_cs_usage"; exit ;;
 
24245
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
24246
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
24247
    ac_cs_silent=: ;;
 
24248
 
 
24249
  # This is an error.
 
24250
  -*) as_fn_error $? "unrecognized option: \`$1'
 
24251
Try \`$0 --help' for more information." ;;
 
24252
 
 
24253
  *) as_fn_append ac_config_targets " $1"
 
24254
     ac_need_defaults=false ;;
 
24255
 
 
24256
  esac
 
24257
  shift
 
24258
done
 
24259
 
 
24260
ac_configure_extra_args=
 
24261
 
 
24262
if $ac_cs_silent; then
 
24263
  exec 6>/dev/null
 
24264
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
24265
fi
 
24266
 
 
24267
_ACEOF
 
24268
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24269
if \$ac_cs_recheck; then
 
24270
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
24271
  shift
 
24272
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
24273
  CONFIG_SHELL='$SHELL'
 
24274
  export CONFIG_SHELL
 
24275
  exec "\$@"
 
24276
fi
 
24277
 
 
24278
_ACEOF
 
24279
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24280
exec 5>>config.log
 
24281
{
 
24282
  echo
 
24283
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24284
## Running $as_me. ##
 
24285
_ASBOX
 
24286
  $as_echo "$ac_log"
 
24287
} >&5
 
24288
 
 
24289
_ACEOF
 
24290
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24291
#
 
24292
# INIT-COMMANDS
 
24293
#
 
24294
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
24295
 
 
24296
 
 
24297
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
24298
# if CDPATH is set.
 
24299
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
24300
 
 
24301
sed_quote_subst='$sed_quote_subst'
 
24302
double_quote_subst='$double_quote_subst'
 
24303
delay_variable_subst='$delay_variable_subst'
 
24304
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
24305
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
24306
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
24307
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
 
24308
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
24309
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
24310
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
24311
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
24312
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
24313
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
24314
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
24315
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
24316
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
24317
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
24318
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
24319
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
24320
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
24321
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
24322
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
24323
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
24324
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
24325
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
24326
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
24327
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
24328
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
24329
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
24330
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
24331
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
24332
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
24333
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
24334
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
24335
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
24336
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
24337
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
24338
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
24339
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
24340
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
24341
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
24342
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
24343
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
24344
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
24345
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
24346
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
24347
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
24348
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
24349
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
24350
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
24351
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
24352
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
24353
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
24354
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
24355
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
24356
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
24357
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
24358
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
24359
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
24360
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
24361
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
24362
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
24363
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
24364
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
24365
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
24366
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
24367
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
24368
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
24369
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
24370
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
24371
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
24372
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
24373
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
24374
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
24375
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
24376
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
24377
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
24378
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
24379
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
24380
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
24381
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
24382
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
24383
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
24384
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
24385
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
24386
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
24387
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
24388
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
24389
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
24390
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
24391
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
24392
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
24393
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
24394
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
24395
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
24396
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
24397
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
24398
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
24399
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
24400
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
24401
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
24402
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
24403
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
24404
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
24405
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
24406
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
24407
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
24408
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
24409
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
24410
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
24411
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
24412
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
24413
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
24414
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
24415
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
24416
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
24417
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
24418
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
24419
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
24420
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
24421
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
24422
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
24423
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
24424
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
24425
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
24426
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
24427
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
24428
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
24429
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
24430
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
24431
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
24432
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
24433
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
24434
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
24435
 
 
24436
LTCC='$LTCC'
 
24437
LTCFLAGS='$LTCFLAGS'
 
24438
compiler='$compiler_DEFAULT'
 
24439
 
 
24440
# A function that is used when there is no print builtin or printf.
 
24441
func_fallback_echo ()
 
24442
{
 
24443
  eval 'cat <<_LTECHO_EOF
 
24444
\$1
 
24445
_LTECHO_EOF'
 
24446
}
 
24447
 
 
24448
# Quote evaled strings.
 
24449
for var in AS \
 
24450
DLLTOOL \
 
24451
OBJDUMP \
 
24452
SHELL \
 
24453
ECHO \
 
24454
PATH_SEPARATOR \
 
24455
SED \
 
24456
GREP \
 
24457
EGREP \
 
24458
FGREP \
 
24459
LD \
 
24460
NM \
 
24461
LN_S \
 
24462
lt_SP2NL \
 
24463
lt_NL2SP \
 
24464
reload_flag \
 
24465
deplibs_check_method \
 
24466
file_magic_cmd \
 
24467
file_magic_glob \
 
24468
want_nocaseglob \
 
24469
sharedlib_from_linklib_cmd \
 
24470
AR \
 
24471
AR_FLAGS \
 
24472
archiver_list_spec \
 
24473
STRIP \
 
24474
RANLIB \
 
24475
CC \
 
24476
CFLAGS \
 
24477
compiler \
 
24478
lt_cv_sys_global_symbol_pipe \
 
24479
lt_cv_sys_global_symbol_to_cdecl \
 
24480
lt_cv_sys_global_symbol_to_c_name_address \
 
24481
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
24482
nm_file_list_spec \
 
24483
lt_prog_compiler_no_builtin_flag \
 
24484
lt_prog_compiler_pic \
 
24485
lt_prog_compiler_wl \
 
24486
lt_prog_compiler_static \
 
24487
lt_cv_prog_compiler_c_o \
 
24488
need_locks \
 
24489
MANIFEST_TOOL \
 
24490
DSYMUTIL \
 
24491
NMEDIT \
 
24492
LIPO \
 
24493
OTOOL \
 
24494
OTOOL64 \
 
24495
shrext_cmds \
 
24496
export_dynamic_flag_spec \
 
24497
whole_archive_flag_spec \
 
24498
compiler_needs_object \
 
24499
with_gnu_ld \
 
24500
allow_undefined_flag \
 
24501
no_undefined_flag \
 
24502
hardcode_libdir_flag_spec \
 
24503
hardcode_libdir_separator \
 
24504
exclude_expsyms \
 
24505
include_expsyms \
 
24506
file_list_spec \
 
24507
variables_saved_for_relink \
 
24508
libname_spec \
 
24509
library_names_spec \
 
24510
soname_spec \
 
24511
install_override_mode \
 
24512
finish_eval \
 
24513
old_striplib \
 
24514
striplib; do
 
24515
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
24516
    *[\\\\\\\`\\"\\\$]*)
 
24517
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
24518
      ;;
 
24519
    *)
 
24520
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
24521
      ;;
 
24522
    esac
 
24523
done
 
24524
 
 
24525
# Double-quote double-evaled strings.
 
24526
for var in reload_cmds \
 
24527
old_postinstall_cmds \
 
24528
old_postuninstall_cmds \
 
24529
old_archive_cmds \
 
24530
extract_expsyms_cmds \
 
24531
old_archive_from_new_cmds \
 
24532
old_archive_from_expsyms_cmds \
 
24533
archive_cmds \
 
24534
archive_expsym_cmds \
 
24535
module_cmds \
 
24536
module_expsym_cmds \
 
24537
export_symbols_cmds \
 
24538
prelink_cmds \
 
24539
postlink_cmds \
 
24540
postinstall_cmds \
 
24541
postuninstall_cmds \
 
24542
finish_cmds \
 
24543
sys_lib_search_path_spec \
 
24544
sys_lib_dlsearch_path_spec; do
 
24545
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
24546
    *[\\\\\\\`\\"\\\$]*)
 
24547
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
24548
      ;;
 
24549
    *)
 
24550
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
24551
      ;;
 
24552
    esac
 
24553
done
 
24554
 
 
24555
ac_aux_dir='$ac_aux_dir'
 
24556
xsi_shell='$xsi_shell'
 
24557
lt_shell_append='$lt_shell_append'
 
24558
 
 
24559
# See if we are running on zsh, and set the options which allow our
 
24560
# commands through without removal of \ escapes INIT.
 
24561
if test -n "\${ZSH_VERSION+set}" ; then
 
24562
   setopt NO_GLOB_SUBST
 
24563
fi
 
24564
 
 
24565
 
 
24566
    PACKAGE='$PACKAGE'
 
24567
    VERSION='$VERSION'
 
24568
    TIMESTAMP='$TIMESTAMP'
 
24569
    RM='$RM'
 
24570
    ofile='$ofile'
 
24571
 
 
24572
 
 
24573
 
 
24574
 
 
24575
 
 
24576
  gimp_major_ver=2
 
24577
  gimp_minor_ver=8
 
24578
  gimp_micro_ver=2
 
24579
  gimp_ver=2.8.2
 
24580
  gimp_api_ver=2.0
 
24581
 
 
24582
 
 
24583
_ACEOF
 
24584
 
 
24585
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24586
 
 
24587
# Handling of arguments.
 
24588
for ac_config_target in $ac_config_targets
 
24589
do
 
24590
  case $ac_config_target in
 
24591
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
24592
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
24593
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
24594
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
24595
    "libgimpbase/gimpversion.h") CONFIG_COMMANDS="$CONFIG_COMMANDS libgimpbase/gimpversion.h" ;;
 
24596
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
24597
    "tools/pdbgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pdbgen/Makefile" ;;
 
24598
    "libgimp/Makefile") CONFIG_FILES="$CONFIG_FILES libgimp/Makefile" ;;
 
24599
    "libgimpbase/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpbase/Makefile" ;;
 
24600
    "libgimpconfig/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpconfig/Makefile" ;;
 
24601
    "libgimpcolor/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpcolor/Makefile" ;;
 
24602
    "libgimpmath/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpmath/Makefile" ;;
 
24603
    "libgimpmodule/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpmodule/Makefile" ;;
 
24604
    "libgimpthumb/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpthumb/Makefile" ;;
 
24605
    "libgimpwidgets/Makefile") CONFIG_FILES="$CONFIG_FILES libgimpwidgets/Makefile" ;;
 
24606
    "app/Makefile") CONFIG_FILES="$CONFIG_FILES app/Makefile" ;;
 
24607
    "app/actions/Makefile") CONFIG_FILES="$CONFIG_FILES app/actions/Makefile" ;;
 
24608
    "app/base/Makefile") CONFIG_FILES="$CONFIG_FILES app/base/Makefile" ;;
 
24609
    "app/config/Makefile") CONFIG_FILES="$CONFIG_FILES app/config/Makefile" ;;
 
24610
    "app/core/Makefile") CONFIG_FILES="$CONFIG_FILES app/core/Makefile" ;;
 
24611
    "app/gegl/Makefile") CONFIG_FILES="$CONFIG_FILES app/gegl/Makefile" ;;
 
24612
    "app/dialogs/Makefile") CONFIG_FILES="$CONFIG_FILES app/dialogs/Makefile" ;;
 
24613
    "app/display/Makefile") CONFIG_FILES="$CONFIG_FILES app/display/Makefile" ;;
 
24614
    "app/file/Makefile") CONFIG_FILES="$CONFIG_FILES app/file/Makefile" ;;
 
24615
    "app/gui/Makefile") CONFIG_FILES="$CONFIG_FILES app/gui/Makefile" ;;
 
24616
    "app/menus/Makefile") CONFIG_FILES="$CONFIG_FILES app/menus/Makefile" ;;
 
24617
    "app/paint/Makefile") CONFIG_FILES="$CONFIG_FILES app/paint/Makefile" ;;
 
24618
    "app/paint-funcs/Makefile") CONFIG_FILES="$CONFIG_FILES app/paint-funcs/Makefile" ;;
 
24619
    "app/composite/Makefile") CONFIG_FILES="$CONFIG_FILES app/composite/Makefile" ;;
 
24620
    "app/pdb/Makefile") CONFIG_FILES="$CONFIG_FILES app/pdb/Makefile" ;;
 
24621
    "app/plug-in/Makefile") CONFIG_FILES="$CONFIG_FILES app/plug-in/Makefile" ;;
 
24622
    "app/text/Makefile") CONFIG_FILES="$CONFIG_FILES app/text/Makefile" ;;
 
24623
    "app/tools/Makefile") CONFIG_FILES="$CONFIG_FILES app/tools/Makefile" ;;
 
24624
    "app/vectors/Makefile") CONFIG_FILES="$CONFIG_FILES app/vectors/Makefile" ;;
 
24625
    "app/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES app/widgets/Makefile" ;;
 
24626
    "app/xcf/Makefile") CONFIG_FILES="$CONFIG_FILES app/xcf/Makefile" ;;
 
24627
    "app/tests/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/Makefile" ;;
 
24628
    "app/tests/files/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/files/Makefile" ;;
 
24629
    "app/tests/gimpdir-empty/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir-empty/Makefile" ;;
 
24630
    "app/tests/gimpdir-empty/brushes/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir-empty/brushes/Makefile" ;;
 
24631
    "app/tests/gimpdir-empty/gradients/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir-empty/gradients/Makefile" ;;
 
24632
    "app/tests/gimpdir-empty/patterns/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir-empty/patterns/Makefile" ;;
 
24633
    "app/tests/gimpdir/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir/Makefile" ;;
 
24634
    "app/tests/gimpdir/brushes/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir/brushes/Makefile" ;;
 
24635
    "app/tests/gimpdir/gradients/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir/gradients/Makefile" ;;
 
24636
    "app/tests/gimpdir/patterns/Makefile") CONFIG_FILES="$CONFIG_FILES app/tests/gimpdir/patterns/Makefile" ;;
 
24637
    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
 
24638
    "build/windows/Makefile") CONFIG_FILES="$CONFIG_FILES build/windows/Makefile" ;;
 
24639
    "build/windows/gimp.rc") CONFIG_FILES="$CONFIG_FILES build/windows/gimp.rc" ;;
 
24640
    "build/windows/gimp-plug-ins.rc") CONFIG_FILES="$CONFIG_FILES build/windows/gimp-plug-ins.rc" ;;
 
24641
    "plug-ins/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/Makefile" ;;
 
24642
    "plug-ins/color-rotate/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/color-rotate/Makefile" ;;
 
24643
    "plug-ins/color-rotate/images/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/color-rotate/images/Makefile" ;;
 
24644
    "plug-ins/file-bmp/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-bmp/Makefile" ;;
 
24645
    "plug-ins/file-compressor/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-compressor/Makefile" ;;
 
24646
    "plug-ins/file-faxg3/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-faxg3/Makefile" ;;
 
24647
    "plug-ins/file-fits/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-fits/Makefile" ;;
 
24648
    "plug-ins/file-fli/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-fli/Makefile" ;;
 
24649
    "plug-ins/file-ico/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-ico/Makefile" ;;
 
24650
    "plug-ins/file-jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-jpeg/Makefile" ;;
 
24651
    "plug-ins/file-psd/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-psd/Makefile" ;;
 
24652
    "plug-ins/file-sgi/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-sgi/Makefile" ;;
 
24653
    "plug-ins/file-uri/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-uri/Makefile" ;;
 
24654
    "plug-ins/file-xjt/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/file-xjt/Makefile" ;;
 
24655
    "plug-ins/flame/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/flame/Makefile" ;;
 
24656
    "plug-ins/fractal-explorer/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/fractal-explorer/Makefile" ;;
 
24657
    "plug-ins/fractal-explorer/examples/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/fractal-explorer/examples/Makefile" ;;
 
24658
    "plug-ins/gfig/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/Makefile" ;;
 
24659
    "plug-ins/gfig/gfig-examples/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/gfig-examples/Makefile" ;;
 
24660
    "plug-ins/gfig/images/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gfig/images/Makefile" ;;
 
24661
    "plug-ins/ui/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/ui/Makefile" ;;
 
24662
    "plug-ins/gimpressionist/Brushes/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Brushes/Makefile" ;;
 
24663
    "plug-ins/gimpressionist/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Makefile" ;;
 
24664
    "plug-ins/gimpressionist/Paper/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Paper/Makefile" ;;
 
24665
    "plug-ins/gimpressionist/Presets/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gimpressionist/Presets/Makefile" ;;
 
24666
    "plug-ins/gradient-flare/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gradient-flare/Makefile" ;;
 
24667
    "plug-ins/gradient-flare/flares/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/gradient-flare/flares/Makefile" ;;
 
24668
    "plug-ins/help-browser/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/help-browser/Makefile" ;;
 
24669
    "plug-ins/help/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/help/Makefile" ;;
 
24670
    "plug-ins/ifs-compose/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/ifs-compose/Makefile" ;;
 
24671
    "plug-ins/imagemap/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/imagemap/Makefile" ;;
 
24672
    "plug-ins/imagemap/images/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/imagemap/images/Makefile" ;;
 
24673
    "plug-ins/lighting/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/lighting/Makefile" ;;
 
24674
    "plug-ins/lighting/images/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/lighting/images/Makefile" ;;
 
24675
    "plug-ins/map-object/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/map-object/Makefile" ;;
 
24676
    "plug-ins/maze/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/maze/Makefile" ;;
 
24677
    "plug-ins/metadata/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/metadata/Makefile" ;;
 
24678
    "plug-ins/pagecurl/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/pagecurl/Makefile" ;;
 
24679
    "plug-ins/print/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/print/Makefile" ;;
 
24680
    "plug-ins/pygimp/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/pygimp/Makefile" ;;
 
24681
    "plug-ins/pygimp/plug-ins/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/pygimp/plug-ins/Makefile" ;;
 
24682
    "plug-ins/script-fu/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/Makefile" ;;
 
24683
    "plug-ins/script-fu/ftx/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/ftx/Makefile" ;;
 
24684
    "plug-ins/script-fu/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/scripts/Makefile" ;;
 
24685
    "plug-ins/script-fu/scripts/images/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/scripts/images/Makefile" ;;
 
24686
    "plug-ins/script-fu/tinyscheme/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/script-fu/tinyscheme/Makefile" ;;
 
24687
    "plug-ins/selection-to-path/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/selection-to-path/Makefile" ;;
 
24688
    "plug-ins/twain/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/twain/Makefile" ;;
 
24689
    "plug-ins/win-snap/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/win-snap/Makefile" ;;
 
24690
    "plug-ins/common/Makefile") CONFIG_FILES="$CONFIG_FILES plug-ins/common/Makefile" ;;
 
24691
    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
 
24692
    "devel-docs/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/Makefile" ;;
 
24693
    "devel-docs/app/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/app/Makefile" ;;
 
24694
    "devel-docs/app/version") CONFIG_FILES="$CONFIG_FILES devel-docs/app/version" ;;
 
24695
    "devel-docs/libgimp/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimp/Makefile" ;;
 
24696
    "devel-docs/libgimp/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimp/version" ;;
 
24697
    "devel-docs/libgimpbase/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpbase/Makefile" ;;
 
24698
    "devel-docs/libgimpbase/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpbase/version" ;;
 
24699
    "devel-docs/libgimpconfig/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpconfig/Makefile" ;;
 
24700
    "devel-docs/libgimpconfig/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpconfig/version" ;;
 
24701
    "devel-docs/libgimpcolor/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpcolor/Makefile" ;;
 
24702
    "devel-docs/libgimpcolor/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpcolor/version" ;;
 
24703
    "devel-docs/libgimpmath/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmath/Makefile" ;;
 
24704
    "devel-docs/libgimpmath/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmath/version" ;;
 
24705
    "devel-docs/libgimpmodule/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmodule/Makefile" ;;
 
24706
    "devel-docs/libgimpmodule/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpmodule/version" ;;
 
24707
    "devel-docs/libgimpthumb/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpthumb/Makefile" ;;
 
24708
    "devel-docs/libgimpthumb/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpthumb/version" ;;
 
24709
    "devel-docs/libgimpwidgets/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpwidgets/Makefile" ;;
 
24710
    "devel-docs/libgimpwidgets/version") CONFIG_FILES="$CONFIG_FILES devel-docs/libgimpwidgets/version" ;;
 
24711
    "devel-docs/tools/Makefile") CONFIG_FILES="$CONFIG_FILES devel-docs/tools/Makefile" ;;
 
24712
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
24713
    "menus/Makefile") CONFIG_FILES="$CONFIG_FILES menus/Makefile" ;;
 
24714
    "cursors/Makefile") CONFIG_FILES="$CONFIG_FILES cursors/Makefile" ;;
 
24715
    "themes/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
 
24716
    "themes/Default/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Default/Makefile" ;;
 
24717
    "themes/Default/images/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Default/images/Makefile" ;;
 
24718
    "themes/Default/images/preferences/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Default/images/preferences/Makefile" ;;
 
24719
    "themes/Small/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Small/Makefile" ;;
 
24720
    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
24721
    "data/brushes/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Makefile" ;;
 
24722
    "data/brushes/Basic/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Basic/Makefile" ;;
 
24723
    "data/brushes/gimp-obsolete-files/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/gimp-obsolete-files/Makefile" ;;
 
24724
    "data/brushes/Media/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Media/Makefile" ;;
 
24725
    "data/brushes/Legacy/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Legacy/Makefile" ;;
 
24726
    "data/brushes/Sketch/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Sketch/Makefile" ;;
 
24727
    "data/brushes/Splatters/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Splatters/Makefile" ;;
 
24728
    "data/brushes/Texture/Makefile") CONFIG_FILES="$CONFIG_FILES data/brushes/Texture/Makefile" ;;
 
24729
    "data/dynamics/Makefile") CONFIG_FILES="$CONFIG_FILES data/dynamics/Makefile" ;;
 
24730
    "data/dynamics/Basic/Makefile") CONFIG_FILES="$CONFIG_FILES data/dynamics/Basic/Makefile" ;;
 
24731
    "data/dynamics/FX/Makefile") CONFIG_FILES="$CONFIG_FILES data/dynamics/FX/Makefile" ;;
 
24732
    "data/environ/Makefile") CONFIG_FILES="$CONFIG_FILES data/environ/Makefile" ;;
 
24733
    "data/gradients/Makefile") CONFIG_FILES="$CONFIG_FILES data/gradients/Makefile" ;;
 
24734
    "data/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;;
 
24735
    "data/interpreters/Makefile") CONFIG_FILES="$CONFIG_FILES data/interpreters/Makefile" ;;
 
24736
    "data/palettes/Makefile") CONFIG_FILES="$CONFIG_FILES data/palettes/Makefile" ;;
 
24737
    "data/patterns/Makefile") CONFIG_FILES="$CONFIG_FILES data/patterns/Makefile" ;;
 
24738
    "data/tags/Makefile") CONFIG_FILES="$CONFIG_FILES data/tags/Makefile" ;;
 
24739
    "data/tips/Makefile") CONFIG_FILES="$CONFIG_FILES data/tips/Makefile" ;;
 
24740
    "data/tool-presets/Makefile") CONFIG_FILES="$CONFIG_FILES data/tool-presets/Makefile" ;;
 
24741
    "data/tool-presets/FX/Makefile") CONFIG_FILES="$CONFIG_FILES data/tool-presets/FX/Makefile" ;;
 
24742
    "data/tool-presets/Paint/Makefile") CONFIG_FILES="$CONFIG_FILES data/tool-presets/Paint/Makefile" ;;
 
24743
    "data/tool-presets/Selection/Makefile") CONFIG_FILES="$CONFIG_FILES data/tool-presets/Selection/Makefile" ;;
 
24744
    "data/tool-presets/Sketch/Makefile") CONFIG_FILES="$CONFIG_FILES data/tool-presets/Sketch/Makefile" ;;
 
24745
    "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
 
24746
    "desktop/gimp.desktop.in") CONFIG_FILES="$CONFIG_FILES desktop/gimp.desktop.in" ;;
 
24747
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
 
24748
    "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
 
24749
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
24750
    "po-libgimp/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-libgimp/Makefile.in" ;;
 
24751
    "po-plug-ins/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-plug-ins/Makefile.in" ;;
 
24752
    "po-python/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-python/Makefile.in" ;;
 
24753
    "po-script-fu/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-script-fu/Makefile.in" ;;
 
24754
    "po-tips/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-tips/Makefile.in" ;;
 
24755
    "gimp-zip") CONFIG_FILES="$CONFIG_FILES gimp-zip" ;;
 
24756
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
24757
    "docs/gimp-2.8.1") CONFIG_FILES="$CONFIG_FILES docs/gimp-2.8.1:docs/gimp.1.in" ;;
 
24758
    "docs/gimprc-2.8.5") CONFIG_FILES="$CONFIG_FILES docs/gimprc-2.8.5:docs/gimprc.5.in" ;;
 
24759
    "docs/gimptool-2.0.1") CONFIG_FILES="$CONFIG_FILES docs/gimptool-2.0.1:docs/gimptool.1.in" ;;
 
24760
    "gimp-2.0.pc") CONFIG_FILES="$CONFIG_FILES gimp-2.0.pc:gimp.pc.in" ;;
 
24761
    "gimpthumb-2.0.pc") CONFIG_FILES="$CONFIG_FILES gimpthumb-2.0.pc:gimpthumb.pc.in" ;;
 
24762
    "gimpui-2.0.pc") CONFIG_FILES="$CONFIG_FILES gimpui-2.0.pc:gimpui.pc.in" ;;
 
24763
    "sed-po-makefiles") CONFIG_COMMANDS="$CONFIG_COMMANDS sed-po-makefiles" ;;
 
24764
    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
 
24765
 
 
24766
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
24767
  esac
 
24768
done
 
24769
 
 
24770
 
 
24771
# If the user did not use the arguments to specify the items to instantiate,
 
24772
# then the envvar interface is used.  Set only those that are not.
 
24773
# We use the long form for the default assignment because of an extremely
 
24774
# bizarre bug on SunOS 4.1.3.
 
24775
if $ac_need_defaults; then
 
24776
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
24777
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
24778
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
24779
fi
 
24780
 
 
24781
# Have a temporary directory for convenience.  Make it in the build tree
 
24782
# simply because there is no reason against having it here, and in addition,
 
24783
# creating and moving files from /tmp can sometimes cause problems.
 
24784
# Hook for its removal unless debugging.
 
24785
# Note that there is a small window in which the directory will not be cleaned:
 
24786
# after its creation but before its name has been assigned to `$tmp'.
 
24787
$debug ||
 
24788
{
 
24789
  tmp= ac_tmp=
 
24790
  trap 'exit_status=$?
 
24791
  : "${ac_tmp:=$tmp}"
 
24792
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
24793
' 0
 
24794
  trap 'as_fn_exit 1' 1 2 13 15
 
24795
}
 
24796
# Create a (secure) tmp directory for tmp files.
 
24797
 
 
24798
{
 
24799
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
24800
  test -d "$tmp"
 
24801
}  ||
 
24802
{
 
24803
  tmp=./conf$$-$RANDOM
 
24804
  (umask 077 && mkdir "$tmp")
 
24805
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
24806
ac_tmp=$tmp
 
24807
 
 
24808
# Set up the scripts for CONFIG_FILES section.
 
24809
# No need to generate them if there are no CONFIG_FILES.
 
24810
# This happens for instance with `./config.status config.h'.
 
24811
if test -n "$CONFIG_FILES"; then
 
24812
 
 
24813
 
 
24814
ac_cr=`echo X | tr X '\015'`
 
24815
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
24816
# But we know of no other shell where ac_cr would be empty at this
 
24817
# point, so we can use a bashism as a fallback.
 
24818
if test "x$ac_cr" = x; then
 
24819
  eval ac_cr=\$\'\\r\'
 
24820
fi
 
24821
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
24822
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
24823
  ac_cs_awk_cr='\\r'
 
24824
else
 
24825
  ac_cs_awk_cr=$ac_cr
 
24826
fi
 
24827
 
 
24828
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
24829
_ACEOF
 
24830
 
 
24831
 
 
24832
{
 
24833
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
24834
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
24835
  echo "_ACEOF"
 
24836
} >conf$$subs.sh ||
 
24837
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
24838
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
24839
ac_delim='%!_!# '
 
24840
for ac_last_try in false false false false false :; do
 
24841
  . ./conf$$subs.sh ||
 
24842
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
24843
 
 
24844
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
24845
  if test $ac_delim_n = $ac_delim_num; then
 
24846
    break
 
24847
  elif $ac_last_try; then
 
24848
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
24849
  else
 
24850
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24851
  fi
 
24852
done
 
24853
rm -f conf$$subs.sh
 
24854
 
 
24855
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24856
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
24857
_ACEOF
 
24858
sed -n '
 
24859
h
 
24860
s/^/S["/; s/!.*/"]=/
 
24861
p
 
24862
g
 
24863
s/^[^!]*!//
 
24864
:repl
 
24865
t repl
 
24866
s/'"$ac_delim"'$//
 
24867
t delim
 
24868
:nl
 
24869
h
 
24870
s/\(.\{148\}\)..*/\1/
 
24871
t more1
 
24872
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
24873
p
 
24874
n
 
24875
b repl
 
24876
:more1
 
24877
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
24878
p
 
24879
g
 
24880
s/.\{148\}//
 
24881
t nl
 
24882
:delim
 
24883
h
 
24884
s/\(.\{148\}\)..*/\1/
 
24885
t more2
 
24886
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
24887
p
 
24888
b
 
24889
:more2
 
24890
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
24891
p
 
24892
g
 
24893
s/.\{148\}//
 
24894
t delim
 
24895
' <conf$$subs.awk | sed '
 
24896
/^[^""]/{
 
24897
  N
 
24898
  s/\n//
 
24899
}
 
24900
' >>$CONFIG_STATUS || ac_write_fail=1
 
24901
rm -f conf$$subs.awk
 
24902
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24903
_ACAWK
 
24904
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
24905
  for (key in S) S_is_set[key] = 1
 
24906
  FS = ""
 
24907
 
 
24908
}
 
24909
{
 
24910
  line = $ 0
 
24911
  nfields = split(line, field, "@")
 
24912
  substed = 0
 
24913
  len = length(field[1])
 
24914
  for (i = 2; i < nfields; i++) {
 
24915
    key = field[i]
 
24916
    keylen = length(key)
 
24917
    if (S_is_set[key]) {
 
24918
      value = S[key]
 
24919
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
24920
      len += length(value) + length(field[++i])
 
24921
      substed = 1
 
24922
    } else
 
24923
      len += 1 + keylen
 
24924
  }
 
24925
 
 
24926
  print line
 
24927
}
 
24928
 
 
24929
_ACAWK
 
24930
_ACEOF
 
24931
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24932
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
24933
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
24934
else
 
24935
  cat
 
24936
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
24937
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
24938
_ACEOF
 
24939
 
 
24940
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
24941
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
24942
# trailing colons and then remove the whole line if VPATH becomes empty
 
24943
# (actually we leave an empty line to preserve line numbers).
 
24944
if test "x$srcdir" = x.; then
 
24945
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
24946
h
 
24947
s///
 
24948
s/^/:/
 
24949
s/[      ]*$/:/
 
24950
s/:\$(srcdir):/:/g
 
24951
s/:\${srcdir}:/:/g
 
24952
s/:@srcdir@:/:/g
 
24953
s/^:*//
 
24954
s/:*$//
 
24955
x
 
24956
s/\(=[   ]*\).*/\1/
 
24957
G
 
24958
s/\n//
 
24959
s/^[^=]*=[       ]*$//
 
24960
}'
 
24961
fi
 
24962
 
 
24963
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24964
fi # test -n "$CONFIG_FILES"
 
24965
 
 
24966
# Set up the scripts for CONFIG_HEADERS section.
 
24967
# No need to generate them if there are no CONFIG_HEADERS.
 
24968
# This happens for instance with `./config.status Makefile'.
 
24969
if test -n "$CONFIG_HEADERS"; then
 
24970
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
24971
BEGIN {
 
24972
_ACEOF
 
24973
 
 
24974
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
24975
# here-document in config.status, that substitutes the proper values into
 
24976
# config.h.in to produce config.h.
 
24977
 
 
24978
# Create a delimiter string that does not exist in confdefs.h, to ease
 
24979
# handling of long lines.
 
24980
ac_delim='%!_!# '
 
24981
for ac_last_try in false false :; do
 
24982
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
24983
  if test -z "$ac_tt"; then
 
24984
    break
 
24985
  elif $ac_last_try; then
 
24986
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
24987
  else
 
24988
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24989
  fi
 
24990
done
 
24991
 
 
24992
# For the awk script, D is an array of macro values keyed by name,
 
24993
# likewise P contains macro parameters if any.  Preserve backslash
 
24994
# newline sequences.
 
24995
 
 
24996
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
24997
sed -n '
 
24998
s/.\{148\}/&'"$ac_delim"'/g
 
24999
t rset
 
25000
:rset
 
25001
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
25002
t def
 
25003
d
 
25004
:def
 
25005
s/\\$//
 
25006
t bsnl
 
25007
s/["\\]/\\&/g
 
25008
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
25009
D["\1"]=" \3"/p
 
25010
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
25011
d
 
25012
:bsnl
 
25013
s/["\\]/\\&/g
 
25014
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
25015
D["\1"]=" \3\\\\\\n"\\/p
 
25016
t cont
 
25017
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
25018
t cont
 
25019
d
 
25020
:cont
 
25021
n
 
25022
s/.\{148\}/&'"$ac_delim"'/g
 
25023
t clear
 
25024
:clear
 
25025
s/\\$//
 
25026
t bsnlc
 
25027
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
25028
d
 
25029
:bsnlc
 
25030
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
25031
b cont
 
25032
' <confdefs.h | sed '
 
25033
s/'"$ac_delim"'/"\\\
 
25034
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
25035
 
 
25036
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25037
  for (key in D) D_is_set[key] = 1
 
25038
  FS = ""
 
25039
}
 
25040
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
25041
  line = \$ 0
 
25042
  split(line, arg, " ")
 
25043
  if (arg[1] == "#") {
 
25044
    defundef = arg[2]
 
25045
    mac1 = arg[3]
 
25046
  } else {
 
25047
    defundef = substr(arg[1], 2)
 
25048
    mac1 = arg[2]
 
25049
  }
 
25050
  split(mac1, mac2, "(") #)
 
25051
  macro = mac2[1]
 
25052
  prefix = substr(line, 1, index(line, defundef) - 1)
 
25053
  if (D_is_set[macro]) {
 
25054
    # Preserve the white space surrounding the "#".
 
25055
    print prefix "define", macro P[macro] D[macro]
 
25056
    next
 
25057
  } else {
 
25058
    # Replace #undef with comments.  This is necessary, for example,
 
25059
    # in the case of _POSIX_SOURCE, which is predefined and required
 
25060
    # on some systems where configure will not decide to define it.
 
25061
    if (defundef == "undef") {
 
25062
      print "/*", prefix defundef, macro, "*/"
 
25063
      next
 
25064
    }
 
25065
  }
 
25066
}
 
25067
{ print }
 
25068
_ACAWK
 
25069
_ACEOF
 
25070
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25071
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
25072
fi # test -n "$CONFIG_HEADERS"
 
25073
 
 
25074
 
 
25075
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
25076
shift
 
25077
for ac_tag
 
25078
do
 
25079
  case $ac_tag in
 
25080
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25081
  esac
 
25082
  case $ac_mode$ac_tag in
 
25083
  :[FHL]*:*);;
 
25084
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
25085
  :[FH]-) ac_tag=-:-;;
 
25086
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25087
  esac
 
25088
  ac_save_IFS=$IFS
 
25089
  IFS=:
 
25090
  set x $ac_tag
 
25091
  IFS=$ac_save_IFS
 
25092
  shift
 
25093
  ac_file=$1
 
25094
  shift
 
25095
 
 
25096
  case $ac_mode in
 
25097
  :L) ac_source=$1;;
 
25098
  :[FH])
 
25099
    ac_file_inputs=
 
25100
    for ac_f
 
25101
    do
 
25102
      case $ac_f in
 
25103
      -) ac_f="$ac_tmp/stdin";;
 
25104
      *) # Look for the file first in the build tree, then in the source tree
 
25105
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25106
         # because $ac_f cannot contain `:'.
 
25107
         test -f "$ac_f" ||
 
25108
           case $ac_f in
 
25109
           [\\/$]*) false;;
 
25110
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25111
           esac ||
 
25112
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
25113
      esac
 
25114
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
25115
      as_fn_append ac_file_inputs " '$ac_f'"
 
25116
    done
 
25117
 
 
25118
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25119
    # use $as_me), people would be surprised to read:
 
25120
    #    /* config.h.  Generated by config.status.  */
 
25121
    configure_input='Generated from '`
 
25122
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
25123
        `' by configure.'
 
25124
    if test x"$ac_file" != x-; then
 
25125
      configure_input="$ac_file.  $configure_input"
 
25126
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
25127
$as_echo "$as_me: creating $ac_file" >&6;}
 
25128
    fi
 
25129
    # Neutralize special characters interpreted by sed in replacement strings.
 
25130
    case $configure_input in #(
 
25131
    *\&* | *\|* | *\\* )
 
25132
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
25133
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
25134
    *) ac_sed_conf_input=$configure_input;;
 
25135
    esac
 
25136
 
 
25137
    case $ac_tag in
 
25138
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
25139
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
25140
    esac
 
25141
    ;;
 
25142
  esac
 
25143
 
 
25144
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25145
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25146
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25147
         X"$ac_file" : 'X\(//\)$' \| \
 
25148
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25149
$as_echo X"$ac_file" |
 
25150
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25151
            s//\1/
 
25152
            q
 
25153
          }
 
25154
          /^X\(\/\/\)[^/].*/{
 
25155
            s//\1/
 
25156
            q
 
25157
          }
 
25158
          /^X\(\/\/\)$/{
 
25159
            s//\1/
 
25160
            q
 
25161
          }
 
25162
          /^X\(\/\).*/{
 
25163
            s//\1/
 
25164
            q
 
25165
          }
 
25166
          s/.*/./; q'`
 
25167
  as_dir="$ac_dir"; as_fn_mkdir_p
 
25168
  ac_builddir=.
 
25169
 
 
25170
case "$ac_dir" in
 
25171
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25172
*)
 
25173
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
25174
  # A ".." for each directory in $ac_dir_suffix.
 
25175
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
25176
  case $ac_top_builddir_sub in
 
25177
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25178
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25179
  esac ;;
 
25180
esac
 
25181
ac_abs_top_builddir=$ac_pwd
 
25182
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25183
# for backward compatibility:
 
25184
ac_top_builddir=$ac_top_build_prefix
 
25185
 
 
25186
case $srcdir in
 
25187
  .)  # We are building in place.
 
25188
    ac_srcdir=.
 
25189
    ac_top_srcdir=$ac_top_builddir_sub
 
25190
    ac_abs_top_srcdir=$ac_pwd ;;
 
25191
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25192
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25193
    ac_top_srcdir=$srcdir
 
25194
    ac_abs_top_srcdir=$srcdir ;;
 
25195
  *) # Relative name.
 
25196
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25197
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25198
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25199
esac
 
25200
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25201
 
 
25202
 
 
25203
  case $ac_mode in
 
25204
  :F)
 
25205
  #
 
25206
  # CONFIG_FILE
 
25207
  #
 
25208
 
 
25209
  case $INSTALL in
 
25210
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25211
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25212
  esac
 
25213
  ac_MKDIR_P=$MKDIR_P
 
25214
  case $MKDIR_P in
 
25215
  [\\/$]* | ?:[\\/]* ) ;;
 
25216
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
25217
  esac
 
25218
_ACEOF
 
25219
 
 
25220
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25221
# If the template does not know about datarootdir, expand it.
 
25222
# FIXME: This hack should be removed a few years after 2.60.
 
25223
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25224
ac_sed_dataroot='
 
25225
/datarootdir/ {
 
25226
  p
 
25227
  q
 
25228
}
 
25229
/@datadir@/p
 
25230
/@docdir@/p
 
25231
/@infodir@/p
 
25232
/@localedir@/p
 
25233
/@mandir@/p'
 
25234
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
25235
*datarootdir*) ac_datarootdir_seen=yes;;
 
25236
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25237
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25238
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25239
_ACEOF
 
25240
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25241
  ac_datarootdir_hack='
 
25242
  s&@datadir@&$datadir&g
 
25243
  s&@docdir@&$docdir&g
 
25244
  s&@infodir@&$infodir&g
 
25245
  s&@localedir@&$localedir&g
 
25246
  s&@mandir@&$mandir&g
 
25247
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
25248
esac
 
25249
_ACEOF
 
25250
 
 
25251
# Neutralize VPATH when `$srcdir' = `.'.
 
25252
# Shell code in configure.ac might set extrasub.
 
25253
# FIXME: do we really want to maintain this feature?
 
25254
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25255
ac_sed_extra="$ac_vpsub
 
25256
$extrasub
 
25257
_ACEOF
 
25258
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25259
:t
 
25260
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25261
s|@configure_input@|$ac_sed_conf_input|;t t
 
25262
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25263
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
25264
s&@srcdir@&$ac_srcdir&;t t
 
25265
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25266
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25267
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25268
s&@builddir@&$ac_builddir&;t t
 
25269
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25270
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25271
s&@INSTALL@&$ac_INSTALL&;t t
 
25272
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
25273
$ac_datarootdir_hack
 
25274
"
 
25275
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
25276
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
25277
 
 
25278
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25279
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
25280
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
25281
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
25282
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25283
which seems to be undefined.  Please make sure it is defined" >&5
 
25284
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25285
which seems to be undefined.  Please make sure it is defined" >&2;}
 
25286
 
 
25287
  rm -f "$ac_tmp/stdin"
 
25288
  case $ac_file in
 
25289
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
25290
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
25291
  esac \
 
25292
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
25293
 ;;
 
25294
  :H)
 
25295
  #
 
25296
  # CONFIG_HEADER
 
25297
  #
 
25298
  if test x"$ac_file" != x-; then
 
25299
    {
 
25300
      $as_echo "/* $configure_input  */" \
 
25301
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
25302
    } >"$ac_tmp/config.h" \
 
25303
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
25304
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
25305
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
25306
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
25307
    else
 
25308
      rm -f "$ac_file"
 
25309
      mv "$ac_tmp/config.h" "$ac_file" \
 
25310
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
25311
    fi
 
25312
  else
 
25313
    $as_echo "/* $configure_input  */" \
 
25314
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
25315
      || as_fn_error $? "could not create -" "$LINENO" 5
 
25316
  fi
 
25317
# Compute "$ac_file"'s index in $config_headers.
 
25318
_am_arg="$ac_file"
 
25319
_am_stamp_count=1
 
25320
for _am_header in $config_headers :; do
 
25321
  case $_am_header in
 
25322
    $_am_arg | $_am_arg:* )
 
25323
      break ;;
 
25324
    * )
 
25325
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25326
  esac
 
25327
done
 
25328
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
25329
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25330
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
25331
         X"$_am_arg" : 'X\(//\)$' \| \
 
25332
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
25333
$as_echo X"$_am_arg" |
 
25334
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25335
            s//\1/
 
25336
            q
 
25337
          }
 
25338
          /^X\(\/\/\)[^/].*/{
 
25339
            s//\1/
 
25340
            q
 
25341
          }
 
25342
          /^X\(\/\/\)$/{
 
25343
            s//\1/
 
25344
            q
 
25345
          }
 
25346
          /^X\(\/\).*/{
 
25347
            s//\1/
 
25348
            q
 
25349
          }
 
25350
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25351
 ;;
 
25352
 
 
25353
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
25354
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
25355
 ;;
 
25356
  esac
 
25357
 
 
25358
 
 
25359
  case $ac_file$ac_mode in
 
25360
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
25361
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
25362
  # are listed without --file.  Let's play safe and only enable the eval
 
25363
  # if we detect the quoting.
 
25364
  case $CONFIG_FILES in
 
25365
  *\'*) eval set x "$CONFIG_FILES" ;;
 
25366
  *)   set x $CONFIG_FILES ;;
 
25367
  esac
 
25368
  shift
 
25369
  for mf
 
25370
  do
 
25371
    # Strip MF so we end up with the name of the file.
 
25372
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25373
    # Check whether this is an Automake generated Makefile or not.
 
25374
    # We used to match only the files named `Makefile.in', but
 
25375
    # some people rename them; so instead we look at the file content.
 
25376
    # Grep'ing the first line is not enough: some people post-process
 
25377
    # each Makefile.in and add a new line on top of each file to say so.
 
25378
    # Grep'ing the whole file is not good either: AIX grep has a line
 
25379
    # limit of 2048, but all sed's we know have understand at least 4000.
 
25380
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
25381
      dirpart=`$as_dirname -- "$mf" ||
 
25382
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25383
         X"$mf" : 'X\(//\)[^/]' \| \
 
25384
         X"$mf" : 'X\(//\)$' \| \
 
25385
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
25386
$as_echo X"$mf" |
 
25387
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25388
            s//\1/
 
25389
            q
 
25390
          }
 
25391
          /^X\(\/\/\)[^/].*/{
 
25392
            s//\1/
 
25393
            q
 
25394
          }
 
25395
          /^X\(\/\/\)$/{
 
25396
            s//\1/
 
25397
            q
 
25398
          }
 
25399
          /^X\(\/\).*/{
 
25400
            s//\1/
 
25401
            q
 
25402
          }
 
25403
          s/.*/./; q'`
 
25404
    else
 
25405
      continue
 
25406
    fi
 
25407
    # Extract the definition of DEPDIR, am__include, and am__quote
 
25408
    # from the Makefile without running `make'.
 
25409
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25410
    test -z "$DEPDIR" && continue
 
25411
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
25412
    test -z "am__include" && continue
 
25413
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
25414
    # When using ansi2knr, U may be empty or an underscore; expand it
 
25415
    U=`sed -n 's/^U = //p' < "$mf"`
 
25416
    # Find all dependency output files, they are included files with
 
25417
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
25418
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
25419
    # expansion.
 
25420
    for file in `sed -n "
 
25421
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
25422
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25423
      # Make sure the directory exists.
 
25424
      test -f "$dirpart/$file" && continue
 
25425
      fdir=`$as_dirname -- "$file" ||
 
25426
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25427
         X"$file" : 'X\(//\)[^/]' \| \
 
25428
         X"$file" : 'X\(//\)$' \| \
 
25429
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
25430
$as_echo X"$file" |
 
25431
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25432
            s//\1/
 
25433
            q
 
25434
          }
 
25435
          /^X\(\/\/\)[^/].*/{
 
25436
            s//\1/
 
25437
            q
 
25438
          }
 
25439
          /^X\(\/\/\)$/{
 
25440
            s//\1/
 
25441
            q
 
25442
          }
 
25443
          /^X\(\/\).*/{
 
25444
            s//\1/
 
25445
            q
 
25446
          }
 
25447
          s/.*/./; q'`
 
25448
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
25449
      # echo "creating $dirpart/$file"
 
25450
      echo '# dummy' > "$dirpart/$file"
 
25451
    done
 
25452
  done
 
25453
}
 
25454
 ;;
 
25455
    "libtool":C)
 
25456
 
 
25457
    # See if we are running on zsh, and set the options which allow our
 
25458
    # commands through without removal of \ escapes.
 
25459
    if test -n "${ZSH_VERSION+set}" ; then
 
25460
      setopt NO_GLOB_SUBST
 
25461
    fi
 
25462
 
 
25463
    cfgfile="${ofile}T"
 
25464
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
25465
    $RM "$cfgfile"
 
25466
 
 
25467
    cat <<_LT_EOF >> "$cfgfile"
 
25468
#! $SHELL
 
25469
 
 
25470
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
25471
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
25472
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
25473
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
25474
#
 
25475
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
25476
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
25477
#                 Foundation, Inc.
 
25478
#   Written by Gordon Matzigkeit, 1996
 
25479
#
 
25480
#   This file is part of GNU Libtool.
 
25481
#
 
25482
# GNU Libtool is free software; you can redistribute it and/or
 
25483
# modify it under the terms of the GNU General Public License as
 
25484
# published by the Free Software Foundation; either version 2 of
 
25485
# the License, or (at your option) any later version.
 
25486
#
 
25487
# As a special exception to the GNU General Public License,
 
25488
# if you distribute this file as part of a program or library that
 
25489
# is built using GNU Libtool, you may include this file under the
 
25490
# same distribution terms that you use for the rest of that program.
 
25491
#
 
25492
# GNU Libtool is distributed in the hope that it will be useful,
 
25493
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
25494
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
25495
# GNU General Public License for more details.
 
25496
#
 
25497
# You should have received a copy of the GNU General Public License
 
25498
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
25499
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
25500
# obtained by writing to the Free Software Foundation, Inc.,
 
25501
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
25502
 
 
25503
 
 
25504
# The names of the tagged configurations supported by this script.
 
25505
available_tags=""
 
25506
 
 
25507
# ### BEGIN LIBTOOL CONFIG
 
25508
 
 
25509
# Which release of libtool.m4 was used?
 
25510
macro_version=$macro_version
 
25511
macro_revision=$macro_revision
 
25512
 
 
25513
# Whether or not to build static libraries.
 
25514
build_old_libs=$enable_static
 
25515
 
 
25516
# Assembler program.
 
25517
AS=$lt_AS
 
25518
 
 
25519
# DLL creation program.
 
25520
DLLTOOL=$lt_DLLTOOL
 
25521
 
 
25522
# Object dumper program.
 
25523
OBJDUMP=$lt_OBJDUMP
 
25524
 
 
25525
# Whether or not to build shared libraries.
 
25526
build_libtool_libs=$enable_shared
 
25527
 
 
25528
# What type of objects to build.
 
25529
pic_mode=$pic_mode
 
25530
 
 
25531
# Whether or not to optimize for fast installation.
 
25532
fast_install=$enable_fast_install
 
25533
 
 
25534
# Shell to use when invoking shell scripts.
 
25535
SHELL=$lt_SHELL
 
25536
 
 
25537
# An echo program that protects backslashes.
 
25538
ECHO=$lt_ECHO
 
25539
 
 
25540
# The PATH separator for the build system.
 
25541
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
25542
 
 
25543
# The host system.
 
25544
host_alias=$host_alias
 
25545
host=$host
 
25546
host_os=$host_os
 
25547
 
 
25548
# The build system.
 
25549
build_alias=$build_alias
 
25550
build=$build
 
25551
build_os=$build_os
 
25552
 
 
25553
# A sed program that does not truncate output.
 
25554
SED=$lt_SED
 
25555
 
 
25556
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
25557
Xsed="\$SED -e 1s/^X//"
 
25558
 
 
25559
# A grep program that handles long lines.
 
25560
GREP=$lt_GREP
 
25561
 
 
25562
# An ERE matcher.
 
25563
EGREP=$lt_EGREP
 
25564
 
 
25565
# A literal string matcher.
 
25566
FGREP=$lt_FGREP
 
25567
 
 
25568
# A BSD- or MS-compatible name lister.
 
25569
NM=$lt_NM
 
25570
 
 
25571
# Whether we need soft or hard links.
 
25572
LN_S=$lt_LN_S
 
25573
 
 
25574
# What is the maximum length of a command?
 
25575
max_cmd_len=$max_cmd_len
 
25576
 
 
25577
# Object file suffix (normally "o").
 
25578
objext=$ac_objext
 
25579
 
 
25580
# Executable file suffix (normally "").
 
25581
exeext=$exeext
 
25582
 
 
25583
# whether the shell understands "unset".
 
25584
lt_unset=$lt_unset
 
25585
 
 
25586
# turn spaces into newlines.
 
25587
SP2NL=$lt_lt_SP2NL
 
25588
 
 
25589
# turn newlines into spaces.
 
25590
NL2SP=$lt_lt_NL2SP
 
25591
 
 
25592
# convert \$build file names to \$host format.
 
25593
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
25594
 
 
25595
# convert \$build files to toolchain format.
 
25596
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
25597
 
 
25598
# Method to check whether dependent libraries are shared objects.
 
25599
deplibs_check_method=$lt_deplibs_check_method
 
25600
 
 
25601
# Command to use when deplibs_check_method = "file_magic".
 
25602
file_magic_cmd=$lt_file_magic_cmd
 
25603
 
 
25604
# How to find potential files when deplibs_check_method = "file_magic".
 
25605
file_magic_glob=$lt_file_magic_glob
 
25606
 
 
25607
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
25608
want_nocaseglob=$lt_want_nocaseglob
 
25609
 
 
25610
# Command to associate shared and link libraries.
 
25611
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
25612
 
 
25613
# The archiver.
 
25614
AR=$lt_AR
 
25615
 
 
25616
# Flags to create an archive.
 
25617
AR_FLAGS=$lt_AR_FLAGS
 
25618
 
 
25619
# How to feed a file listing to the archiver.
 
25620
archiver_list_spec=$lt_archiver_list_spec
 
25621
 
 
25622
# A symbol stripping program.
 
25623
STRIP=$lt_STRIP
 
25624
 
 
25625
# Commands used to install an old-style archive.
 
25626
RANLIB=$lt_RANLIB
 
25627
old_postinstall_cmds=$lt_old_postinstall_cmds
 
25628
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
25629
 
 
25630
# Whether to use a lock for old archive extraction.
 
25631
lock_old_archive_extraction=$lock_old_archive_extraction
 
25632
 
 
25633
# A C compiler.
 
25634
LTCC=$lt_CC
 
25635
 
 
25636
# LTCC compiler flags.
 
25637
LTCFLAGS=$lt_CFLAGS
 
25638
 
 
25639
# Take the output of nm and produce a listing of raw symbols and C names.
 
25640
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
25641
 
 
25642
# Transform the output of nm in a proper C declaration.
 
25643
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
25644
 
 
25645
# Transform the output of nm in a C name address pair.
 
25646
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
25647
 
 
25648
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
25649
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
25650
 
 
25651
# Specify filename containing input files for \$NM.
 
25652
nm_file_list_spec=$lt_nm_file_list_spec
 
25653
 
 
25654
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
25655
lt_sysroot=$lt_sysroot
 
25656
 
 
25657
# The name of the directory that contains temporary libtool files.
 
25658
objdir=$objdir
 
25659
 
 
25660
# Used to examine libraries when file_magic_cmd begins with "file".
 
25661
MAGIC_CMD=$MAGIC_CMD
 
25662
 
 
25663
# Must we lock files when doing compilation?
 
25664
need_locks=$lt_need_locks
 
25665
 
 
25666
# Manifest tool.
 
25667
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
25668
 
 
25669
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
25670
DSYMUTIL=$lt_DSYMUTIL
 
25671
 
 
25672
# Tool to change global to local symbols on Mac OS X.
 
25673
NMEDIT=$lt_NMEDIT
 
25674
 
 
25675
# Tool to manipulate fat objects and archives on Mac OS X.
 
25676
LIPO=$lt_LIPO
 
25677
 
 
25678
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
25679
OTOOL=$lt_OTOOL
 
25680
 
 
25681
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
25682
OTOOL64=$lt_OTOOL64
 
25683
 
 
25684
# Old archive suffix (normally "a").
 
25685
libext=$libext
 
25686
 
 
25687
# Shared library suffix (normally ".so").
 
25688
shrext_cmds=$lt_shrext_cmds
 
25689
 
 
25690
# The commands to extract the exported symbol list from a shared archive.
 
25691
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
25692
 
 
25693
# Variables whose values should be saved in libtool wrapper scripts and
 
25694
# restored at link time.
 
25695
variables_saved_for_relink=$lt_variables_saved_for_relink
 
25696
 
 
25697
# Do we need the "lib" prefix for modules?
 
25698
need_lib_prefix=$need_lib_prefix
 
25699
 
 
25700
# Do we need a version for libraries?
 
25701
need_version=$need_version
 
25702
 
 
25703
# Library versioning type.
 
25704
version_type=$version_type
 
25705
 
 
25706
# Shared library runtime path variable.
 
25707
runpath_var=$runpath_var
 
25708
 
 
25709
# Shared library path variable.
 
25710
shlibpath_var=$shlibpath_var
 
25711
 
 
25712
# Is shlibpath searched before the hard-coded library search path?
 
25713
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
25714
 
 
25715
# Format of library name prefix.
 
25716
libname_spec=$lt_libname_spec
 
25717
 
 
25718
# List of archive names.  First name is the real one, the rest are links.
 
25719
# The last name is the one that the linker finds with -lNAME
 
25720
library_names_spec=$lt_library_names_spec
 
25721
 
 
25722
# The coded name of the library, if different from the real name.
 
25723
soname_spec=$lt_soname_spec
 
25724
 
 
25725
# Permission mode override for installation of shared libraries.
 
25726
install_override_mode=$lt_install_override_mode
 
25727
 
 
25728
# Command to use after installation of a shared archive.
 
25729
postinstall_cmds=$lt_postinstall_cmds
 
25730
 
 
25731
# Command to use after uninstallation of a shared archive.
 
25732
postuninstall_cmds=$lt_postuninstall_cmds
 
25733
 
 
25734
# Commands used to finish a libtool library installation in a directory.
 
25735
finish_cmds=$lt_finish_cmds
 
25736
 
 
25737
# As "finish_cmds", except a single script fragment to be evaled but
 
25738
# not shown.
 
25739
finish_eval=$lt_finish_eval
 
25740
 
 
25741
# Whether we should hardcode library paths into libraries.
 
25742
hardcode_into_libs=$hardcode_into_libs
 
25743
 
 
25744
# Compile-time system search path for libraries.
 
25745
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
25746
 
 
25747
# Run-time system search path for libraries.
 
25748
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
25749
 
 
25750
# Whether dlopen is supported.
 
25751
dlopen_support=$enable_dlopen
 
25752
 
 
25753
# Whether dlopen of programs is supported.
 
25754
dlopen_self=$enable_dlopen_self
 
25755
 
 
25756
# Whether dlopen of statically linked programs is supported.
 
25757
dlopen_self_static=$enable_dlopen_self_static
 
25758
 
 
25759
# Commands to strip libraries.
 
25760
old_striplib=$lt_old_striplib
 
25761
striplib=$lt_striplib
 
25762
 
 
25763
 
 
25764
# The linker used to build libraries.
 
25765
LD=$lt_LD
 
25766
 
 
25767
# How to create reloadable object files.
 
25768
reload_flag=$lt_reload_flag
 
25769
reload_cmds=$lt_reload_cmds
 
25770
 
 
25771
# Commands used to build an old-style archive.
 
25772
old_archive_cmds=$lt_old_archive_cmds
 
25773
 
 
25774
# A language specific compiler.
 
25775
CC=$lt_compiler
 
25776
 
 
25777
# Is the compiler the GNU compiler?
 
25778
with_gcc=$GCC
 
25779
 
 
25780
# Compiler flag to turn off builtin functions.
 
25781
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
25782
 
 
25783
# Additional compiler flags for building library objects.
 
25784
pic_flag=$lt_lt_prog_compiler_pic
 
25785
 
 
25786
# How to pass a linker flag through the compiler.
 
25787
wl=$lt_lt_prog_compiler_wl
 
25788
 
 
25789
# Compiler flag to prevent dynamic linking.
 
25790
link_static_flag=$lt_lt_prog_compiler_static
 
25791
 
 
25792
# Does compiler simultaneously support -c and -o options?
 
25793
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
25794
 
 
25795
# Whether or not to add -lc for building shared libraries.
 
25796
build_libtool_need_lc=$archive_cmds_need_lc
 
25797
 
 
25798
# Whether or not to disallow shared libs when runtime libs are static.
 
25799
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
25800
 
 
25801
# Compiler flag to allow reflexive dlopens.
 
25802
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
25803
 
 
25804
# Compiler flag to generate shared objects directly from archives.
 
25805
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
25806
 
 
25807
# Whether the compiler copes with passing no objects directly.
 
25808
compiler_needs_object=$lt_compiler_needs_object
 
25809
 
 
25810
# Create an old-style archive from a shared archive.
 
25811
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
25812
 
 
25813
# Create a temporary old-style archive to link instead of a shared archive.
 
25814
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
25815
 
 
25816
# Commands used to build a shared archive.
 
25817
archive_cmds=$lt_archive_cmds
 
25818
archive_expsym_cmds=$lt_archive_expsym_cmds
 
25819
 
 
25820
# Commands used to build a loadable module if different from building
 
25821
# a shared archive.
 
25822
module_cmds=$lt_module_cmds
 
25823
module_expsym_cmds=$lt_module_expsym_cmds
 
25824
 
 
25825
# Whether we are building with GNU ld or not.
 
25826
with_gnu_ld=$lt_with_gnu_ld
 
25827
 
 
25828
# Flag that allows shared libraries with undefined symbols to be built.
 
25829
allow_undefined_flag=$lt_allow_undefined_flag
 
25830
 
 
25831
# Flag that enforces no undefined symbols.
 
25832
no_undefined_flag=$lt_no_undefined_flag
 
25833
 
 
25834
# Flag to hardcode \$libdir into a binary during linking.
 
25835
# This must work even if \$libdir does not exist
 
25836
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
25837
 
 
25838
# Whether we need a single "-rpath" flag with a separated argument.
 
25839
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
25840
 
 
25841
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
25842
# DIR into the resulting binary.
 
25843
hardcode_direct=$hardcode_direct
 
25844
 
 
25845
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
25846
# DIR into the resulting binary and the resulting library dependency is
 
25847
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
25848
# library is relocated.
 
25849
hardcode_direct_absolute=$hardcode_direct_absolute
 
25850
 
 
25851
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
25852
# into the resulting binary.
 
25853
hardcode_minus_L=$hardcode_minus_L
 
25854
 
 
25855
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
25856
# into the resulting binary.
 
25857
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
25858
 
 
25859
# Set to "yes" if building a shared library automatically hardcodes DIR
 
25860
# into the library and all subsequent libraries and executables linked
 
25861
# against it.
 
25862
hardcode_automatic=$hardcode_automatic
 
25863
 
 
25864
# Set to yes if linker adds runtime paths of dependent libraries
 
25865
# to runtime path list.
 
25866
inherit_rpath=$inherit_rpath
 
25867
 
 
25868
# Whether libtool must link a program against all its dependency libraries.
 
25869
link_all_deplibs=$link_all_deplibs
 
25870
 
 
25871
# Set to "yes" if exported symbols are required.
 
25872
always_export_symbols=$always_export_symbols
 
25873
 
 
25874
# The commands to list exported symbols.
 
25875
export_symbols_cmds=$lt_export_symbols_cmds
 
25876
 
 
25877
# Symbols that should not be listed in the preloaded symbols.
 
25878
exclude_expsyms=$lt_exclude_expsyms
 
25879
 
 
25880
# Symbols that must always be exported.
 
25881
include_expsyms=$lt_include_expsyms
 
25882
 
 
25883
# Commands necessary for linking programs (against libraries) with templates.
 
25884
prelink_cmds=$lt_prelink_cmds
 
25885
 
 
25886
# Commands necessary for finishing linking programs.
 
25887
postlink_cmds=$lt_postlink_cmds
 
25888
 
 
25889
# Specify filename containing input files.
 
25890
file_list_spec=$lt_file_list_spec
 
25891
 
 
25892
# How to hardcode a shared library path into an executable.
 
25893
hardcode_action=$hardcode_action
 
25894
 
 
25895
# ### END LIBTOOL CONFIG
 
25896
 
 
25897
_LT_EOF
 
25898
 
 
25899
  case $host_os in
 
25900
  aix3*)
 
25901
    cat <<\_LT_EOF >> "$cfgfile"
 
25902
# AIX sometimes has problems with the GCC collect2 program.  For some
 
25903
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
25904
# vanish in a puff of smoke.
 
25905
if test "X${COLLECT_NAMES+set}" != Xset; then
 
25906
  COLLECT_NAMES=
 
25907
  export COLLECT_NAMES
 
25908
fi
 
25909
_LT_EOF
 
25910
    ;;
 
25911
  esac
 
25912
 
 
25913
 
 
25914
ltmain="$ac_aux_dir/ltmain.sh"
 
25915
 
 
25916
 
 
25917
  # We use sed instead of cat because bash on DJGPP gets confused if
 
25918
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
25919
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
25920
  # is reportedly fixed, but why not run on old versions too?
 
25921
  sed '$q' "$ltmain" >> "$cfgfile" \
 
25922
     || (rm -f "$cfgfile"; exit 1)
 
25923
 
 
25924
  if test x"$xsi_shell" = xyes; then
 
25925
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
25926
func_dirname ()\
 
25927
{\
 
25928
\    case ${1} in\
 
25929
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
25930
\      *  ) func_dirname_result="${3}" ;;\
 
25931
\    esac\
 
25932
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
25933
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25934
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25935
test 0 -eq $? || _lt_function_replace_fail=:
 
25936
 
 
25937
 
 
25938
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
25939
func_basename ()\
 
25940
{\
 
25941
\    func_basename_result="${1##*/}"\
 
25942
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
25943
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25944
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25945
test 0 -eq $? || _lt_function_replace_fail=:
 
25946
 
 
25947
 
 
25948
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
25949
func_dirname_and_basename ()\
 
25950
{\
 
25951
\    case ${1} in\
 
25952
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
25953
\      *  ) func_dirname_result="${3}" ;;\
 
25954
\    esac\
 
25955
\    func_basename_result="${1##*/}"\
 
25956
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
25957
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25958
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25959
test 0 -eq $? || _lt_function_replace_fail=:
 
25960
 
 
25961
 
 
25962
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
25963
func_stripname ()\
 
25964
{\
 
25965
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
25966
\    # positional parameters, so assign one to ordinary parameter first.\
 
25967
\    func_stripname_result=${3}\
 
25968
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
25969
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
25970
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
25971
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25972
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25973
test 0 -eq $? || _lt_function_replace_fail=:
 
25974
 
 
25975
 
 
25976
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
25977
func_split_long_opt ()\
 
25978
{\
 
25979
\    func_split_long_opt_name=${1%%=*}\
 
25980
\    func_split_long_opt_arg=${1#*=}\
 
25981
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
25982
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25983
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25984
test 0 -eq $? || _lt_function_replace_fail=:
 
25985
 
 
25986
 
 
25987
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
25988
func_split_short_opt ()\
 
25989
{\
 
25990
\    func_split_short_opt_arg=${1#??}\
 
25991
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
25992
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
25993
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
25994
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
25995
test 0 -eq $? || _lt_function_replace_fail=:
 
25996
 
 
25997
 
 
25998
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
25999
func_lo2o ()\
 
26000
{\
 
26001
\    case ${1} in\
 
26002
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
26003
\      *)    func_lo2o_result=${1} ;;\
 
26004
\    esac\
 
26005
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
26006
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26007
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26008
test 0 -eq $? || _lt_function_replace_fail=:
 
26009
 
 
26010
 
 
26011
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
26012
func_xform ()\
 
26013
{\
 
26014
    func_xform_result=${1%.*}.lo\
 
26015
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
26016
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26017
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26018
test 0 -eq $? || _lt_function_replace_fail=:
 
26019
 
 
26020
 
 
26021
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
26022
func_arith ()\
 
26023
{\
 
26024
    func_arith_result=$(( $* ))\
 
26025
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
26026
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26027
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26028
test 0 -eq $? || _lt_function_replace_fail=:
 
26029
 
 
26030
 
 
26031
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
26032
func_len ()\
 
26033
{\
 
26034
    func_len_result=${#1}\
 
26035
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
26036
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26037
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26038
test 0 -eq $? || _lt_function_replace_fail=:
 
26039
 
 
26040
fi
 
26041
 
 
26042
if test x"$lt_shell_append" = xyes; then
 
26043
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
26044
func_append ()\
 
26045
{\
 
26046
    eval "${1}+=\\${2}"\
 
26047
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
26048
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26049
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26050
test 0 -eq $? || _lt_function_replace_fail=:
 
26051
 
 
26052
 
 
26053
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
26054
func_append_quoted ()\
 
26055
{\
 
26056
\    func_quote_for_eval "${2}"\
 
26057
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
26058
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
26059
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26060
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26061
test 0 -eq $? || _lt_function_replace_fail=:
 
26062
 
 
26063
 
 
26064
  # Save a `func_append' function call where possible by direct use of '+='
 
26065
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
26066
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26067
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26068
  test 0 -eq $? || _lt_function_replace_fail=:
 
26069
else
 
26070
  # Save a `func_append' function call even when '+=' is not available
 
26071
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
26072
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
26073
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
26074
  test 0 -eq $? || _lt_function_replace_fail=:
 
26075
fi
 
26076
 
 
26077
if test x"$_lt_function_replace_fail" = x":"; then
 
26078
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
26079
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
26080
fi
 
26081
 
 
26082
 
 
26083
   mv -f "$cfgfile" "$ofile" ||
 
26084
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
26085
  chmod +x "$ofile"
 
26086
 
 
26087
 ;;
 
26088
    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
 
26089
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
26090
      esac ;;
 
26091
    "libgimpbase/gimpversion.h":C)
 
26092
  outfile=gimpversion.h-tmp
 
26093
  cat > $outfile <<\_______EOF
 
26094
/* gimpversion.h
 
26095
 *
 
26096
 * This is a generated file.  Please modify 'configure.ac'
 
26097
 */
 
26098
 
 
26099
#if !defined (__GIMP_BASE_H_INSIDE__) && !defined (GIMP_BASE_COMPILATION)
 
26100
#error "Only <libgimpbase/gimpbase.h> can be included directly."
 
26101
#endif
 
26102
 
 
26103
#ifndef __GIMP_VERSION_H__
 
26104
#define __GIMP_VERSION_H__
 
26105
 
 
26106
G_BEGIN_DECLS
 
26107
 
 
26108
 
 
26109
/**
 
26110
 * SECTION: gimpversion
 
26111
 * @title: gimpversion
 
26112
 * @short_description: Macros and constants useful for determining
 
26113
 *                     GIMP's version number and capabilities.
 
26114
 *
 
26115
 * Macros and constants useful for determining GIMP's version number and
 
26116
 * capabilities.
 
26117
 **/
 
26118
 
 
26119
_______EOF
 
26120
 
 
26121
  cat >>$outfile <<_______EOF
 
26122
/**
 
26123
 * GIMP_MAJOR_VERSION:
 
26124
 *
 
26125
 * The major GIMP version number.
 
26126
 **/
 
26127
#define GIMP_MAJOR_VERSION                              ($gimp_major_ver)
 
26128
 
 
26129
/**
 
26130
 * GIMP_MINOR_VERSION:
 
26131
 *
 
26132
 * The minor GIMP version number.
 
26133
 **/
 
26134
#define GIMP_MINOR_VERSION                              ($gimp_minor_ver)
 
26135
 
 
26136
/**
 
26137
 * GIMP_MICRO_VERSION:
 
26138
 *
 
26139
 * The micro GIMP version number.
 
26140
 **/
 
26141
#define GIMP_MICRO_VERSION                              ($gimp_micro_ver)
 
26142
 
 
26143
/**
 
26144
 * GIMP_VERSION:
 
26145
 *
 
26146
 * The GIMP version as a string.
 
26147
 **/
 
26148
#define GIMP_VERSION                                    "$gimp_ver"
 
26149
 
 
26150
/**
 
26151
 * GIMP_API_VERSION:
 
26152
 *
 
26153
 * Since: GIMP 2.2
 
26154
 **/
 
26155
#define GIMP_API_VERSION                                "$gimp_api_ver"
 
26156
 
 
26157
_______EOF
 
26158
 
 
26159
  cat >>$outfile <<\_______EOF
 
26160
#define GIMP_CHECK_VERSION(major, minor, micro) \
 
26161
    (GIMP_MAJOR_VERSION > (major) || \
 
26162
     (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
 
26163
     (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
 
26164
      GIMP_MICRO_VERSION >= (micro)))
 
26165
 
 
26166
 
 
26167
G_END_DECLS
 
26168
 
 
26169
#endif /* __GIMP_VERSION_H__ */
 
26170
_______EOF
 
26171
 
 
26172
  if cmp -s $outfile libgimpbase/gimpversion.h; then
 
26173
    { $as_echo "$as_me:${as_lineno-$LINENO}: libgimpbase/gimpversion.h is unchanged" >&5
 
26174
$as_echo "$as_me: libgimpbase/gimpversion.h is unchanged" >&6;}
 
26175
    rm -f $outfile
 
26176
  else
 
26177
    mv $outfile libgimpbase/gimpversion.h
 
26178
  fi
 
26179
 ;;
 
26180
    "sed-po-makefiles":C) sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile && touch po-libgimp/stamp-it
 
26181
sed -e "/POTFILES =/r po-python/POTFILES" po-python/Makefile.in > po-python/Makefile && touch po-python/stamp-it
 
26182
sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile && touch po-plug-ins/stamp-it
 
26183
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile && touch po-script-fu/stamp-it
 
26184
sed -e "/POTFILES =/r po-tips/POTFILES" po-tips/Makefile.in > po-tips/Makefile && touch po-tips/stamp-it ;;
 
26185
    "po/stamp-it":C)
 
26186
    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
 
26187
       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
 
26188
    fi
 
26189
    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
 
26190
    >"po/stamp-it.tmp"
 
26191
    sed '/^#/d
 
26192
         s/^[[].*] *//
 
26193
         /^[    ]*$/d
 
26194
        '"s|^|  $ac_top_srcdir/|" \
 
26195
      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
 
26196
 
 
26197
    sed '/^POTFILES =/,/[^\\]$/ {
 
26198
                /^POTFILES =/!d
 
26199
                r po/POTFILES
 
26200
          }
 
26201
         ' "po/Makefile.in" >"po/Makefile"
 
26202
    rm -f "po/Makefile.tmp"
 
26203
    mv "po/stamp-it.tmp" "po/stamp-it"
 
26204
   ;;
 
26205
 
 
26206
  esac
 
26207
done # for ac_tag
 
26208
 
 
26209
 
 
26210
as_fn_exit 0
 
26211
_ACEOF
 
26212
ac_clean_files=$ac_clean_files_save
 
26213
 
 
26214
test $ac_write_fail = 0 ||
 
26215
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
26216
 
 
26217
 
 
26218
# configure is writing to config.log, and then calls config.status.
 
26219
# config.status does its own redirection, appending to config.log.
 
26220
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26221
# by configure, so config.status won't be able to write to it; its
 
26222
# output is simply discarded.  So we exec the FD to /dev/null,
 
26223
# effectively closing config.log, so it can be properly (re)opened and
 
26224
# appended to by config.status.  When coming back to configure, we
 
26225
# need to make the FD available again.
 
26226
if test "$no_create" != yes; then
 
26227
  ac_cs_success=:
 
26228
  ac_config_status_args=
 
26229
  test "$silent" = yes &&
 
26230
    ac_config_status_args="$ac_config_status_args --quiet"
 
26231
  exec 5>/dev/null
 
26232
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26233
  exec 5>>config.log
 
26234
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26235
  # would make configure fail if this is the last instruction.
 
26236
  $ac_cs_success || as_fn_exit 1
 
26237
fi
 
26238
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
26239
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
26240
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
26241
fi
 
26242
 
 
26243
 
 
26244
# Print a summary of features enabled/disabled:
 
26245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
 
26246
Building GIMP with prefix=$prefix, datarootdir=$datarootdir
 
26247
Desktop files install into $DESKTOP_DATADIR
 
26248
 
 
26249
Extra Binaries:
 
26250
  gimp-console:        $enable_gimp_console
 
26251
 
 
26252
Optional Features:
 
26253
  D-Bus service:       $have_dbus_glib
 
26254
  Language selection:  $have_iso_codes
 
26255
 
 
26256
Optional Plug-Ins:
 
26257
  Ascii Art:           $have_libaa
 
26258
  Compressor:          $have_compressor
 
26259
  Ghostscript:         $have_gs
 
26260
  Help Browser:        $have_webkit
 
26261
  LCMS:                $have_lcms
 
26262
  JPEG:                $jpeg_ok
 
26263
  JPEG 2000:           $have_jp2
 
26264
  MNG:                 $have_libmng
 
26265
  PDF (import):        $have_poppler
 
26266
  PDF (export):        $have_cairo_pdf
 
26267
  PNG:                 $have_libpng
 
26268
  Print:               $enable_print
 
26269
  PSP:                 $have_zlib
 
26270
  Python:              $enable_python
 
26271
  Script-Fu:           $have_script_fu
 
26272
  SVG:                 $have_librsvg
 
26273
  TIFF:                $have_libtiff
 
26274
  TWAIN (MacOS X):     $mac_twain_ok
 
26275
  TWAIN (Win32):       $os_win32
 
26276
  URI:                 $uri_plugin
 
26277
  Webpage:             $have_webkit
 
26278
  Windows ICO:         $have_libpng
 
26279
  WMF:                 $have_libwmf
 
26280
  XJT:                 $have_xjt
 
26281
  X11 Mouse Cursor:    $have_xmc
 
26282
  XPM:                 $have_libxpm
 
26283
 
 
26284
Plug-In Features:
 
26285
  EXIF support:        $have_libexif
 
26286
 
 
26287
Optional Modules:
 
26288
  ALSA (MIDI Input):   $have_alsa
 
26289
  Linux Input:         $have_linux_input (GUdev support: $have_libgudev)
 
26290
  DirectInput (Win32): $have_dx_dinput
 
26291
  Color Correction:    $have_lcms
 
26292
  Soft Proof:          $have_lcms
 
26293
 
 
26294
Tests:
 
26295
  Use xvfb-run         $have_xvfb_run
 
26296
" >&5
 
26297
$as_echo "
 
26298
Building GIMP with prefix=$prefix, datarootdir=$datarootdir
 
26299
Desktop files install into $DESKTOP_DATADIR
 
26300
 
 
26301
Extra Binaries:
 
26302
  gimp-console:        $enable_gimp_console
 
26303
 
 
26304
Optional Features:
 
26305
  D-Bus service:       $have_dbus_glib
 
26306
  Language selection:  $have_iso_codes
 
26307
 
 
26308
Optional Plug-Ins:
 
26309
  Ascii Art:           $have_libaa
 
26310
  Compressor:          $have_compressor
 
26311
  Ghostscript:         $have_gs
 
26312
  Help Browser:        $have_webkit
 
26313
  LCMS:                $have_lcms
 
26314
  JPEG:                $jpeg_ok
 
26315
  JPEG 2000:           $have_jp2
 
26316
  MNG:                 $have_libmng
 
26317
  PDF (import):        $have_poppler
 
26318
  PDF (export):        $have_cairo_pdf
 
26319
  PNG:                 $have_libpng
 
26320
  Print:               $enable_print
 
26321
  PSP:                 $have_zlib
 
26322
  Python:              $enable_python
 
26323
  Script-Fu:           $have_script_fu
 
26324
  SVG:                 $have_librsvg
 
26325
  TIFF:                $have_libtiff
 
26326
  TWAIN (MacOS X):     $mac_twain_ok
 
26327
  TWAIN (Win32):       $os_win32
 
26328
  URI:                 $uri_plugin
 
26329
  Webpage:             $have_webkit
 
26330
  Windows ICO:         $have_libpng
 
26331
  WMF:                 $have_libwmf
 
26332
  XJT:                 $have_xjt
 
26333
  X11 Mouse Cursor:    $have_xmc
 
26334
  XPM:                 $have_libxpm
 
26335
 
 
26336
Plug-In Features:
 
26337
  EXIF support:        $have_libexif
 
26338
 
 
26339
Optional Modules:
 
26340
  ALSA (MIDI Input):   $have_alsa
 
26341
  Linux Input:         $have_linux_input (GUdev support: $have_libgudev)
 
26342
  DirectInput (Win32): $have_dx_dinput
 
26343
  Color Correction:    $have_lcms
 
26344
  Soft Proof:          $have_lcms
 
26345
 
 
26346
Tests:
 
26347
  Use xvfb-run         $have_xvfb_run
 
26348
" >&6; };