configure 503 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17001

17002
17003
# Object file suffix (normally "o").
objext=$ac_objext
17004

17005
17006
# Executable file suffix (normally "").
exeext=$exeext
17007

17008
17009
# whether the shell understands "unset".
lt_unset=$lt_unset
17010

17011
17012
# turn spaces into newlines.
SP2NL=$lt_lt_SP2NL
17013

17014
17015
# turn newlines into spaces.
NL2SP=$lt_lt_NL2SP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17016

17017
17018
# convert \$build file names to \$host format.
to_host_file_cmd=$lt_cv_to_host_file_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17019

17020
17021
# convert \$build files to toolchain format.
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17022

17023
17024
# An object symbol dumper.
OBJDUMP=$lt_OBJDUMP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17025

17026
17027
# Method to check whether dependent libraries are shared objects.
deplibs_check_method=$lt_deplibs_check_method
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17028

17029
17030
# Command to use when deplibs_check_method = "file_magic".
file_magic_cmd=$lt_file_magic_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17031

17032
17033
# How to find potential files when deplibs_check_method = "file_magic".
file_magic_glob=$lt_file_magic_glob
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17034

17035
17036
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
want_nocaseglob=$lt_want_nocaseglob
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17037

17038
17039
# DLL creation program.
DLLTOOL=$lt_DLLTOOL
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17040

17041
17042
# Command to associate shared and link libraries.
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17043

17044
17045
# The archiver.
AR=$lt_AR
17046

17047
17048
# Flags to create an archive.
AR_FLAGS=$lt_AR_FLAGS
17049

17050
17051
# How to feed a file listing to the archiver.
archiver_list_spec=$lt_archiver_list_spec
17052

17053
17054
# A symbol stripping program.
STRIP=$lt_STRIP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17055

17056
17057
17058
17059
# Commands used to install an old-style archive.
RANLIB=$lt_RANLIB
old_postinstall_cmds=$lt_old_postinstall_cmds
old_postuninstall_cmds=$lt_old_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17060

17061
17062
# Whether to use a lock for old archive extraction.
lock_old_archive_extraction=$lock_old_archive_extraction
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17063

17064
17065
# A C compiler.
LTCC=$lt_CC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17066

17067
17068
# LTCC compiler flags.
LTCFLAGS=$lt_CFLAGS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17069

17070
17071
# Take the output of nm and produce a listing of raw symbols and C names.
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17072

17073
17074
# Transform the output of nm in a proper C declaration.
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17075

17076
17077
# Transform the output of nm in a C name address pair.
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17078

17079
17080
# Transform the output of nm in a C name address pair when lib prefix is needed.
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17081

17082
17083
# Specify filename containing input files for \$NM.
nm_file_list_spec=$lt_nm_file_list_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17084

17085
17086
# The root where to search for dependent libraries,and in which our libraries should be installed.
lt_sysroot=$lt_sysroot
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17087

17088
17089
# The name of the directory that contains temporary libtool files.
objdir=$objdir
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17090

17091
17092
# Used to examine libraries when file_magic_cmd begins with "file".
MAGIC_CMD=$MAGIC_CMD
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17093

17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
# Must we lock files when doing compilation?
need_locks=$lt_need_locks

# Manifest tool.
MANIFEST_TOOL=$lt_MANIFEST_TOOL

# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
DSYMUTIL=$lt_DSYMUTIL

# Tool to change global to local symbols on Mac OS X.
NMEDIT=$lt_NMEDIT

# Tool to manipulate fat objects and archives on Mac OS X.
LIPO=$lt_LIPO

# ldd/readelf like tool for Mach-O binaries on Mac OS X.
OTOOL=$lt_OTOOL

# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
OTOOL64=$lt_OTOOL64

# Old archive suffix (normally "a").
libext=$libext

# Shared library suffix (normally ".so").
shrext_cmds=$lt_shrext_cmds

# The commands to extract the exported symbol list from a shared archive.
extract_expsyms_cmds=$lt_extract_expsyms_cmds

# Variables whose values should be saved in libtool wrapper scripts and
# restored at link time.
variables_saved_for_relink=$lt_variables_saved_for_relink

# Do we need the "lib" prefix for modules?
need_lib_prefix=$need_lib_prefix

# Do we need a version for libraries?
need_version=$need_version

