1#! /bin/bash 2# Generated by configure. 3# Run this file to recreate a libtool stub with the current configuration. 4SHELL=${CONFIG_SHELL-/bin/bash} 5export SHELL 6## -------------------- ## 7## M4sh Initialization. ## 8## -------------------- ## 9 10# Be more Bourne compatible 11DUALCASE=1; export DUALCASE # for MKS sh 12if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13 emulate sh 14 NULLCMD=: 15 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16 # is contrary to our usage. Disable this feature. 17 alias -g '${1+"$@"}'='"$@"' 18 setopt NO_GLOB_SUBST 19else 20 case `(set -o) 2>/dev/null` in #( 21 *posix*) : 22 set -o posix ;; #( 23 *) : 24 ;; 25esac 26fi 27 28 29as_nl=' 30' 31export as_nl 32# Printing a long string crashes Solaris 7 /usr/bin/printf. 33as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 34as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 35as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 36# Prefer a ksh shell builtin over an external printf program on Solaris, 37# but without wasting forks for bash or zsh. 38if test -z "$BASH_VERSION$ZSH_VERSION" \ 39 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 40 as_echo='print -r --' 41 as_echo_n='print -rn --' 42elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43 as_echo='printf %s\n' 44 as_echo_n='printf %s' 45else 46 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 47 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 48 as_echo_n='/usr/ucb/echo -n' 49 else 50 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51 as_echo_n_body='eval 52 arg=$1; 53 case $arg in #( 54 *"$as_nl"*) 55 expr "X$arg" : "X\\(.*\\)$as_nl"; 56 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 57 esac; 58 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 59 ' 60 export as_echo_n_body 61 as_echo_n='sh -c $as_echo_n_body as_echo' 62 fi 63 export as_echo_body 64 as_echo='sh -c $as_echo_body as_echo' 65fi 66 67# The user is always right. 68if test "${PATH_SEPARATOR+set}" != set; then 69 PATH_SEPARATOR=: 70 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 71 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 72 PATH_SEPARATOR=';' 73 } 74fi 75 76 77# IFS 78# We need space, tab and new line, in precisely that order. Quoting is 79# there to prevent editors from complaining about space-tab. 80# (If _AS_PATH_WALK were called with IFS unset, it would disable word 81# splitting by setting IFS to empty value.) 82IFS=" "" $as_nl" 83 84# Find who we are. Look in the path if we contain no directory separator. 85as_myself= 86case $0 in #(( 87 *[\\/]* ) as_myself=$0 ;; 88 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 89for as_dir in $PATH 90do 91 IFS=$as_save_IFS 92 test -z "$as_dir" && as_dir=. 93 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 94 done 95IFS=$as_save_IFS 96 97 ;; 98esac 99# We did not find ourselves, most probably we were run as `sh COMMAND' 100# in which case we are not to be found in the path. 101if test "x$as_myself" = x; then 102 as_myself=$0 103fi 104if test ! -f "$as_myself"; then 105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 106 exit 1 107fi 108 109# Unset variables that we do not need and which cause bugs (e.g. in 110# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 111# suppresses any "Segmentation fault" message there. '((' could 112# trigger a bug in pdksh 5.2.14. 113for as_var in BASH_ENV ENV MAIL MAILPATH 114do eval test x\${$as_var+set} = xset \ 115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 116done 117PS1='$ ' 118PS2='> ' 119PS4='+ ' 120 121# NLS nuisances. 122LC_ALL=C 123export LC_ALL 124LANGUAGE=C 125export LANGUAGE 126 127# CDPATH. 128(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 129 130 131# as_fn_error STATUS ERROR [LINENO LOG_FD] 132# ---------------------------------------- 133# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 134# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 135# script with STATUS, using 1 if that was 0. 136as_fn_error () 137{ 138 as_status=$1; test $as_status -eq 0 && as_status=1 139 if test "$4"; then 140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 142 fi 143 $as_echo "$as_me: error: $2" >&2 144 as_fn_exit $as_status 145} # as_fn_error 146 147 148# as_fn_set_status STATUS 149# ----------------------- 150# Set $? to STATUS, without forking. 151as_fn_set_status () 152{ 153 return $1 154} # as_fn_set_status 155 156# as_fn_exit STATUS 157# ----------------- 158# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 159as_fn_exit () 160{ 161 set +e 162 as_fn_set_status $1 163 exit $1 164} # as_fn_exit 165 166# as_fn_unset VAR 167# --------------- 168# Portably unset VAR. 169as_fn_unset () 170{ 171 { eval $1=; unset $1;} 172} 173as_unset=as_fn_unset 174# as_fn_append VAR VALUE 175# ---------------------- 176# Append the text in VALUE to the end of the definition contained in VAR. Take 177# advantage of any shell optimizations that allow amortized linear growth over 178# repeated appends, instead of the typical quadratic growth present in naive 179# implementations. 180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 181 eval 'as_fn_append () 182 { 183 eval $1+=\$2 184 }' 185else 186 as_fn_append () 187 { 188 eval $1=\$$1\$2 189 } 190fi # as_fn_append 191 192# as_fn_arith ARG... 193# ------------------ 194# Perform arithmetic evaluation on the ARGs, and store the result in the 195# global $as_val. Take advantage of shells that can avoid forks. The arguments 196# must be portable across $(()) and expr. 197if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 198 eval 'as_fn_arith () 199 { 200 as_val=$(( $* )) 201 }' 202else 203 as_fn_arith () 204 { 205 as_val=`expr "$@" || test $? -eq 1` 206 } 207fi # as_fn_arith 208 209 210if expr a : '\(a\)' >/dev/null 2>&1 && 211 test "X`expr 00001 : '.*\(...\)'`" = X001; then 212 as_expr=expr 213else 214 as_expr=false 215fi 216 217if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 218 as_basename=basename 219else 220 as_basename=false 221fi 222 223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 224 as_dirname=dirname 225else 226 as_dirname=false 227fi 228 229as_me=`$as_basename -- "$0" || 230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 231 X"$0" : 'X\(//\)$' \| \ 232 X"$0" : 'X\(/\)' \| . 2>/dev/null || 233$as_echo X/"$0" | 234 sed '/^.*\/\([^/][^/]*\)\/*$/{ 235 s//\1/ 236 q 237 } 238 /^X\/\(\/\/\)$/{ 239 s//\1/ 240 q 241 } 242 /^X\/\(\/\).*/{ 243 s//\1/ 244 q 245 } 246 s/.*/./; q'` 247 248# Avoid depending upon Character Ranges. 249as_cr_letters='abcdefghijklmnopqrstuvwxyz' 250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 251as_cr_Letters=$as_cr_letters$as_cr_LETTERS 252as_cr_digits='0123456789' 253as_cr_alnum=$as_cr_Letters$as_cr_digits 254 255ECHO_C= ECHO_N= ECHO_T= 256case `echo -n x` in #((((( 257-n*) 258 case `echo 'xy\c'` in 259 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 260 xy) ECHO_C='\c';; 261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 262 ECHO_T=' ';; 263 esac;; 264*) 265 ECHO_N='-n';; 266esac 267 268rm -f conf$$ conf$$.exe conf$$.file 269if test -d conf$$.dir; then 270 rm -f conf$$.dir/conf$$.file 271else 272 rm -f conf$$.dir 273 mkdir conf$$.dir 2>/dev/null 274fi 275if (echo >conf$$.file) 2>/dev/null; then 276 if ln -s conf$$.file conf$$ 2>/dev/null; then 277 as_ln_s='ln -s' 278 # ... but there are two gotchas: 279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 281 # In both cases, we have to default to `cp -pR'. 282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 283 as_ln_s='cp -pR' 284 elif ln conf$$.file conf$$ 2>/dev/null; then 285 as_ln_s=ln 286 else 287 as_ln_s='cp -pR' 288 fi 289else 290 as_ln_s='cp -pR' 291fi 292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 293rmdir conf$$.dir 2>/dev/null 294 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343if mkdir -p . 2>/dev/null; then 344 as_mkdir_p='mkdir -p "$as_dir"' 345else 346 test -d ./-p && rmdir ./-p 347 as_mkdir_p=false 348fi 349 350 351# as_fn_executable_p FILE 352# ----------------------- 353# Test if FILE is an executable regular file. 354as_fn_executable_p () 355{ 356 test -f "$1" && test -x "$1" 357} # as_fn_executable_p 358as_test_x='test -x' 359as_executable_p=as_fn_executable_p 360 361# Sed expression to map a string onto a valid CPP name. 362as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 363 364# Sed expression to map a string onto a valid variable name. 365as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 366 367 368exec 6>&1 369## --------------------------------- ## 370## Main body of "$CONFIG_LT" script. ## 371## --------------------------------- ## 372lt_cl_silent=false 373exec 5>>config.log 374{ 375 echo 376 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 377## Running $as_me. ## 378_ASBOX 379} >&5 380 381lt_cl_help="\ 382\`$as_me' creates a local libtool stub from the current configuration, 383for use in further configure time tests before the real libtool is 384generated. 385 386Usage: $0 [OPTIONS] 387 388 -h, --help print this help, then exit 389 -V, --version print version number, then exit 390 -q, --quiet do not print progress messages 391 -d, --debug don't remove temporary files 392 393Report bugs to <bug-libtool@gnu.org>." 394 395lt_cl_version="\ 396config.lt 397configured by $0, generated by GNU Autoconf 2.69. 398 399Copyright (C) 2009 Free Software Foundation, Inc. 400This config.lt script is free software; the Free Software Foundation 401gives unlimited permision to copy, distribute and modify it." 402 403while test $# != 0 404do 405 case $1 in 406 --version | --v* | -V ) 407 echo "$lt_cl_version"; exit 0 ;; 408 --help | --h* | -h ) 409 echo "$lt_cl_help"; exit 0 ;; 410 --debug | --d* | -d ) 411 debug=: ;; 412 --quiet | --q* | --silent | --s* | -q ) 413 lt_cl_silent=: ;; 414 415 -*) as_fn_error $? "unrecognized option: $1 416Try \`$0 --help' for more information." "$LINENO" 5 ;; 417 418 *) as_fn_error $? "unrecognized argument: $1 419Try \`$0 --help' for more information." "$LINENO" 5 ;; 420 esac 421 shift 422done 423 424if $lt_cl_silent; then 425 exec 6>/dev/null 426fi 427 428 429# The HP-UX ksh and POSIX shell print the target directory to stdout 430# if CDPATH is set. 431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 432 433sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 434double_quote_subst='s/\(["`\\]\)/\\\1/g' 435delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 436macro_version='2.2.7a' 437macro_revision='1.3134' 438enable_shared='yes' 439enable_static='yes' 440pic_mode='default' 441enable_fast_install='needless' 442SHELL='/bin/bash' 443ECHO='printf %s\n' 444host_alias='x86_64-pc-linux-gnu' 445host='x86_64-pc-linux-gnu' 446host_os='linux-gnu' 447build_alias='x86_64-pc-linux-gnu' 448build='x86_64-pc-linux-gnu' 449build_os='linux-gnu' 450SED='/usr/bin/sed' 451Xsed='/usr/bin/sed -e 1s/^X//' 452GREP='/usr/bin/grep' 453EGREP='/usr/bin/grep -E' 454FGREP='/usr/bin/grep -F' 455LD='ld -m elf_x86_64' 456NM='/usr/bin/nm -B' 457LN_S='ln -s' 458max_cmd_len='1572864' 459ac_objext='o' 460exeext='' 461lt_unset='unset' 462lt_SP2NL='tr \040 \012' 463lt_NL2SP='tr \015\012 \040\040' 464reload_flag=' -r' 465reload_cmds='$LD$reload_flag -o $output$reload_objs' 466OBJDUMP='objdump' 467deplibs_check_method='pass_all' 468file_magic_cmd='$MAGIC_CMD' 469AR='ar --plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so --plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so' 470AR_FLAGS='cru' 471STRIP='strip' 472RANLIB='ranlib --plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so --plugin /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so' 473old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib' 474old_postuninstall_cmds='' 475old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' 476lock_old_archive_extraction='no' 477CC='gcc' 478CFLAGS='-g -O2 ' 479compiler='g++' 480GCC='yes' 481lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' 482lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' 483lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' 484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' 485objdir='.libs' 486MAGIC_CMD='file' 487lt_prog_compiler_no_builtin_flag=' -fno-builtin' 488lt_prog_compiler_wl='-Wl,' 489lt_prog_compiler_pic=' -fPIC -DPIC' 490lt_prog_compiler_static='-static' 491lt_cv_prog_compiler_c_o='yes' 492need_locks='no' 493DSYMUTIL='dsymutil' 494NMEDIT='' 495LIPO='' 496OTOOL='otool' 497OTOOL64='' 498libext='a' 499shrext_cmds='.so' 500extract_expsyms_cmds='' 501archive_cmds_need_lc='no' 502enable_shared_with_static_runtimes='no' 503export_dynamic_flag_spec='${wl}--export-dynamic' 504whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 505compiler_needs_object='no' 506old_archive_from_new_cmds='' 507old_archive_from_expsyms_cmds='' 508archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 509archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 511 echo "local: *; };" >> $output_objdir/$libname.ver~ 512 $CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 513module_cmds='' 514module_expsym_cmds='' 515with_gnu_ld='yes' 516allow_undefined_flag='' 517no_undefined_flag='' 518hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 519hardcode_libdir_flag_spec_ld='' 520hardcode_libdir_separator='' 521hardcode_direct='no' 522hardcode_direct_absolute='no' 523hardcode_minus_L='no' 524hardcode_shlibpath_var='unsupported' 525hardcode_automatic='no' 526inherit_rpath='no' 527link_all_deplibs='unknown' 528fix_srcfile_path='' 529always_export_symbols='no' 530export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 531exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 532include_expsyms='' 533prelink_cmds='' 534file_list_spec='' 535variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH' 536need_lib_prefix='no' 537need_version='no' 538version_type='linux' 539runpath_var='LD_RUN_PATH' 540shlibpath_var='LD_LIBRARY_PATH' 541shlibpath_overrides_runpath='yes' 542libname_spec='lib$name' 543library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 544soname_spec='${libname}${release}${shared_ext}$major' 545install_override_mode='' 546postinstall_cmds='' 547postuninstall_cmds='' 548finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 549finish_eval='' 550hardcode_into_libs='yes' 551sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/11 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' 552sys_lib_dlsearch_path_spec='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib/i386-linux-gnu /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /usr/local/lib/i686-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 /libx32 /usr/libx32 ' 553hardcode_action='immediate' 554enable_dlopen='unknown' 555enable_dlopen_self='unknown' 556enable_dlopen_self_static='unknown' 557old_striplib='strip --strip-debug' 558striplib='strip --strip-unneeded' 559compiler_lib_search_dirs='' 560predep_objects='' 561postdep_objects='' 562predeps='' 563postdeps='' 564compiler_lib_search_path='' 565LD_CXX='ld -m elf_x86_64' 566reload_flag_CXX=' -r' 567reload_cmds_CXX='$LD$reload_flag -o $output$reload_objs' 568old_archive_cmds_CXX='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' 569compiler_CXX='g++' 570GCC_CXX='yes' 571lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 572lt_prog_compiler_wl_CXX='-Wl,' 573lt_prog_compiler_pic_CXX=' -fPIC -DPIC' 574lt_prog_compiler_static_CXX='-static' 575lt_cv_prog_compiler_c_o_CXX='yes' 576archive_cmds_need_lc_CXX='no' 577enable_shared_with_static_runtimes_CXX='no' 578export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 579whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 580compiler_needs_object_CXX='no' 581old_archive_from_new_cmds_CXX='' 582old_archive_from_expsyms_cmds_CXX='' 583archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 584archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 585module_cmds_CXX='' 586module_expsym_cmds_CXX='' 587with_gnu_ld_CXX='yes' 588allow_undefined_flag_CXX='' 589no_undefined_flag_CXX='' 590hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 591hardcode_libdir_flag_spec_ld_CXX='' 592hardcode_libdir_separator_CXX='' 593hardcode_direct_CXX='no' 594hardcode_direct_absolute_CXX='no' 595hardcode_minus_L_CXX='no' 596hardcode_shlibpath_var_CXX='unsupported' 597hardcode_automatic_CXX='no' 598inherit_rpath_CXX='no' 599link_all_deplibs_CXX='unknown' 600fix_srcfile_path_CXX='' 601always_export_symbols_CXX='no' 602export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 603exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 604include_expsyms_CXX='' 605prelink_cmds_CXX='' 606file_list_spec_CXX='' 607hardcode_action_CXX='immediate' 608compiler_lib_search_dirs_CXX='/usr/lib/gcc/x86_64-linux-gnu/11 /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /usr/lib/gcc/x86_64-linux-gnu/11/../../..' 609predep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/11/crtbeginS.o' 610postdep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/11/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crtn.o' 611predeps_CXX='' 612postdeps_CXX='-lstdc++ -lm -lgcc_s -lc -lgcc_s' 613compiler_lib_search_path_CXX='-L/usr/lib/gcc/x86_64-linux-gnu/11 -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/11/../../..' 614 615LTCC='gcc' 616LTCFLAGS='-g -O2 ' 617compiler='gcc' 618 619# A function that is used when there is no print builtin or printf. 620func_fallback_echo () 621{ 622 eval 'cat <<_LTECHO_EOF 623$1 624_LTECHO_EOF' 625} 626 627# Quote evaled strings. 628for var in SHELL ECHO SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec install_override_mode finish_eval old_striplib striplib compiler_lib_search_dirs predep_objects postdep_objects predeps postdeps compiler_lib_search_path LD_CXX reload_flag_CXX compiler_CXX lt_prog_compiler_no_builtin_flag_CXX lt_prog_compiler_wl_CXX lt_prog_compiler_pic_CXX lt_prog_compiler_static_CXX lt_cv_prog_compiler_c_o_CXX export_dynamic_flag_spec_CXX whole_archive_flag_spec_CXX compiler_needs_object_CXX with_gnu_ld_CXX allow_undefined_flag_CXX no_undefined_flag_CXX hardcode_libdir_flag_spec_CXX hardcode_libdir_flag_spec_ld_CXX hardcode_libdir_separator_CXX fix_srcfile_path_CXX exclude_expsyms_CXX include_expsyms_CXX file_list_spec_CXX compiler_lib_search_dirs_CXX predep_objects_CXX postdep_objects_CXX predeps_CXX postdeps_CXX compiler_lib_search_path_CXX; do 629 case `eval \\$ECHO \\""\\$$var"\\"` in 630 *[\\\`\"\$]*) 631 eval "lt_$var=\\\"\`\$ECHO \"\$$var\" | \$SED \"\$sed_quote_subst\"\`\\\"" 632 ;; 633 *) 634 eval "lt_$var=\\\"\$$var\\\"" 635 ;; 636 esac 637done 638 639# Double-quote double-evaled strings. 640for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec reload_cmds_CXX old_archive_cmds_CXX old_archive_from_new_cmds_CXX old_archive_from_expsyms_cmds_CXX archive_cmds_CXX archive_expsym_cmds_CXX module_cmds_CXX module_expsym_cmds_CXX export_symbols_cmds_CXX prelink_cmds_CXX; do 641 case `eval \\$ECHO \\""\\$$var"\\"` in 642 *[\\\`\"\$]*) 643 eval "lt_$var=\\\"\`\$ECHO \"\$$var\" | \$SED -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 644 ;; 645 *) 646 eval "lt_$var=\\\"\$$var\\\"" 647 ;; 648 esac 649done 650 651ac_aux_dir='..' 652xsi_shell='yes' 653lt_shell_append='yes' 654 655# See if we are running on zsh, and set the options which allow our 656# commands through without removal of \ escapes INIT. 657if test -n "${ZSH_VERSION+set}" ; then 658 setopt NO_GLOB_SUBST 659fi 660 661 662 PACKAGE='' 663 VERSION='' 664 TIMESTAMP='' 665 RM='rm -f' 666 ofile='libtool' 667 668 669 670 671 672{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 673$as_echo "$as_me: creating $ofile" >&6;} 674 675 676 # See if we are running on zsh, and set the options which allow our 677 # commands through without removal of \ escapes. 678 if test -n "${ZSH_VERSION+set}" ; then 679 setopt NO_GLOB_SUBST 680 fi 681 682 cfgfile="${ofile}T" 683 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 684 $RM "$cfgfile" 685 686 cat <<_LT_EOF >> "$cfgfile" 687#! $SHELL 688 689# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 690# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 691# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 692# NOTE: Changes made to this file will be lost: look at ltmain.sh. 693# 694# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 695# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 696# Written by Gordon Matzigkeit, 1996 697# 698# This file is part of GNU Libtool. 699# 700# GNU Libtool is free software; you can redistribute it and/or 701# modify it under the terms of the GNU General Public License as 702# published by the Free Software Foundation; either version 2 of 703# the License, or (at your option) any later version. 704# 705# As a special exception to the GNU General Public License, 706# if you distribute this file as part of a program or library that 707# is built using GNU Libtool, you may include this file under the 708# same distribution terms that you use for the rest of that program. 709# 710# GNU Libtool is distributed in the hope that it will be useful, 711# but WITHOUT ANY WARRANTY; without even the implied warranty of 712# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 713# GNU General Public License for more details. 714# 715# You should have received a copy of the GNU General Public License 716# along with GNU Libtool; see the file COPYING. If not, a copy 717# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 718# obtained by writing to the Free Software Foundation, Inc., 719# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 720 721 722# The names of the tagged configurations supported by this script. 723available_tags="CXX " 724 725# ### BEGIN LIBTOOL CONFIG 726 727# Which release of libtool.m4 was used? 728macro_version=$macro_version 729macro_revision=$macro_revision 730 731# Whether or not to build shared libraries. 732build_libtool_libs=$enable_shared 733 734# Whether or not to build static libraries. 735build_old_libs=$enable_static 736 737# What type of objects to build. 738pic_mode=$pic_mode 739 740# Whether or not to optimize for fast installation. 741fast_install=$enable_fast_install 742 743# Shell to use when invoking shell scripts. 744SHELL=$lt_SHELL 745 746# An echo program that protects backslashes. 747ECHO=$lt_ECHO 748 749# The host system. 750host_alias=$host_alias 751host=$host 752host_os=$host_os 753 754# The build system. 755build_alias=$build_alias 756build=$build 757build_os=$build_os 758 759# A sed program that does not truncate output. 760SED=$lt_SED 761 762# Sed that helps us avoid accidentally triggering echo(1) options like -n. 763Xsed="\$SED -e 1s/^X//" 764 765# A grep program that handles long lines. 766GREP=$lt_GREP 767 768# An ERE matcher. 769EGREP=$lt_EGREP 770 771# A literal string matcher. 772FGREP=$lt_FGREP 773 774# A BSD- or MS-compatible name lister. 775NM=$lt_NM 776 777# Whether we need soft or hard links. 778LN_S=$lt_LN_S 779 780# What is the maximum length of a command? 781max_cmd_len=$max_cmd_len 782 783# Object file suffix (normally "o"). 784objext=$ac_objext 785 786# Executable file suffix (normally ""). 787exeext=$exeext 788 789# whether the shell understands "unset". 790lt_unset=$lt_unset 791 792# turn spaces into newlines. 793SP2NL=$lt_lt_SP2NL 794 795# turn newlines into spaces. 796NL2SP=$lt_lt_NL2SP 797 798# An object symbol dumper. 799OBJDUMP=$lt_OBJDUMP 800 801# Method to check whether dependent libraries are shared objects. 802deplibs_check_method=$lt_deplibs_check_method 803 804# Command to use when deplibs_check_method == "file_magic". 805file_magic_cmd=$lt_file_magic_cmd 806 807# The archiver. 808AR=$lt_AR 809AR_FLAGS=$lt_AR_FLAGS 810 811# A symbol stripping program. 812STRIP=$lt_STRIP 813 814# Commands used to install an old-style archive. 815RANLIB=$lt_RANLIB 816old_postinstall_cmds=$lt_old_postinstall_cmds 817old_postuninstall_cmds=$lt_old_postuninstall_cmds 818 819# Whether to use a lock for old archive extraction. 820lock_old_archive_extraction=$lock_old_archive_extraction 821 822# A C compiler. 823LTCC=$lt_CC 824 825# LTCC compiler flags. 826LTCFLAGS=$lt_CFLAGS 827 828# Take the output of nm and produce a listing of raw symbols and C names. 829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 830 831# Transform the output of nm in a proper C declaration. 832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 833 834# Transform the output of nm in a C name address pair. 835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 836 837# Transform the output of nm in a C name address pair when lib prefix is needed. 838global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 839 840# The name of the directory that contains temporary libtool files. 841objdir=$objdir 842 843# Used to examine libraries when file_magic_cmd begins with "file". 844MAGIC_CMD=$MAGIC_CMD 845 846# Must we lock files when doing compilation? 847need_locks=$lt_need_locks 848 849# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 850DSYMUTIL=$lt_DSYMUTIL 851 852# Tool to change global to local symbols on Mac OS X. 853NMEDIT=$lt_NMEDIT 854 855# Tool to manipulate fat objects and archives on Mac OS X. 856LIPO=$lt_LIPO 857 858# ldd/readelf like tool for Mach-O binaries on Mac OS X. 859OTOOL=$lt_OTOOL 860 861# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 862OTOOL64=$lt_OTOOL64 863 864# Old archive suffix (normally "a"). 865libext=$libext 866 867# Shared library suffix (normally ".so"). 868shrext_cmds=$lt_shrext_cmds 869 870# The commands to extract the exported symbol list from a shared archive. 871extract_expsyms_cmds=$lt_extract_expsyms_cmds 872 873# Variables whose values should be saved in libtool wrapper scripts and 874# restored at link time. 875variables_saved_for_relink=$lt_variables_saved_for_relink 876 877# Do we need the "lib" prefix for modules? 878need_lib_prefix=$need_lib_prefix 879 880# Do we need a version for libraries? 881need_version=$need_version 882 883# Library versioning type. 884version_type=$version_type 885 886# Shared library runtime path variable. 887runpath_var=$runpath_var 888 889# Shared library path variable. 890shlibpath_var=$shlibpath_var 891 892# Is shlibpath searched before the hard-coded library search path? 893shlibpath_overrides_runpath=$shlibpath_overrides_runpath 894 895# Format of library name prefix. 896libname_spec=$lt_libname_spec 897 898# List of archive names. First name is the real one, the rest are links. 899# The last name is the one that the linker finds with -lNAME 900library_names_spec=$lt_library_names_spec 901 902# The coded name of the library, if different from the real name. 903soname_spec=$lt_soname_spec 904 905# Permission mode override for installation of shared libraries. 906install_override_mode=$lt_install_override_mode 907 908# Command to use after installation of a shared archive. 909postinstall_cmds=$lt_postinstall_cmds 910 911# Command to use after uninstallation of a shared archive. 912postuninstall_cmds=$lt_postuninstall_cmds 913 914# Commands used to finish a libtool library installation in a directory. 915finish_cmds=$lt_finish_cmds 916 917# As "finish_cmds", except a single script fragment to be evaled but 918# not shown. 919finish_eval=$lt_finish_eval 920 921# Whether we should hardcode library paths into libraries. 922hardcode_into_libs=$hardcode_into_libs 923 924# Compile-time system search path for libraries. 925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 926 927# Run-time system search path for libraries. 928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 929 930# Whether dlopen is supported. 931dlopen_support=$enable_dlopen 932 933# Whether dlopen of programs is supported. 934dlopen_self=$enable_dlopen_self 935 936# Whether dlopen of statically linked programs is supported. 937dlopen_self_static=$enable_dlopen_self_static 938 939# Commands to strip libraries. 940old_striplib=$lt_old_striplib 941striplib=$lt_striplib 942 943 944# The linker used to build libraries. 945LD=$lt_LD 946 947# How to create reloadable object files. 948reload_flag=$lt_reload_flag 949reload_cmds=$lt_reload_cmds 950 951# Commands used to build an old-style archive. 952old_archive_cmds=$lt_old_archive_cmds 953 954# A language specific compiler. 955CC=$lt_compiler 956 957# Is the compiler the GNU compiler? 958with_gcc=$GCC 959 960# Compiler flag to turn off builtin functions. 961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 962 963# How to pass a linker flag through the compiler. 964wl=$lt_lt_prog_compiler_wl 965 966# Additional compiler flags for building library objects. 967pic_flag=$lt_lt_prog_compiler_pic 968 969# Compiler flag to prevent dynamic linking. 970link_static_flag=$lt_lt_prog_compiler_static 971 972# Does compiler simultaneously support -c and -o options? 973compiler_c_o=$lt_lt_cv_prog_compiler_c_o 974 975# Whether or not to add -lc for building shared libraries. 976build_libtool_need_lc=$archive_cmds_need_lc 977 978# Whether or not to disallow shared libs when runtime libs are static. 979allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 980 981# Compiler flag to allow reflexive dlopens. 982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 983 984# Compiler flag to generate shared objects directly from archives. 985whole_archive_flag_spec=$lt_whole_archive_flag_spec 986 987# Whether the compiler copes with passing no objects directly. 988compiler_needs_object=$lt_compiler_needs_object 989 990# Create an old-style archive from a shared archive. 991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 992 993# Create a temporary old-style archive to link instead of a shared archive. 994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 995 996# Commands used to build a shared archive. 997archive_cmds=$lt_archive_cmds 998archive_expsym_cmds=$lt_archive_expsym_cmds 999 1000# Commands used to build a loadable module if different from building 1001# a shared archive. 1002module_cmds=$lt_module_cmds 1003module_expsym_cmds=$lt_module_expsym_cmds 1004 1005# Whether we are building with GNU ld or not. 1006with_gnu_ld=$lt_with_gnu_ld 1007 1008# Flag that allows shared libraries with undefined symbols to be built. 1009allow_undefined_flag=$lt_allow_undefined_flag 1010 1011# Flag that enforces no undefined symbols. 1012no_undefined_flag=$lt_no_undefined_flag 1013 1014# Flag to hardcode \$libdir into a binary during linking. 1015# This must work even if \$libdir does not exist 1016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 1017 1018# If ld is used when linking, flag to hardcode \$libdir into a binary 1019# during linking. This must work even if \$libdir does not exist. 1020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 1021 1022# Whether we need a single "-rpath" flag with a separated argument. 1023hardcode_libdir_separator=$lt_hardcode_libdir_separator 1024 1025# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 1026# DIR into the resulting binary. 1027hardcode_direct=$hardcode_direct 1028 1029# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 1030# DIR into the resulting binary and the resulting library dependency is 1031# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 1032# library is relocated. 1033hardcode_direct_absolute=$hardcode_direct_absolute 1034 1035# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 1036# into the resulting binary. 1037hardcode_minus_L=$hardcode_minus_L 1038 1039# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 1040# into the resulting binary. 1041hardcode_shlibpath_var=$hardcode_shlibpath_var 1042 1043# Set to "yes" if building a shared library automatically hardcodes DIR 1044# into the library and all subsequent libraries and executables linked 1045# against it. 1046hardcode_automatic=$hardcode_automatic 1047 1048# Set to yes if linker adds runtime paths of dependent libraries 1049# to runtime path list. 1050inherit_rpath=$inherit_rpath 1051 1052# Whether libtool must link a program against all its dependency libraries. 1053link_all_deplibs=$link_all_deplibs 1054 1055# Fix the shell variable \$srcfile for the compiler. 1056fix_srcfile_path=$lt_fix_srcfile_path 1057 1058# Set to "yes" if exported symbols are required. 1059always_export_symbols=$always_export_symbols 1060 1061# The commands to list exported symbols. 1062export_symbols_cmds=$lt_export_symbols_cmds 1063 1064# Symbols that should not be listed in the preloaded symbols. 1065exclude_expsyms=$lt_exclude_expsyms 1066 1067# Symbols that must always be exported. 1068include_expsyms=$lt_include_expsyms 1069 1070# Commands necessary for linking programs (against libraries) with templates. 1071prelink_cmds=$lt_prelink_cmds 1072 1073# Specify filename containing input files. 1074file_list_spec=$lt_file_list_spec 1075 1076# How to hardcode a shared library path into an executable. 1077hardcode_action=$hardcode_action 1078 1079# The directories searched by this compiler when creating a shared library. 1080compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 1081 1082# Dependencies to place before and after the objects being linked to 1083# create a shared library. 1084predep_objects=$lt_predep_objects 1085postdep_objects=$lt_postdep_objects 1086predeps=$lt_predeps 1087postdeps=$lt_postdeps 1088 1089# The library search path used internally by the compiler when linking 1090# a shared library. 1091compiler_lib_search_path=$lt_compiler_lib_search_path 1092 1093# ### END LIBTOOL CONFIG 1094 1095_LT_EOF 1096 1097 case $host_os in 1098 aix3*) 1099 cat <<\_LT_EOF >> "$cfgfile" 1100# AIX sometimes has problems with the GCC collect2 program. For some 1101# reason, if we set the COLLECT_NAMES environment variable, the problems 1102# vanish in a puff of smoke. 1103if test "X${COLLECT_NAMES+set}" != Xset; then 1104 COLLECT_NAMES= 1105 export COLLECT_NAMES 1106fi 1107_LT_EOF 1108 ;; 1109 esac 1110 1111 1112ltmain="$ac_aux_dir/ltmain.sh" 1113 1114 1115 # We use sed instead of cat because bash on DJGPP gets confused if 1116 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1117 # text mode, it properly converts lines to CR/LF. This bash problem 1118 # is reportedly fixed, but why not run on old versions too? 1119 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 1120 || (rm -f "$cfgfile"; exit 1) 1121 1122 case $xsi_shell in 1123 yes) 1124 cat << \_LT_EOF >> "$cfgfile" 1125 1126# func_dirname file append nondir_replacement 1127# Compute the dirname of FILE. If nonempty, add APPEND to the result, 1128# otherwise set result to NONDIR_REPLACEMENT. 1129func_dirname () 1130{ 1131 case ${1} in 1132 */*) func_dirname_result="${1%/*}${2}" ;; 1133 * ) func_dirname_result="${3}" ;; 1134 esac 1135} 1136 1137# func_basename file 1138func_basename () 1139{ 1140 func_basename_result="${1##*/}" 1141} 1142 1143# func_dirname_and_basename file append nondir_replacement 1144# perform func_basename and func_dirname in a single function 1145# call: 1146# dirname: Compute the dirname of FILE. If nonempty, 1147# add APPEND to the result, otherwise set result 1148# to NONDIR_REPLACEMENT. 1149# value returned in "$func_dirname_result" 1150# basename: Compute filename of FILE. 1151# value retuned in "$func_basename_result" 1152# Implementation must be kept synchronized with func_dirname 1153# and func_basename. For efficiency, we do not delegate to 1154# those functions but instead duplicate the functionality here. 1155func_dirname_and_basename () 1156{ 1157 case ${1} in 1158 */*) func_dirname_result="${1%/*}${2}" ;; 1159 * ) func_dirname_result="${3}" ;; 1160 esac 1161 func_basename_result="${1##*/}" 1162} 1163 1164# func_stripname prefix suffix name 1165# strip PREFIX and SUFFIX off of NAME. 1166# PREFIX and SUFFIX must not contain globbing or regex special 1167# characters, hashes, percent signs, but SUFFIX may contain a leading 1168# dot (in which case that matches only a dot). 1169func_stripname () 1170{ 1171 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 1172 # positional parameters, so assign one to ordinary parameter first. 1173 func_stripname_result=${3} 1174 func_stripname_result=${func_stripname_result#"${1}"} 1175 func_stripname_result=${func_stripname_result%"${2}"} 1176} 1177 1178# func_opt_split 1179func_opt_split () 1180{ 1181 func_opt_split_opt=${1%%=*} 1182 func_opt_split_arg=${1#*=} 1183} 1184 1185# func_lo2o object 1186func_lo2o () 1187{ 1188 case ${1} in 1189 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 1190 *) func_lo2o_result=${1} ;; 1191 esac 1192} 1193 1194# func_xform libobj-or-source 1195func_xform () 1196{ 1197 func_xform_result=${1%.*}.lo 1198} 1199 1200# func_arith arithmetic-term... 1201func_arith () 1202{ 1203 func_arith_result=$(( $* )) 1204} 1205 1206# func_len string 1207# STRING may not start with a hyphen. 1208func_len () 1209{ 1210 func_len_result=${#1} 1211} 1212 1213_LT_EOF 1214 ;; 1215 *) # Bourne compatible functions. 1216 cat << \_LT_EOF >> "$cfgfile" 1217 1218# func_dirname file append nondir_replacement 1219# Compute the dirname of FILE. If nonempty, add APPEND to the result, 1220# otherwise set result to NONDIR_REPLACEMENT. 1221func_dirname () 1222{ 1223 # Extract subdirectory from the argument. 1224 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 1225 if test "X$func_dirname_result" = "X${1}"; then 1226 func_dirname_result="${3}" 1227 else 1228 func_dirname_result="$func_dirname_result${2}" 1229 fi 1230} 1231 1232# func_basename file 1233func_basename () 1234{ 1235 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 1236} 1237 1238 1239# func_stripname prefix suffix name 1240# strip PREFIX and SUFFIX off of NAME. 1241# PREFIX and SUFFIX must not contain globbing or regex special 1242# characters, hashes, percent signs, but SUFFIX may contain a leading 1243# dot (in which case that matches only a dot). 1244# func_strip_suffix prefix name 1245func_stripname () 1246{ 1247 case ${2} in 1248 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 1249 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 1250 esac 1251} 1252 1253# sed scripts: 1254my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 1255my_sed_long_arg='1s/^-[^=]*=//' 1256 1257# func_opt_split 1258func_opt_split () 1259{ 1260 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 1261 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 1262} 1263 1264# func_lo2o object 1265func_lo2o () 1266{ 1267 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 1268} 1269 1270# func_xform libobj-or-source 1271func_xform () 1272{ 1273 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 1274} 1275 1276# func_arith arithmetic-term... 1277func_arith () 1278{ 1279 func_arith_result=`expr "$@"` 1280} 1281 1282# func_len string 1283# STRING may not start with a hyphen. 1284func_len () 1285{ 1286 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 1287} 1288 1289_LT_EOF 1290esac 1291 1292case $lt_shell_append in 1293 yes) 1294 cat << \_LT_EOF >> "$cfgfile" 1295 1296# func_append var value 1297# Append VALUE to the end of shell variable VAR. 1298func_append () 1299{ 1300 eval "$1+=\$2" 1301} 1302_LT_EOF 1303 ;; 1304 *) 1305 cat << \_LT_EOF >> "$cfgfile" 1306 1307# func_append var value 1308# Append VALUE to the end of shell variable VAR. 1309func_append () 1310{ 1311 eval "$1=\$$1\$2" 1312} 1313 1314_LT_EOF 1315 ;; 1316 esac 1317 1318 1319 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 1320 || (rm -f "$cfgfile"; exit 1) 1321 1322 mv -f "$cfgfile" "$ofile" || 1323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1324 chmod +x "$ofile" 1325 1326 1327 cat <<_LT_EOF >> "$ofile" 1328 1329# ### BEGIN LIBTOOL TAG CONFIG: CXX 1330 1331# The linker used to build libraries. 1332LD=$lt_LD_CXX 1333 1334# How to create reloadable object files. 1335reload_flag=$lt_reload_flag_CXX 1336reload_cmds=$lt_reload_cmds_CXX 1337 1338# Commands used to build an old-style archive. 1339old_archive_cmds=$lt_old_archive_cmds_CXX 1340 1341# A language specific compiler. 1342CC=$lt_compiler_CXX 1343 1344# Is the compiler the GNU compiler? 1345with_gcc=$GCC_CXX 1346 1347# Compiler flag to turn off builtin functions. 1348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 1349 1350# How to pass a linker flag through the compiler. 1351wl=$lt_lt_prog_compiler_wl_CXX 1352 1353# Additional compiler flags for building library objects. 1354pic_flag=$lt_lt_prog_compiler_pic_CXX 1355 1356# Compiler flag to prevent dynamic linking. 1357link_static_flag=$lt_lt_prog_compiler_static_CXX 1358 1359# Does compiler simultaneously support -c and -o options? 1360compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 1361 1362# Whether or not to add -lc for building shared libraries. 1363build_libtool_need_lc=$archive_cmds_need_lc_CXX 1364 1365# Whether or not to disallow shared libs when runtime libs are static. 1366allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 1367 1368# Compiler flag to allow reflexive dlopens. 1369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 1370 1371# Compiler flag to generate shared objects directly from archives. 1372whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 1373 1374# Whether the compiler copes with passing no objects directly. 1375compiler_needs_object=$lt_compiler_needs_object_CXX 1376 1377# Create an old-style archive from a shared archive. 1378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 1379 1380# Create a temporary old-style archive to link instead of a shared archive. 1381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 1382 1383# Commands used to build a shared archive. 1384archive_cmds=$lt_archive_cmds_CXX 1385archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 1386 1387# Commands used to build a loadable module if different from building 1388# a shared archive. 1389module_cmds=$lt_module_cmds_CXX 1390module_expsym_cmds=$lt_module_expsym_cmds_CXX 1391 1392# Whether we are building with GNU ld or not. 1393with_gnu_ld=$lt_with_gnu_ld_CXX 1394 1395# Flag that allows shared libraries with undefined symbols to be built. 1396allow_undefined_flag=$lt_allow_undefined_flag_CXX 1397 1398# Flag that enforces no undefined symbols. 1399no_undefined_flag=$lt_no_undefined_flag_CXX 1400 1401# Flag to hardcode \$libdir into a binary during linking. 1402# This must work even if \$libdir does not exist 1403hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 1404 1405# If ld is used when linking, flag to hardcode \$libdir into a binary 1406# during linking. This must work even if \$libdir does not exist. 1407hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 1408 1409# Whether we need a single "-rpath" flag with a separated argument. 1410hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 1411 1412# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 1413# DIR into the resulting binary. 1414hardcode_direct=$hardcode_direct_CXX 1415 1416# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 1417# DIR into the resulting binary and the resulting library dependency is 1418# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 1419# library is relocated. 1420hardcode_direct_absolute=$hardcode_direct_absolute_CXX 1421 1422# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 1423# into the resulting binary. 1424hardcode_minus_L=$hardcode_minus_L_CXX 1425 1426# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 1427# into the resulting binary. 1428hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 1429 1430# Set to "yes" if building a shared library automatically hardcodes DIR 1431# into the library and all subsequent libraries and executables linked 1432# against it. 1433hardcode_automatic=$hardcode_automatic_CXX 1434 1435# Set to yes if linker adds runtime paths of dependent libraries 1436# to runtime path list. 1437inherit_rpath=$inherit_rpath_CXX 1438 1439# Whether libtool must link a program against all its dependency libraries. 1440link_all_deplibs=$link_all_deplibs_CXX 1441 1442# Fix the shell variable \$srcfile for the compiler. 1443fix_srcfile_path=$lt_fix_srcfile_path_CXX 1444 1445# Set to "yes" if exported symbols are required. 1446always_export_symbols=$always_export_symbols_CXX 1447 1448# The commands to list exported symbols. 1449export_symbols_cmds=$lt_export_symbols_cmds_CXX 1450 1451# Symbols that should not be listed in the preloaded symbols. 1452exclude_expsyms=$lt_exclude_expsyms_CXX 1453 1454# Symbols that must always be exported. 1455include_expsyms=$lt_include_expsyms_CXX 1456 1457# Commands necessary for linking programs (against libraries) with templates. 1458prelink_cmds=$lt_prelink_cmds_CXX 1459 1460# Specify filename containing input files. 1461file_list_spec=$lt_file_list_spec_CXX 1462 1463# How to hardcode a shared library path into an executable. 1464hardcode_action=$hardcode_action_CXX 1465 1466# The directories searched by this compiler when creating a shared library. 1467compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 1468 1469# Dependencies to place before and after the objects being linked to 1470# create a shared library. 1471predep_objects=$lt_predep_objects_CXX 1472postdep_objects=$lt_postdep_objects_CXX 1473predeps=$lt_predeps_CXX 1474postdeps=$lt_postdeps_CXX 1475 1476# The library search path used internally by the compiler when linking 1477# a shared library. 1478compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 1479 1480# ### END LIBTOOL TAG CONFIG: CXX 1481_LT_EOF 1482 1483 1484as_fn_exit 0 1485