# Library versioning type.
version_type=$version_type

# Shared library runtime path variable.
runpath_var=$runpath_var

# Shared library path variable.
shlibpath_var=$shlibpath_var

# Is shlibpath searched before the hard-coded library search path?
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17145

17146
17147
# Format of library name prefix.
libname_spec=$lt_libname_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17148

17149
17150
17151
# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec=$lt_library_names_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17152

17153
17154
# The coded name of the library, if different from the real name.
soname_spec=$lt_soname_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17155

17156
17157
# Permission mode override for installation of shared libraries.
install_override_mode=$lt_install_override_mode
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17158

17159
17160
# Command to use after installation of a shared archive.
postinstall_cmds=$lt_postinstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17161

17162
17163
# Command to use after uninstallation of a shared archive.
postuninstall_cmds=$lt_postuninstall_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17164

17165
17166
# Commands used to finish a libtool library installation in a directory.
finish_cmds=$lt_finish_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17167

17168
17169
17170
# As "finish_cmds", except a single script fragment to be evaled but
# not shown.
finish_eval=$lt_finish_eval
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17171

17172
17173
# Whether we should hardcode library paths into libraries.
hardcode_into_libs=$hardcode_into_libs
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17174

17175
17176
# Compile-time system search path for libraries.
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17177

17178
17179
# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17180

17181
17182
# Whether dlopen is supported.
dlopen_support=$enable_dlopen
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17183

17184
17185
# Whether dlopen of programs is supported.
dlopen_self=$enable_dlopen_self
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17186

17187
17188
# Whether dlopen of statically linked programs is supported.
dlopen_self_static=$enable_dlopen_self_static
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17189

17190
17191
17192
# Commands to strip libraries.
old_striplib=$lt_old_striplib
striplib=$lt_striplib
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17193
17194


17195
17196
# The linker used to build libraries.
LD=$lt_LD
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17197

17198
17199
17200
# How to create reloadable object files.
reload_flag=$lt_reload_flag
reload_cmds=$lt_reload_cmds
17201

17202
17203
# Commands used to build an old-style archive.
old_archive_cmds=$lt_old_archive_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17204

17205
17206
# A language specific compiler.
CC=$lt_compiler
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17207

17208
17209
# Is the compiler the GNU compiler?
with_gcc=$GCC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17210

17211
17212
# Compiler flag to turn off builtin functions.
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17213

17214
17215
# Additional compiler flags for building library objects.
pic_flag=$lt_lt_prog_compiler_pic
17216

17217
17218
# How to pass a linker flag through the compiler.
wl=$lt_lt_prog_compiler_wl
17219

17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
# Compiler flag to prevent dynamic linking.
link_static_flag=$lt_lt_prog_compiler_static

# Does compiler simultaneously support -c and -o options?
compiler_c_o=$lt_lt_cv_prog_compiler_c_o

# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=$archive_cmds_need_lc

# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes

# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec

# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17237

17238
17239
# Whether the compiler copes with passing no objects directly.
compiler_needs_object=$lt_compiler_needs_object
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17240

17241
17242
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17243

17244
17245
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17246

17247
17248
17249
# Commands used to build a shared archive.
archive_cmds=$lt_archive_cmds
archive_expsym_cmds=$lt_archive_expsym_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17250

17251
17252
17253
17254
# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=$lt_module_cmds
module_expsym_cmds=$lt_module_expsym_cmds
17255

17256
17257
# Whether we are building with GNU ld or not.
with_gnu_ld=$lt_with_gnu_ld
17258

17259
17260
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=$lt_allow_undefined_flag
17261

17262
17263
# Flag that enforces no undefined symbols.
no_undefined_flag=$lt_no_undefined_flag
17264

17265
17266
17267
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17268

17269
17270
# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=$lt_hardcode_libdir_separator
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17271

17272
17273
17274
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=$hardcode_direct
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17275

17276
17277
17278
17279
17280
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=$hardcode_direct_absolute
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17281

17282
17283
17284
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=$hardcode_minus_L
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17285

17286
17287
17288
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17289

17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=$hardcode_automatic

# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=$inherit_rpath

# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs

# Set to "yes" if exported symbols are required.
always_export_symbols=$always_export_symbols

# The commands to list exported symbols.
export_symbols_cmds=$lt_export_symbols_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17307

17308
17309
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=$lt_exclude_expsyms
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17310

17311
17312
# Symbols that must always be exported.
include_expsyms=$lt_include_expsyms
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17313

17314
17315
# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=$lt_prelink_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17316

17317
17318
# Commands necessary for finishing linking programs.
postlink_cmds=$lt_postlink_cmds
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17319

17320
17321
# Specify filename containing input files.
file_list_spec=$lt_file_list_spec
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17322

17323
17324
# How to hardcode a shared library path into an executable.
hardcode_action=$hardcode_action
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17325

17326
# ### END LIBTOOL CONFIG
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17327

17328
_LT_EOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17329

17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
  case $host_os in
  aix3*)
    cat <<\_LT_EOF >> "$cfgfile"
# AIX sometimes has problems with the GCC collect2 program.  For some
# reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then
  COLLECT_NAMES=
  export COLLECT_NAMES
fi
_LT_EOF
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17342
17343
17344
  esac


17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
ltmain="$ac_aux_dir/ltmain.sh"


  # We use sed instead of cat because bash on DJGPP gets confused if
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  # text mode, it properly converts lines to CR/LF.  This bash problem
  # is reportedly fixed, but why not run on old versions too?
  sed '$q' "$ltmain" >> "$cfgfile" \
     || (rm -f "$cfgfile"; exit 1)

  if test x"$xsi_shell" = xyes; then
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
func_dirname ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_basename ()$/,/^} # func_basename /c\
func_basename ()\
{\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
func_dirname_and_basename ()\
{\
\    case ${1} in\
\      */*) func_dirname_result="${1%/*}${2}" ;;\
\      *  ) func_dirname_result="${3}" ;;\
\    esac\
\    func_basename_result="${1##*/}"\
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
func_stripname ()\
{\
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
\    # positional parameters, so assign one to ordinary parameter first.\
\    func_stripname_result=${3}\
\    func_stripname_result=${func_stripname_result#"${1}"}\
\    func_stripname_result=${func_stripname_result%"${2}"}\
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
func_split_long_opt ()\
{\
\    func_split_long_opt_name=${1%%=*}\
\    func_split_long_opt_arg=${1#*=}\
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
func_split_short_opt ()\
{\
\    func_split_short_opt_arg=${1#??}\
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
func_lo2o ()\
{\
\    case ${1} in\
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
\      *)    func_lo2o_result=${1} ;;\
\    esac\
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_xform ()$/,/^} # func_xform /c\
func_xform ()\
{\
    func_xform_result=${1%.*}.lo\
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_arith ()$/,/^} # func_arith /c\
func_arith ()\
{\
    func_arith_result=$(( $* ))\
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_len ()$/,/^} # func_len /c\
func_len ()\
{\
    func_len_result=${#1}\
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:

fi

if test x"$lt_shell_append" = xyes; then
  sed -e '/^func_append ()$/,/^} # func_append /c\
func_append ()\
{\
    eval "${1}+=\\${2}"\
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
func_append_quoted ()\
{\
\    func_quote_for_eval "${2}"\
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  && mv -f "$cfgfile.tmp" "$cfgfile" \
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
test 0 -eq $? || _lt_function_replace_fail=:


  # Save a `func_append' function call where possible by direct use of '+='
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
else
  # Save a `func_append' function call even when '+=' is not available
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
    && mv -f "$cfgfile.tmp" "$cfgfile" \
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  test 0 -eq $? || _lt_function_replace_fail=:
fi

if test x"$_lt_function_replace_fail" = x":"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
fi


   mv -f "$cfgfile" "$ofile" ||
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  chmod +x "$ofile"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17517
17518

 ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17519

Emmanuel Bertin's avatar
Emmanuel Bertin committed
17520
  esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17521
done # for ac_tag
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17522
17523


17524
as_fn_exit 0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17525
17526
17527
_ACEOF
ac_clean_files=$ac_clean_files_save

17528
test $ac_write_fail = 0 ||
17529
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17530

Emmanuel Bertin's avatar
Emmanuel Bertin committed
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549

# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
17550
  $ac_cs_success || as_fn_exit 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17551
fi
17552
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17553
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17554
17555
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17556
For faster browsing, not all history is shown. View entire blame